Jonas Gorski
9c5cfcc8c9
include/kernel.mk: print warnings/errors to stderr
...
Makes warnings/errors visible when building with V=w/V=1.
Signed-off-by: Jonas Gorski <jogo@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@35713 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-02-21 11:45:16 +00:00
Felix Fietkau
5e0b3ba08e
kernel: fix module packages postinst by pointing to the new functions.sh location
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@34804 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-12-20 15:29:37 +00:00
John Crispin
631fa2c18c
[include] fixes uapi helper define
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@34715 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-12-16 11:04:27 +00:00
John Crispin
8339eed6b9
[include] adds wrapper for uapi directory
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@34683 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-12-15 01:59:14 +00:00
Felix Fietkau
1c7f02bbb9
kernel: move KERNEL_BUILD_DIR under BUILD_DIR to properly fix gcc/libc based dependencies
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@34450 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-12-02 15:26:24 +00:00
Jo-Philipp Wich
b3983573d6
include: use $(DIR_SUFFIX) in $(KERNEL_BUILD_DIR) to separate build_dir/linux-* directories when building different libc implementations in the same buildroot
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@34299 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-11-22 13:43:24 +00:00
Imre Kaloz
19498d12d4
use xz compressed kernel tarballs
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@34228 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-11-18 08:49:08 +00:00
Imre Kaloz
189d22580b
we only support v3.x kernels
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@34225 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-11-18 08:38:26 +00:00
Jo-Philipp Wich
63b45c1a5d
include: calculate md5sum over sorted kernel config symbol list and 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
2012-01-08 15:23:11 +00:00
Jonas Gorski
3e8f76c6c1
include/kernel.mk: don't check for modules.builtin on 2.6.32-
...
modules.builtin is only available in 2.6.33 and later, so fall back to
assuming it's built-in for older kernels.
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@29018 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-11-13 11:45:09 +00:00
Nicolas Thill
6e2ee91229
include/kernel.mk: enhance built-in/missing modules detection when packaging kmods
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@28856 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-11-08 14:00:36 +00:00
Nicolas Thill
eaa595d6ac
package/blockmount: simplify extroot module loading logic
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@28650 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-10-28 13:10:50 +00:00
Nicolas Thill
57334f059f
kernel: build kmod even for modules built-in
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@28649 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-10-28 13:10:43 +00:00
Michael Büsch
dc75d87ff9
Fix kernel version check macro typo
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@28627 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-10-27 16:56:22 +00:00
Jo-Philipp Wich
9869a07e62
[include] kernel.mk: also do not download Linux if CONFIG_KERNEL_GIT_CLONE_URI is set
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@28360 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-10-03 10:19:25 +00:00
Jonas Gorski
c025c5e99d
include/kernel.mk: fix download path for linux 3.x
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@27939 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-08-09 12:19:38 +00:00
Felix Fietkau
56a73bb2e7
only export GCC_HONOUR_COPTS for the built-in toolchain, fixes missing-fhonour-copts warnings with external toolchains
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@27771 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-07-25 10:32:38 +00:00
Jonas Gorski
4d2cc216a9
kernel.mk: Fix kernel module path for 3.0
...
Linux 3.0 calls itself 3.0.0, so insmod expects the modules in
/lib/modules/3.0.0.
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@27761 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-07-24 21:42:33 +00:00
Felix Fietkau
f25cc9b4df
kernel.mk: add a new helper for comparing kernel versions, which can take 1 - 4 field kernel versions
...
implement CompareKernelPatchVer using this new helper
implement kernel_patchver_{gt,ge,eq,le,lt}, which are more convenient for use with inline $(if)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@27087 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-06-01 18:08:17 +00:00
Felix Fietkau
939af33cd2
remove kernel major version specific kernelpackage overrides
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@27032 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-05-30 23:07:48 +00:00
Florian Fainelli
089d03f61a
[buildroot] make ModuleAutoLoad more readable
...
When doing a build with tracing on, the expansion of ModuleAutoLoad can get a
little hairy.
Using intermediate variables to name the arguments makes tracing more readable.
One side effect is that if an argument is accidentally left out, we won't get
all of the parameters shifted one over thanks to quoting (done in AutoLoad).
Signed-of-by: Philip Prindeville <philipp@redfish-solutions.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@23513 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-10-18 06:58:11 +00:00
Felix Fietkau
14be678094
speed up the build system by including include/shell.sh on shell commands only where necessary
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22720 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-08-19 12:49:37 +00:00
Nicolas Thill
466667bc03
partially revert [22145], keep LINUX_KMOD_SUFFIX, needed to build external modules in ./packages
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22146 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-07-12 16:01:13 +00:00
Claudio Mignanti
33990405fb
massive: replace occurences of .$(LINUX_KMOD_SUFFIX) with .ko after r21950
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22145 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-07-12 14:06:13 +00:00
Felix Fietkau
62c5734bb4
prevent kernel.mk from defining PATCH_DIR and FILES_DIR for regular packages
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@20569 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-03-29 03:07:54 +00:00
Felix Fietkau
5f4146c474
add support for marking specific kernel module packages as potentially being required for mounting the rootfs (patch by cshore)
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19878 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-02-26 22:45:54 +00:00
Felix Fietkau
98168dc456
do not download kernel sources when using an external kernel tree
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@18777 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-12-14 13:54:03 +00:00
Felix Fietkau
231f099af2
fix one more instance of r18295
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@18301 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-11-04 22:51:07 +00:00
Felix Fietkau
dbb423b5f0
fix platform specific overrides for kernel modules, fixes lp on brcm-2.4
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@18295 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-11-04 21:54:53 +00:00
Felix Fietkau
7a2dab6d92
now that $(BOARD) is part of the opkg ARCH, there's no reason to keep the board name around in kmod-* package versions anymore
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@17528 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-09-06 17:26:37 +00:00
Florian Fainelli
76260922ff
[package] ensure CONTROL directory is created ( #5683 )
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@17293 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-08-17 10:14:25 +00:00
Felix Fietkau
f0f9ec9c56
add a modified version of the mips64 patch from #4603
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@15249 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-04-18 17:03:55 +00:00
Felix Fietkau
bb66977c14
get rid of one more $(shell) instance
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@14741 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-03-03 15:28:57 +00:00
Felix Fietkau
937f1820f2
replace a few unnecessary $(shell) calls
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@14739 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-03-03 14:55:53 +00:00
Felix Fietkau
a01125e51b
avoid repeating the same dependency multiple times
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@14738 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-03-03 14:54:19 +00:00
Felix Fietkau
135596f78f
fix LINUX_KARCH for x86
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@13986 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-01-11 21:35:26 +00:00
Felix Fietkau
af835ce516
change the way ./files* and the generic kernel files are applied. ./files now applies to *ALL* kernel versions, and is copied along with ./files-* - this gets rid of quite a bit of redundancy in the extra kernel drivers.
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@13010 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-10-18 21:43:30 +00:00
Felix Fietkau
1328d9a59d
make sure that when the kernel config changes, compile is triggered for all kernel dependent packages
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@12503 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-09-02 15:50:09 +00:00
Felix Fietkau
d1b274fa4d
fix kconfig for packages that only define =y, =m or =n rules
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@12414 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-08-27 21:34:01 +00:00
Travis Kemen
f197ca7979
This patch makes kernel modules check if config is defined and creates a config
...
passthrough target which will evaluate the original config in the generated
package. This is done so kernel modules can have configuration menus like
busybox, etc... Signed-off-by: Axel Gembe <ago@bastart.eu.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@11139 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-05-15 00:57:50 +00:00
Nicolas Thill
2f18c70fb6
add a macro to compare kernel patch versions and use it for crypto and watchdog changes in 2.6.24+ kernels ( closes : #3402 )
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@11115 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-05-11 20:56:51 +00:00
Felix Fietkau
ef0a202a8f
add optional version suffix to kernel files/ directories
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@10972 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-04-28 22:01:14 +00:00
Felix Fietkau
e1ce02ea18
fix kernel config related build error
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@9640 3c298f89-4303-0410-b956-a3cf2f4a3e73
2007-11-30 17:22:44 +00:00
Felix Fietkau
090b96f417
include the kernel config for kernel related packages (should fix some b43 compile issues)
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@9635 3c298f89-4303-0410-b956-a3cf2f4a3e73
2007-11-30 09:43:08 +00:00
Felix Fietkau
89a37524b2
don't specify "CC=<nothing>" on kernel build command line
...
If KERNEL_CC isn't set, we end up with a "CC=" on the kernel build
command-line. We don't always need CC, as the CROSS_COMPILE flag does
the job instead. In fact, specifying CC messes up the build when we're
using a biarch compiler.
This change doesn't specify CC= if the KERNEL_CC variable is empty.
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@9408 3c298f89-4303-0410-b956-a3cf2f4a3e73
2007-10-23 06:23:23 +00:00
Felix Fietkau
dee598b99b
don't replace powerpc arch with ppc
...
'powerpc' is a valid arch for the LINUX_KARCH variable, but the build
system unconditionally replaces LIUNUX_KARCH=powerpc with
LINUX_KARCH=ppc.
This change only does the replacement if LINUX_KARCH isn't set. This
allows us to use the powerpc architecture.
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@9405 3c298f89-4303-0410-b956-a3cf2f4a3e73
2007-10-23 06:23:12 +00:00
Nicolas Thill
f8c8d4dc57
revert CONFIG_* symbols set m enforcement introduced in [8591], it can't work when symbols from different kernel versions are mixed in KCONFIG
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@8798 3c298f89-4303-0410-b956-a3cf2f4a3e73
2007-09-16 16:10:37 +00:00
Felix Fietkau
f22594c434
fix kernel build with quilt
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@8727 3c298f89-4303-0410-b956-a3cf2f4a3e73
2007-09-10 04:21:21 +00:00
Felix Fietkau
e5bcbd103b
fix kmod-crypto, emit warning messages for kmod packages that cannot be built due to missing kernel config options
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@8697 3c298f89-4303-0410-b956-a3cf2f4a3e73
2007-09-08 23:33:01 +00:00
Felix Fietkau
6bcd07afdd
major target cleanup. it is now possible to have subtargets that can override many target settings, including arch - merge adm5120, adm5120eb. target profiles still need to be adapted for subtargets
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@8694 3c298f89-4303-0410-b956-a3cf2f4a3e73
2007-09-08 19:55:42 +00:00