Commit Graph

70 Commits

Author SHA1 Message Date
Kevin Darbyshire-Bryant
14881b49d8 toolchain/kernel-headers: don't use TARGET_CFLAGS
Kernel utilities (e.g. scripts/kconfig/conf) are being built to run on
the host system at this stage, therefore it makes no sense to use the
target system CC flags.  Use HOSTCFLAGS instead

While we're here rename KMAKE macro to HOST_KMAKE to make it even more
obvious that we're building for host.

Signed-off-by: Kevin Darbyshire-Bryant <ldir@darbyshire-bryant.me.uk>
2019-10-16 16:10:38 +01:00
Alexandru Ardelean
ca7e8627db kernel-headers: adjust PKG_ variables when using git clone method
When using an external git clone for the kernel repo,
the build would fail because the build won't download
[via git] the kernel tarball.

This is because the `toolchain/kernel-headers` assumes
that the kernel would get downloaded via normal HTTP.
The reason for this is the `HostBuild` rule, which
calls the `Download/default` rule.

To use the `Download/default` we just need to conditionally
adjust some PKG_ vars.

We can safely use `LINUX_VERSION` as it was already adjusted
in the `kernel-version.mk` to avoid collisions with other tarballs.

Fixes:
 https://bugs.openwrt.org/index.php?do=details&task_id=503

Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
2018-01-27 16:46:45 +01:00
Karl Vogel
76378c6b9f build: use KERNEL_MAKE_FLAGS for kernel file compilations
The build system already defines KERNEL_CROSS which defaults to TARGET_CROSS.
Make use of this variable for kernel makefiles.

Signed-off-by: Karl Vogel <karl.vogel@gmail.com>
2017-10-29 16:17:05 +01:00
Felix Fietkau
76b62e6022 build: remove old kernel-headers build directories
Saves space after updating kernel versions

Signed-off-by: Felix Fietkau <nbd@nbd.name>
2017-06-16 15:16:52 +02:00
Felix Fietkau
720b99215d treewide: clean up download hashes
Replace *MD5SUM with *HASH, replace MD5 hashes with SHA256

Signed-off-by: Felix Fietkau <nbd@nbd.name>
2016-12-16 22:39:22 +01:00
Stefan Weil
d0619fb02c Remove existing old link before creating a new one
This is needed after a kernel update, otherwise the
new link is written as linux/linux-$(LINUX_VERSION).

Signed-off-by: Stefan Weil <sw@weilnetz.de>
2016-07-25 10:39:27 +02:00
Felix Fietkau
05baf2ced2 toolchain: remove obsolete kernel version check
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 47413
2015-11-07 16:22:18 +00:00
Felix Fietkau
793a451584 toolchain: remove obsolete references to the cris architecture
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 44964
2015-03-24 10:07:31 +00:00
Jonas Gorski
100e2feb22 toolchain-headers: also copy asm-eva.h for mips(el) for 3.15+
Kernel 3.15's asm.h includes eva-asm.h, so copy it also, else lzma-loader
won't compile due to a missing include.

Signed-off-by: Jonas Gorski <jogo@openwrt.org>

SVN-Revision: 43460
2014-12-01 13:27:06 +00:00
Florian Fainelli
4801705d83 remove support for ubicom32
Signed-off-by: Florian Fainelli <florian@openwrt.org>

