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>
7 years ago
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>
7 years ago
Felix Fietkau
76b62e6022
build: remove old kernel-headers build directories
...
Saves space after updating kernel versions
Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years ago
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>
8 years ago
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>
8 years ago
Felix Fietkau
05baf2ced2
toolchain: remove obsolete kernel version check
...
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 47413
9 years ago
Felix Fietkau
793a451584
toolchain: remove obsolete references to the cris architecture
...
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 44964
10 years ago
Felix Fietkau
a80c80580c
toolchain/kernel-headers: remove an obsolete patch directory
...
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 44871
10 years ago
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
10 years ago
Florian Fainelli
4801705d83
remove support for ubicom32
...
Signed-off-by: Florian Fainelli <florian@openwrt.org>
SVN-Revision: 34432
12 years ago
Felix Fietkau
b1f318de53
kernel: fix portability issues on the x86 specific relocs host tool, fixes build on mac os x
...
SVN-Revision: 32783
12 years ago
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
12 years ago
Felix Fietkau
2105acbe28
kernel-headers: fix compile error caused by wrong host include path when the toolchain is already built
...
SVN-Revision: 27915
13 years ago
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
14 years ago
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
14 years ago
Felix Fietkau
6f0f021c87
remove support for building kernel headers with old kernels
...
SVN-Revision: 21957
14 years ago
Mirko Vogt
d6ef217a9f
fix syntax error
...
SVN-Revision: 21843
14 years ago
Mirko Vogt
f5faa9520e
make sure directory exists before copying into
...
SVN-Revision: 21842
14 years ago
Nicolas Thill
7ca97b03d9
toolchain/kernel-headers: simplify linux headers installation (remove legacy hacks, cleanup)
...
SVN-Revision: 21567
14 years ago
Nicolas Thill
128233fba1
toolchain/kernel-headers: restore support for patches, needed for ubicom32
...
SVN-Revision: 20872
15 years ago
Felix Fietkau
25d3c0fcd0
fix kernel-headers build
...
SVN-Revision: 20584
15 years ago
Florian Fainelli
0193462642
fix kernel-headers build for uml
...
SVN-Revision: 20203
15 years ago
Florian Fainelli
4f04551880
cleanup the 2.6.33 and later kernels kernel-headers installation
...
SVN-Revision: 19962
15 years ago
Florian Fainelli
b1d3ace5ea
fix compilation w/ 2.6.33
...
SVN-Revision: 19933
15 years ago
Imre Kaloz
06d8dc9329
get rid of even more 2.6.28 stuff
...
SVN-Revision: 18953
15 years ago
Felix Fietkau
86d22845f9
kernel-headers: add linux 2.6.30 headers for ubicom32
...
SVN-Revision: 18792
15 years ago
Claudio Mignanti
b88e08839a
dump 2.6.25 support
...
SVN-Revision: 17816
15 years ago
Felix Fietkau
aee9d6c31c
add a heavily cleaned up version of ubicom32 toolchain support
...
SVN-Revision: 17346
15 years ago
Claudio Mignanti
f3822efd8e
install headers, fix foxboard-utils
...
SVN-Revision: 16661
15 years ago
Claudio Mignanti
f692239c58
Fix kernel headers for cris (thanks hinkocevar)
...
SVN-Revision: 15153
16 years ago
Ralph Hempel
bc1ff678dd
fix powerpc build (works for 2.4 and 2.6)
...
SVN-Revision: 14707
16 years ago
Nicolas Thill
8a2030ff3d
move common variables to a dedicated include file
...
SVN-Revision: 14648
16 years ago
Nicolas Thill
239c4aef18
kernel-headers: fix build error when run for the second time
...
SVN-Revision: 14641
16 years ago
Felix Fietkau
7eb1589875
build system refactoring in preparation for allowing packages to do host-build steps
...
SVN-Revision: 14610
16 years ago
Nicolas Thill
33a0eb3613
cosmetic & coherency fixes
...
SVN-Revision: 14397
16 years ago
Nicolas Thill
ed4d79b529
more kernel headers fixes for cris
...
SVN-Revision: 14128
16 years ago
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
16 years ago
Nicolas Thill
2c1d444866
fix missing ptrace.h needed to build final gcc
...
SVN-Revision: 13995
16 years ago
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
16 years ago
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
16 years ago
Felix Fietkau
7bf353216c
fix up the asm includes location for .27 when building kernel headers
...
SVN-Revision: 12802
16 years ago
Felix Fietkau
799e7a8fa8
disable autorebuild for the toolchain, as it can easily lead to build breakages
...
SVN-Revision: 12492
16 years ago
John Crispin
c4f78ab795
remove ugly hack for etrax
...
SVN-Revision: 11026
17 years ago
Felix Fietkau
5f258e330d
fix path to etrax patches ( #3055 )
...
SVN-Revision: 10376
17 years ago
Imre Kaloz
7d93d975a5
*sigh* :P
...
SVN-Revision: 10373
17 years ago
Andy Boyett
6bdd0ef590
Disabling use of libintl in kernel-headers.
...
SVN-Revision: 9935
17 years ago
Nicolas Thill
b35e6fe3ba
include kernel-version.mk from kernel.mk so that a correct KERNEL_PATCHVER is always available
...
SVN-Revision: 8494
17 years ago
Florian Fainelli
da932d9e1a
Replace TOOLCHAIN_BUILD_DIR with BUILD_DIR_TOOLCHAIN (the other one is deprecated)
...
SVN-Revision: 8399
17 years ago
Felix Fietkau
50ecfa0505
fix kernel-headers download ( #2179 )
...
SVN-Revision: 8373
17 years ago
Felix Fietkau
c6bc77ea36
build system cleanup/restructuring as described in http://lists.openwrt.org/pipermail/openwrt-devel/2007-August/001159.html
...
SVN-Revision: 8362
17 years ago