summaryrefslogtreecommitdiffstats
path: root/toolchain/kernel-headers
Commit message (Collapse)AuthorAgeFilesLines
* toolchain: assign PKG_CPE_IDAlexander Couzens2023-09-191-0/+1
| | | | | | | | | The PKG_CPE_ID links to NIST CPE version 2.2. Assign PKG_CPE_ID to all remaining package which have a CPE ID. Not every package has a CPE id. Related: https://github.com/openwrt/packages/issues/8534 Signed-off-by: Alexander Couzens <lynxis@fe80.eu>
* toolchain: kernel-headers: remove debugging env dumpPetr Štetiar2023-07-281-1/+0
| | | | | | | | | Remove debugging `env` dump left over as build environments might contain some sensitive information, which then might leak into the build logs. Fixes: 2105acbe2804 ("kernel-headers: fix compile error caused by wrong host include path when the toolchain is already built") Signed-off-by: Petr Štetiar <ynezz@true.cz>
* toolchain: kernel-headers: fix check target for external Git treesPetr Štetiar2023-07-281-0/+3
| | | | | | | | | | | | | | | | | | | | Executing following command currently fails: $ make toolchain/kernel-headers/{download,check} V=sc FIXUP=1 ... include/kernel-version.mk:11: *** Missing kernel version/hash file for . Please create include/kernel-. Stop. So lets fix it by adding the necessary missing KERNEL_PATCHVER variable. That additional kernel-build.mk include is needed to add another set of missing variables: $ make toolchain/kernel-headers/{download,check} V=sc FIXUP=1 ... Makefile:115: *** ERROR: Unknown pack format for file tmp/dl/. Stop. Fixes: 0765466a42f4 ("kernel: split kernel version to dedicated files") Signed-off-by: Petr Štetiar <ynezz@true.cz>
* kernel-headers: install isa-rev.h on mips to fix lzma-lader on linux 6.1Jonas Gorski2023-07-061-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | Since kernel 5.17+ the mips asm.h includes isa-rev.h, which itself was added 4.17. Without it, lzma-loader will fail to build: make[3] -C target/linux compile make[5]: warning: jobserver unavailable: using -j1. Add '+' to parent make rule. In file included from head.S:22: .../staging_dir/toolchain-mips_mips32_gcc-12.3.0_musl/include/asm/asm.h:22:10: fatal error: asm/isa-rev.h: No such file or directory 22 | #include <asm/isa-rev.h> | ^~~~~~~~~~~~~~~ compilation terminated. make[6]: *** [Makefile:64: head.o] Error 1 make[5]: *** [Makefile:345: compile] Error 2 make[4]: *** [Makefile:24: compile] Error 2 make[3]: *** [Makefile:11: compile] Error 2 ERROR: target/linux failed to build. So add the file to the files to install. We can do that unconditionally, since the oldest supported kernel 5.15 already includes it, even it if does not need it. Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>
* toolchain: kernel-headers: kernel Git tree mirror hashPetr Štetiar2020-11-271-0/+1
| | | | | | Allow setting of mirror hash for Git kernel tree. Signed-off-by: Petr Štetiar <ynezz@true.cz>
* toolchain: kernel-headers: fix check target for kernel Git treePetr Štetiar2020-11-271-2/+9
| | | | | | | | | | | | | Currently the check target fails if the kernel Git tree is used: $ make toolchain/kernel-headers/{download,check} make[2]: Entering directory 'toolchain/kernel-headers' Makefile:105: *** ERROR: Unknown pack format for file openwrt/tmp/dl/. Stop. make[2]: Leaving directory 'toolchain/kernel-headers' toolchain/Makefile:100: recipe for target 'toolchain/kernel-headers/check' failed Signed-off-by: Petr Štetiar <ynezz@true.cz>
* toolchain/kernel-headers: don't use TARGET_CFLAGSKevin Darbyshire-Bryant2019-10-161-4/+4
| | | | | | | | | | | 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>
* kernel-headers: adjust PKG_ variables when using git clone methodAlexandru Ardelean2018-01-271-1/+7
| | | | | | | | | | | | | | | | | | | | | | 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>
* build: use KERNEL_MAKE_FLAGS for kernel file compilationsKarl Vogel2017-10-291-6/+2
| | | | | | | 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>
* build: remove old kernel-headers build directoriesFelix Fietkau2017-06-161-0/+1
| | | | | | Saves space after updating kernel versions Signed-off-by: Felix Fietkau <nbd@nbd.name>
* treewide: clean up download hashesFelix Fietkau2016-12-161-1/+1
| | | | | | Replace *MD5SUM with *HASH, replace MD5 hashes with SHA256 Signed-off-by: Felix Fietkau <nbd@nbd.name>
* Remove existing old link before creating a new oneStefan Weil2016-07-251-1/+2
| | | | | | | 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>
* toolchain: remove obsolete kernel version checkFelix Fietkau2015-11-071-1/+1
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 47413
* toolchain: remove obsolete references to the cris architectureFelix Fietkau2015-03-241-9/+0
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 44964
* toolchain/kernel-headers: remove an obsolete patch directoryFelix Fietkau2015-03-171-24/+0
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 44871
* toolchain-headers: also copy asm-eva.h for mips(el) for 3.15+Jonas Gorski2014-12-011-0/+1
| | | | | | | | | 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
* remove support for ubicom32Florian Fainelli2012-11-302-4861/+0
| | | | | | Signed-off-by: Florian Fainelli <florian@openwrt.org> SVN-Revision: 34432
* kernel: fix portability issues on the x86 specific relocs host tool, fixes ↵Felix Fietkau2012-07-201-0/+1
| | | | | | build on mac os x SVN-Revision: 32783
* kernel-headers: Fix patch application for kernel-headers and a patch that ↵Daniel Dickinson2012-05-132-1/+25
| | | | | | 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
* kernel-headers: fix compile error caused by wrong host include path when the ↵Felix Fietkau2011-08-051-11/+14
| | | | | | toolchain is already built SVN-Revision: 27915
* kernel-headers: get rid of the arch/$(ARCH)/include/asm vs ↵Felix Fietkau2011-02-101-10/+6
| | | | | | include/asm-$(ARCH) copying mess and stick to what the kernel is using SVN-Revision: 25443
* toolchain: fix the sysroot mess by getting rid of $(TOOLCHAIN_DIR)/usr and ↵Felix Fietkau2010-08-191-8/+8
| | | | | | moving it back to $(TOOLCHAIN_DIR), this change makes the toolchain relocatable again, which should fix the SDK SVN-Revision: 22723
* remove support for building kernel headers with old kernelsFelix Fietkau2010-06-261-16/+3
| | | | SVN-Revision: 21957
* fix syntax errorMirko Vogt2010-06-201-1/+1
| | | | SVN-Revision: 21843
* make sure directory exists before copying intoMirko Vogt2010-06-191-0/+1
| | | | SVN-Revision: 21842
* toolchain/kernel-headers: simplify linux headers installation (remove legacy ↵Nicolas Thill2010-05-241-24/+9
| | | | | | hacks, cleanup) SVN-Revision: 21567
* toolchain/kernel-headers: restore support for patches, needed for ubicom32Nicolas Thill2010-04-151-0/+1
| | | | SVN-Revision: 20872
* fix kernel-headers buildFelix Fietkau2010-03-291-0/+1
| | | | SVN-Revision: 20584
* fix kernel-headers build for umlFlorian Fainelli2010-03-141-1/+1
| | | | SVN-Revision: 20203
* cleanup the 2.6.33 and later kernels kernel-headers installationFlorian Fainelli2010-03-031-5/+7
| | | | SVN-Revision: 19962
* fix compilation w/ 2.6.33Florian Fainelli2010-03-011-0/+4
| | | | SVN-Revision: 19933
* get rid of even more 2.6.28 stuffImre Kaloz2009-12-271-14723/+0
| | | | SVN-Revision: 18953
* kernel-headers: add linux 2.6.30 headers for ubicom32Felix Fietkau2009-12-161-0/+4852
| | | | SVN-Revision: 18792
* dump 2.6.25 supportClaudio Mignanti2009-10-021-34/+2
| | | | SVN-Revision: 17816
* add a heavily cleaned up version of ubicom32 toolchain supportFelix Fietkau2009-08-212-0/+14732
| | | | SVN-Revision: 17346
* install headers, fix foxboard-utilsClaudio Mignanti2009-07-031-3/+2
| | | | SVN-Revision: 16661
* Fix kernel headers for cris (thanks hinkocevar)Claudio Mignanti2009-04-081-10/+25
| | | | SVN-Revision: 15153
* fix powerpc build (works for 2.4 and 2.6)Ralph Hempel2009-03-011-6/+5
| | | | SVN-Revision: 14707
* move common variables to a dedicated include fileNicolas Thill2009-02-231-5/+1
| | | | SVN-Revision: 14648
* kernel-headers: fix build error when run for the second timeNicolas Thill2009-02-231-0/+1
| | | | SVN-Revision: 14641
* build system refactoring in preparation for allowing packages to do ↵Felix Fietkau2009-02-221-48/+48
| | | | | | host-build steps SVN-Revision: 14610
* cosmetic & coherency fixesNicolas Thill2009-02-031-1/+5
| | | | SVN-Revision: 14397
* more kernel headers fixes for crisNicolas Thill2009-01-211-1/+16
| | | | SVN-Revision: 14128
* move all arch fixups from Install to Prepare stage, so that fixed headers ↵Nicolas Thill2009-01-201-38/+31
| | | | | | are available in $(BUILD_DIR_TOOLCHAIN)/linux-dev/ SVN-Revision: 14120
* fix missing ptrace.h needed to build final gccNicolas Thill2009-01-121-1/+9
| | | | SVN-Revision: 13995
* add support for alternative C libraries (currently only glibc/eglibc) other ↵Nicolas Thill2009-01-081-12/+66
| | | | | | (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
* The merge of ppc (32-bit headers) and powerpc (previously 64-bit only ↵Hamish Guthrie2008-10-091-3/+5
| | | | | | 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
* fix up the asm includes location for .27 when building kernel headersFelix Fietkau2008-09-291-0/+5
| | | | SVN-Revision: 12802
* disable autorebuild for the toolchain, as it can easily lead to build breakagesFelix Fietkau2008-09-021-0/+1
| | | | SVN-Revision: 12492
* remove ugly hack for etraxJohn Crispin2008-05-031-8/+4
| | | | SVN-Revision: 11026