SVN-Revision: 34432
2012-11-30 10:53:55 +00:00
Felix Fietkau
b1f318de53 kernel: fix portability issues on the x86 specific relocs host tool, fixes build on mac os x
SVN-Revision: 32783
2012-07-20 12:28:50 +00:00
Daniel Dickinson
9cc9e8b608 kernel-headers: Fix patch application for kernel-headers and a patch that fixes exposure of a kernel-only data type (umode_t) to application layer which causes compile errors in ext2_fs.h using programs.
SVN-Revision: 31697
2012-05-13 05:02:27 +00:00
Felix Fietkau
2105acbe28 kernel-headers: fix compile error caused by wrong host include path when the toolchain is already built
SVN-Revision: 27915
2011-08-05 16:39:04 +00:00
Felix Fietkau
29de442b0d kernel-headers: get rid of the arch/$(ARCH)/include/asm vs include/asm-$(ARCH) copying mess and stick to what the kernel is using
SVN-Revision: 25443
2011-02-10 03:52:39 +00:00
Felix Fietkau
62c1740676 toolchain: fix the sysroot mess by getting rid of $(TOOLCHAIN_DIR)/usr and moving it back to $(TOOLCHAIN_DIR), this change makes the toolchain relocatable again, which should fix the SDK
SVN-Revision: 22723
2010-08-19 12:49:51 +00:00
Felix Fietkau
6f0f021c87 remove support for building kernel headers with old kernels
SVN-Revision: 21957
2010-06-26 20:44:48 +00:00
Mirko Vogt
d6ef217a9f fix syntax error
SVN-Revision: 21843
2010-06-20 00:24:10 +00:00
Mirko Vogt
f5faa9520e make sure directory exists before copying into
SVN-Revision: 21842
2010-06-19 23:48:45 +00:00
Nicolas Thill
7ca97b03d9 toolchain/kernel-headers: simplify linux headers installation (remove legacy hacks, cleanup)
SVN-Revision: 21567
2010-05-24 20:38:36 +00:00
Nicolas Thill
128233fba1 toolchain/kernel-headers: restore support for patches, needed for ubicom32
SVN-Revision: 20872
2010-04-15 05:00:00 +00:00
Felix Fietkau
25d3c0fcd0 fix kernel-headers build
SVN-Revision: 20584
2010-03-29 15:16:17 +00:00
Florian Fainelli
0193462642 fix kernel-headers build for uml
SVN-Revision: 20203
2010-03-14 16:21:18 +00:00
Florian Fainelli
4f04551880 cleanup the 2.6.33 and later kernels kernel-headers installation
SVN-Revision: 19962
2010-03-03 12:54:08 +00:00
Florian Fainelli
b1d3ace5ea fix compilation w/ 2.6.33
SVN-Revision: 19933
2010-03-01 14:55:07 +00:00
Claudio Mignanti
b88e08839a dump 2.6.25 support
SVN-Revision: 17816
2009-10-02 08:07:39 +00:00
Felix Fietkau
aee9d6c31c add a heavily cleaned up version of ubicom32 toolchain support
SVN-Revision: 17346
2009-08-21 22:31:47 +00:00
Claudio Mignanti
f3822efd8e install headers, fix foxboard-utils
SVN-Revision: 16661
2009-07-03 12:49:50 +00:00
Claudio Mignanti
f692239c58 Fix kernel headers for cris (thanks hinkocevar)
SVN-Revision: 15153
2009-04-08 14:13:50 +00:00
Ralph Hempel
bc1ff678dd fix powerpc build (works for 2.4 and 2.6)
SVN-Revision: 14707
2009-03-01 11:04:08 +00:00
Nicolas Thill
8a2030ff3d move common variables to a dedicated include file
SVN-Revision: 14648
2009-02-23 23:52:27 +00:00
Nicolas Thill
239c4aef18 kernel-headers: fix build error when run for the second time
SVN-Revision: 14641
2009-02-23 17:49:36 +00:00
Felix Fietkau
7eb1589875 build system refactoring in preparation for allowing packages to do host-build steps
SVN-Revision: 14610
2009-02-22 04:37:20 +00:00
Nicolas Thill
33a0eb3613 cosmetic & coherency fixes
SVN-Revision: 14397
2009-02-03 21:25:48 +00:00
Nicolas Thill
ed4d79b529 more kernel headers fixes for cris
SVN-Revision: 14128
2009-01-21 01:53:05 +00:00
Nicolas Thill
ce5b7766e6 move all arch fixups from Install to Prepare stage, so that fixed headers are available in $(BUILD_DIR_TOOLCHAIN)/linux-dev/
SVN-Revision: 14120
2009-01-20 17:05:14 +00:00
Nicolas Thill
2c1d444866 fix missing ptrace.h needed to build final gcc
SVN-Revision: 13995
2009-01-12 19:03:39 +00:00
Nicolas Thill
a3edea1b91 add support for alternative C libraries (currently only glibc/eglibc) other (related) changes: - kernel headers are now installed using "make headers_install" on 2.6 - target names now contain an openwrt "vendor" tag (e.g. mips-openwrt-linux-gnu) - build directory names now contain gcc/libc name/version - default cpu for x86 is now i486 (required to build glibc/eglibc)
SVN-Revision: 13931
2009-01-08 01:49:11 +00:00
Hamish Guthrie
34837ea2dd The merge of ppc (32-bit headers) and powerpc (previously 64-bit only headers) has now been completed, so it build breaks if asm-ppc headers directory does not exist - this should fix this problem without being invasive
SVN-Revision: 12933
2008-10-09 11:33:47 +00:00
Felix Fietkau
7bf353216c fix up the asm includes location for .27 when building kernel headers
SVN-Revision: 12802
2008-09-29 18:09:24 +00:00
Felix Fietkau
799e7a8fa8 disable autorebuild for the toolchain, as it can easily lead to build breakages
SVN-Revision: 12492
2008-09-02 10:57:35 +00:00
John Crispin
c4f78ab795 remove ugly hack for etrax
SVN-Revision: 11026
2008-05-03 15:46:23 +00:00
Felix Fietkau
5f258e330d fix path to etrax patches (#3055)
SVN-Revision: 10376
2008-02-03 18:22:22 +00:00
Imre Kaloz
7d93d975a5 *sigh* :P
SVN-Revision: 10373
2008-02-03 17:36:04 +00:00
Andy Boyett
6bdd0ef590 Disabling use of libintl in kernel-headers.
SVN-Revision: 9935
2007-12-26 22:22:02 +00:00
Nicolas Thill
b35e6fe3ba include kernel-version.mk from kernel.mk so that a correct KERNEL_PATCHVER is always available
SVN-Revision: 8494
2007-08-26 13:26:02 +00:00
Florian Fainelli
da932d9e1a Replace TOOLCHAIN_BUILD_DIR with BUILD_DIR_TOOLCHAIN (the other one is deprecated)
SVN-Revision: 8399
2007-08-11 17:32:45 +00:00
Felix Fietkau
50ecfa0505 fix kernel-headers download (#2179)
SVN-Revision: 8373
2007-08-07 09:41:54 +00:00
Felix Fietkau
c6bc77ea36 build system cleanup/restructuring as described in http://lists.openwrt.org/pipermail/openwrt-devel/2007-August/001159.html
SVN-Revision: 8362
2007-08-07 00:04:25 +00:00
Felix Fietkau
a37c85d5fe no need to call compile,install on the kernel-headers dir - this gets rid of another unnecessary autorebuild check
SVN-Revision: 8247
2007-07-30 21:57:14 +00:00
Felix Fietkau
7e79cae090 disable quilt for kernel-headers
SVN-Revision: 7749
2007-06-28 06:53:08 +00:00