aboutsummaryrefslogtreecommitdiffstats
path: root/include/kernel-defaults.mk
Commit message (Collapse)AuthorAgeFilesLines
* build: remove obsolete references to cris and avr32Felix Fietkau2015-03-241-5/+0
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44965 3c298f89-4303-0410-b956-a3cf2f4a3e73
* include: pass kernel version when generating kconfig overridesJo-Philipp Wich2015-01-291-2/+2
| | | | | | Signed-off-by: Jo-Philipp Wich <jow@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44189 3c298f89-4303-0410-b956-a3cf2f4a3e73
* kernel: allow specifying kernel images to be copied separately from kernel ↵Felix Fietkau2014-12-111-3/+4
| | | | | | | | make command line Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@43619 3c298f89-4303-0410-b956-a3cf2f4a3e73
* build: remove useless quote stripping for KERNELNAME, add fallback for it in ↵Felix Fietkau2014-10-051-9/+4
| | | | | | | | the kernel build command line Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42781 3c298f89-4303-0410-b956-a3cf2f4a3e73
* build: make sure modules are modposted after initramfs image is builtFelix Fietkau2014-10-051-2/+2
| | | | | | | | | | | | | | Otherwise the modpost steps for individual modules that are compiled manually (using make package/<name_of_module>/install) will give warning of missing symbols when that module depends other modules. This is caused by the Module.symvers file not containing any symbols anymore of external modules when the initramfs image is built without specifically giving the modules target. Signed-off-by: Tjalling Hattink <t.hattink@fugro.nl> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42773 3c298f89-4303-0410-b956-a3cf2f4a3e73
* target/linux/*/image/Makefile: eliminate more LINUX_DIR usersJohn Crispin2014-07-211-0/+1
| | | | | | Signed-off-by: John Crispin <blogic@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41792 3c298f89-4303-0410-b956-a3cf2f4a3e73
* include: Allow git kernel branch selectionJohn Crispin2014-06-021-0/+4
| | | | | | | | | This allows the selection of a specific branch in the menuconfig when using a kernel downloaded from GIT. Signed-off-by: Mathieu Olivari <mathieu@qca.qualcomm.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@40946 3c298f89-4303-0410-b956-a3cf2f4a3e73
* include: Clean-up kernel git command options managementJohn Crispin2014-06-021-1/+7
| | | | | | | | | | | | | | | | | The way git options are managed in kernel-defaults.mk makes additions difficult. If requires different code path for each option; it's ok so far as we handle only one option, but if we want to make the git clone mechanism more flexible, more option will be required, which will become tedious. So; we'll move the GIT options into a variable, that may or may not be set depending on the configuration, and we'll pass this variable to the git command. Signed-off-by: Mathieu Olivari <mathieu@qca.qualcomm.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@40945 3c298f89-4303-0410-b956-a3cf2f4a3e73
* config: Remove KERNEL_GIT_LOCAL_REPOSITORY optionJohn Crispin2014-06-021-8/+2
| | | | | | | | | | | | | | | | | | | | The GIT_LOCAL_REPOSITORY option adds the --reference argument to the git clone kernel command line, if KERNEL_GIT_CLONE_URI is set. This option is intended to speed-up the repo creation by using local objets rather than downloading it. However, a local repo can be cloned much faster by setting GIT_LOCAL_REPOSITORY directly to the local tree. In that case, git clone will bypass the normal "git aware" transport mechanism and clone the repository by copying and hardlinking objects rather than downloading it, resulting in a significant speed increase. That makes the GIT_LOCAL_REPOSITORY option pretty useless so we'll just remove it and recommand the usage of KERNEL_GIT_CLONE_URI directly. Signed-off-by: Mathieu Olivari <mathieu@qca.qualcomm.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@40944 3c298f89-4303-0410-b956-a3cf2f4a3e73
* sparse: add as a new package selectable from the configJohn Crispin2014-04-121-0/+4
| | | | | | | | | | | | | This change does multiple things, all related to enable sparse usage as a static analysis tool selectable from the OpenWrt configuration: *add a KERNEL_SPARSE option in the config to add sparse to the kernel build (through the C=1 option usage) *add sparse as a new host tools. It will get selected automatically when the above option will be enabled Signed-off-by: Mathieu Olivari <mathieu@qca.qualcomm.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@40490 3c298f89-4303-0410-b956-a3cf2f4a3e73
* partially revert "build: remove check for nonexistant CONFIG_TAR_VERBOSITY ↵Felix Fietkau2014-03-221-1/+1
| | | | | | | | variable and move TAR_OPTIONS to unpack.mk" This complicates the evaluation order for some packages git-svn-id: svn://svn.openwrt.org/openwrt/trunk@40006 3c298f89-4303-0410-b956-a3cf2f4a3e73
* include: r39979 broke kernel unpackingJohn Crispin2014-03-211-1/+1
| | | | | | Signed-off-by: John Crispin <blogic@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@40002 3c298f89-4303-0410-b956-a3cf2f4a3e73
* kernel: fix parallel build issues with header installFelix Fietkau2014-01-301-1/+1
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39424 3c298f89-4303-0410-b956-a3cf2f4a3e73
* add x86_64 target supportImre Kaloz2014-01-071-0/+5
| | | | | | | | Signed-off-by: Imre Kaloz <kaloz@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39208 3c298f89-4303-0410-b956-a3cf2f4a3e73
* include: handle LZ4 compression schemeFlorian Fainelli2013-10-251-0/+1
| | | | | | | | | | Kernel 3.12 now offers LZ4 compression which will make initramfs builds fail because we do not know how to substitute the relevant config symbols, fix that. Signed-off-by: Florian Fainelli <florian@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@38533 3c298f89-4303-0410-b956-a3cf2f4a3e73
* kernel: fix remaining initramfs related breakageFelix Fietkau2013-07-231-2/+2
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@37518 3c298f89-4303-0410-b956-a3cf2f4a3e73
* include: fix path for kernel-generated cpio removalLuka Perkov2013-07-021-1/+1
| | | | | | Signed-off-by: Luka Perkov <luka@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@37128 3c298f89-4303-0410-b956-a3cf2f4a3e73
* include: force a kernel-generated cpio removal and rebuildFlorian Fainelli2013-07-011-0/+1
| | | | | | | | | Make sure that the kernel rebuilds the initramfs cpio archive file by deleting it before so we get it re-generated properly. Signed-off-by: Florian Fainelli <florian@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@37125 3c298f89-4303-0410-b956-a3cf2f4a3e73
* buildroot: filter out dtbs KERNELNAME target (#13785)Florian Fainelli2013-06-301-1/+1
| | | | | | | | | Do not attempt to copy arch/$(LINUX_KARCH)/boot/dtbs because these are not real files, fixes #13785. Signed-off-by: Florian Fainelli <florian@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@37107 3c298f89-4303-0410-b956-a3cf2f4a3e73
* buildroot: copy KENRNELNAME files to $(KDIR)Florian Fainelli2013-06-271-0/+10
| | | | | | | | | | In order to support building both normal and initramfs kernel, we will rebuild the wrappers around the vmlinux ELF binary, copy these with an appropriate extension when they exist. Signed-off-by: Florian Fainelli <florian@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@37048 3c298f89-4303-0410-b956-a3cf2f4a3e73
* buildroot: build a second pass kernel if initramfs is enabledFlorian Fainelli2013-06-271-6/+29
| | | | | | | | | If initramfs is enabled, build a second pass kernel containing the CPIO rootfs, preliminary work to get non exclusive enabling of initramfs. Signed-off-by: Florian Fainelli <florian@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@37047 3c298f89-4303-0410-b956-a3cf2f4a3e73
* buildroot: workaround broken syntax highlightingFlorian Fainelli2013-06-271-0/+1
| | | | | | | | | GNU Make's subst is always breaking syntax highlighting with at least vim add the right comments to workaround it. Signed-off-by: Florian Fainelli <florian@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@37046 3c298f89-4303-0410-b956-a3cf2f4a3e73
* kernel: add missing CONFIG_KALLSYMS_UNCOMPRESSED symbolFlorian Fainelli2013-01-151-0/+1
| | | | | | Signed-off-by: Florian Fainelli <florian@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@35180 3c298f89-4303-0410-b956-a3cf2f4a3e73
* use xz compressed kernel tarballsImre Kaloz2012-11-181-1/+1
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@34228 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [buildroot] kernel-defaults: factor common code handling initramfs optionsFlorian Fainelli2012-10-311-30/+25
| | | | | | | | While at it, reindent so it is more in-line with the rest of the file. Signed-off-by: Florian Fainelli <florian@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@34034 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [buildroot] properly reindent Kernel/Prepare/DefaultFlorian Fainelli2012-10-301-6/+6
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@34014 3c298f89-4303-0410-b956-a3cf2f4a3e73
* kernel: suppress redundant calls to headers installationFelix Fietkau2012-09-151-1/+1
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@33421 3c298f89-4303-0410-b956-a3cf2f4a3e73
* kernel: remove the explicit kernel make call for "oldconfig prepare ↵Felix Fietkau2012-09-151-1/+0
| | | | | | scripts", the kernel build system has proper dependencies git-svn-id: svn://svn.openwrt.org/openwrt/trunk@33420 3c298f89-4303-0410-b956-a3cf2f4a3e73
* kernel: fix portability issues on the x86 specific relocs host tool, fixes ↵Felix Fietkau2012-07-201-0/+1
| | | | | | build on mac os x git-svn-id: svn://svn.openwrt.org/openwrt/trunk@32783 3c298f89-4303-0410-b956-a3cf2f4a3e73
* build: allow KERNELNAME to contain multiple kernel make targetsFlorian Fainelli2012-06-181-1/+1
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@32423 3c298f89-4303-0410-b956-a3cf2f4a3e73
* include/kernel-defaults: set V='' if c is not set in OPENWRT_VERBOSEGabor Juhos2012-05-051-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This fixes the following errors: CALL arch/powerpc/kernel/prom_init_check.sh arch/powerpc/kernel/prom_init_check.sh: line 39: [: ss: integer expression expected arch/powerpc/kernel/prom_init_check.sh: line 39: [: ss: integer expression expected arch/powerpc/kernel/prom_init_check.sh: line 39: [: ss: integer axpression expected arch/powerpc/kernel/prom_init_check.sh: line 39: [: ss: integer expression expected arch/powerpc/kernel/prom_init_check.sh: line 39: [: ss: integer expression expected arch/powerpc/kernel/prom_init_check.sh: line 39: [: ss: integer expression expected arch/powerpc/kernel/prom_init_check.sh: line 39: [: ss: integer expression expected arch/powerpc/kernel/prom_init_check.sh: line 39: [: ss: integer expression expected arch/powerpc/kernel/prom_init_check.sh: line 39: [: ss: integer expression expected arch/powerpc/kernel/prom_init_check.sh: line 39: [: ss: integer expression expected arch/powerpc/kernel/prom_init_check.sh: line 39: [: ss: integer expression expected arch/powerpc/kernel/prom_init_check.sh: line 39: [: ss: integer expression expected arch/powerpc/kernel/prom_init_check.sh: line 39: [: ss: integer expression expected arch/powerpc/kernel/prom_init_check.sh: line 39: [: ss: integer expression expected arch/powerpc/kernel/prom_init_check.sh: line 39: [: ss: integer expression expected arch/powerpc/kernel/prom_init_check.sh: line 39: [: ss: integer expression expected arch/powerpc/kernel/prom_init_check.sh: line 39: [: ss: integer expression expected arch/powerpc/kernel/prom_init_check.sh: line 39: [: ss: integer expression expected arch/powerpc/kernel/prom_init_check.sh: line 39: [: ss: integer expression expected GEN .version CHK include/generated/compile.h UPD include/generated/compile.h git-svn-id: svn://svn.openwrt.org/openwrt/trunk@31598 3c298f89-4303-0410-b956-a3cf2f4a3e73
* Fix iptables abuse of kernel header files. Use exported headers instead.Gabor Juhos2012-05-031-0/+1
| | | | | | | | [juhosg: export xt_layer7.h for all kernel versions] Signed-off-by: David Woodhouse <David.Woodhouse@intel.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@31566 3c298f89-4303-0410-b956-a3cf2f4a3e73
* build: rework verbosity level selectionFelix Fietkau2012-04-261-5/+2
| | | | | | | | | | | | | V=99 and V=1 are now deprecated in favor of a new verbosity class system, though the old flags are still supported. You can set the V variable on the command line (or OPENWRT_VERBOSE in the environment) to one or more of the following characters: - s: stdout+stderr (equal to the old V=99) - c: commands (for build systems that suppress commands by default, e.g. kbuild) - w: warnings/errors only (equal to the old V=1) git-svn-id: svn://svn.openwrt.org/openwrt/trunk@31484 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [include/kernel-defaults.mk] enable verbose output of kernel build if V=99 ↵Mirko Vogt2012-04-241-0/+4
| | | | | | | | is passed append V=1 to KERNEL_MAKEOPTS when $V (and therewith $KBUILD_VERBOSE) is set to 99 git-svn-id: svn://svn.openwrt.org/openwrt/trunk@31466 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [image] define external cpioJohn Crispin2012-04-051-0/+16
| | | | | | | | Allow building image with an external cpio Signed-off-by: Tathagata Das <tathagata@alumnux.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@31204 3c298f89-4303-0410-b956-a3cf2f4a3e73
* include: calculate md5sum over sorted kernel config symbol list and ↵Jo-Philipp Wich2012-01-081-0/+1
| | | | | | | | | | incorperate it into the kernel metapackage version, make kmods depend on this specific version. The aim of this change is to invalidate kmods which are built against a different kernel config on the opkg metadata level. Manual copying and insmod of custom *.ko files, e.g. for development purpose, is still possible. git-svn-id: svn://svn.openwrt.org/openwrt/trunk@29686 3c298f89-4303-0410-b956-a3cf2f4a3e73
* add a portable version of sys/sysmacros.h and and let the kernel use the ↵Felix Fietkau2011-07-021-0/+2
| | | | | | host include dir, fixes x86 builds on non-gnu systems git-svn-id: svn://svn.openwrt.org/openwrt/trunk@27346 3c298f89-4303-0410-b956-a3cf2f4a3e73
* build: clean up handling of the kernel configFelix Fietkau2011-04-061-1/+1
| | | | | | | - support kernel config overlays in env/ - allow overriding the target kernel config with CONFIG_TARGET=platform|subtarget|env git-svn-id: svn://svn.openwrt.org/openwrt/trunk@26498 3c298f89-4303-0410-b956-a3cf2f4a3e73
* only support EABI on ARM targetsImre Kaloz2011-03-071-2/+0
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@25928 3c298f89-4303-0410-b956-a3cf2f4a3e73
* fixup board specific KERNELNAME overridesImre Kaloz2011-01-271-3/+1
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@25138 3c298f89-4303-0410-b956-a3cf2f4a3e73
* 2.6.38 supports xz ramdisks, tooImre Kaloz2011-01-241-0/+1
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@25080 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [buildroot] make targets provide their KERNELNAMEFlorian Fainelli2010-11-081-9/+0
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@23919 3c298f89-4303-0410-b956-a3cf2f4a3e73
* remove linux 2.4 specific build system codeFelix Fietkau2010-06-261-12/+2
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21951 3c298f89-4303-0410-b956-a3cf2f4a3e73
* finalize lzma/jffs2 support (currently not enebled by default, for kernels ↵Alexandros C. Couloumbis2010-04-131-3/+2
| | | | | | | | | >=2.6.33) based on Edgar Soldin patches: https://lists.openwrt.org/pipermail/openwrt-devel/2010-March/006550.html git-svn-id: svn://svn.openwrt.org/openwrt/trunk@20837 3c298f89-4303-0410-b956-a3cf2f4a3e73
* make lzo compressed initramfs selectable, tooImre Kaloz2009-11-211-0/+1
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@18457 3c298f89-4303-0410-b956-a3cf2f4a3e73
* merge target kernel config files with subtarget config files and add a ↵Felix Fietkau2009-11-111-1/+1
| | | | | | variable override for editing the target kernel config file with make kernel_menuconfig in case the subtarget contains overrides (thx, sn9) git-svn-id: svn://svn.openwrt.org/openwrt/trunk@18362 3c298f89-4303-0410-b956-a3cf2f4a3e73
* automatically adjust CONFIG_BLK_DEV_INITRD in the kernel config (thx, sn9)Felix Fietkau2009-11-111-1/+2
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@18361 3c298f89-4303-0410-b956-a3cf2f4a3e73
* add menuconfig option for enabling debugfs support in the kernelGabor Juhos2009-09-081-0/+1
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@17540 3c298f89-4303-0410-b956-a3cf2f4a3e73
* add menuconfig option for selecting initramfs compressionGabor Juhos2009-08-161-5/+7
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@17283 3c298f89-4303-0410-b956-a3cf2f4a3e73
* add an optional config option for stripping all unnecessary symbol exports ↵Felix Fietkau2009-08-081-0/+5
| | | | | | from the kernel image git-svn-id: svn://svn.openwrt.org/openwrt/trunk@17181 3c298f89-4303-0410-b956-a3cf2f4a3e73