Felix Fietkau
081d10c739
kernel: use -ffunction-sections, -fdata-sections and --gc-sections on mips
...
in combination with kernel symbol export stripping this significantly reduces
the kernel image size
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@35320 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-01-26 16:26:13 +00:00
Felix Fietkau
baf6422f7b
kernel: fix module export stripping
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@35319 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-01-26 16:26:04 +00:00
Felix Fietkau
230a9f2b78
kernel: fix stripping symbol exports
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@34458 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-12-02 17:42:17 +00:00
Jo-Philipp Wich
86734b743c
[include] kernel-build.mk: there is no tarball when using CONFIG_KERNEL_GIT_CLONE_URI or CONFIG_EXTERNAL_KERNEL_TREE, do not make the prepared stamp file depend on it in this case
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@28361 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-10-03 11:33:13 +00:00
Felix Fietkau
be05754678
build: clean up handling of the kernel config
...
- 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
2011-04-06 14:48:55 +00:00
Lars-Peter Clausen
aab5464b30
Add kernel_nconfig make target
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22518 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-08-06 21:36:35 +00:00
Felix Fietkau
0bc00cc460
add a build system option for collecting all kernel debug information (including modules) in a tarball
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22327 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-07-21 15:18:24 +00:00
Felix Fietkau
a2db2d8773
Revert "sort Kconfig symbols automatically to make Kaloz happy :p"
...
Relying on some sort implementations' weird behaviour of ignoring # and whitespaces at the beginning of a line is not a good idea, and it's certainly not portable
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19675 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-02-16 21:34:50 +00:00
Gabor Juhos
565874a806
sort Kconfig symbols automatically to make Kaloz happy :p
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19582 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-02-11 13:07:10 +00:00
Felix Fietkau
9a724ec84e
merge target kernel config files with subtarget config files and add a 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
2009-11-11 01:25:06 +00:00
Felix Fietkau
131295ce36
add an optional config option for stripping all unnecessary symbol exports from the kernel image
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@17181 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-08-08 14:22:04 +00:00
Felix Fietkau
51966a3107
kernel: make sure all patches are applied before running menuconfig or oldconfig
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@15325 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-04-21 13:08:56 +00:00
Felix Fietkau
feb2913734
enable quilt by default for the kernel tree
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@12400 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-08-27 14:14:00 +00:00
Felix Fietkau
0f2583842c
fix make kernel_menuconfig for subtarget kernel config files
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@12376 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-08-23 23:45:28 +00:00
Felix Fietkau
627b34f1f2
rework parallel building to get rid of some warnings
...
and add back support for parallelizing the kernel build
fixes #3882
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@12322 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-08-16 16:59:47 +00:00
Felix Fietkau
2fb4a47e9a
create a platform config-* file if there is none already when running kernel_menuconfig or kernel_oldconfig
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@11460 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-06-13 15:28:31 +00:00
Felix Fietkau
f4e7bdac42
large improvement for parallel builds. works without V=99 now and without warnings. tested with -j on an 2x dual core opteron machine
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@11414 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-06-09 15:38:45 +00:00
Felix Fietkau
9d9c9653eb
fix kernel config on kernel_menuconfig abort
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@11076 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-05-08 15:52:55 +00:00
Felix Fietkau
8a6e77c006
fixes for refresh/update handling
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@9063 3c298f89-4303-0410-b956-a3cf2f4a3e73
2007-09-29 04:29:11 +00:00
Felix Fietkau
8d169cc962
Refactor downloading code into download.mk
...
Support multiple file downloads
Support svn downloads
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@9057 3c298f89-4303-0410-b956-a3cf2f4a3e73
2007-09-29 00:05:48 +00:00
Felix Fietkau
52da073acc
properly clean up after kernel_{old,menu}config
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@8737 3c298f89-4303-0410-b956-a3cf2f4a3e73
2007-09-11 00:14:37 +00:00
Felix Fietkau
78de618cde
fix kernel_menuconfig
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@8726 3c298f89-4303-0410-b956-a3cf2f4a3e73
2007-09-10 01:04:57 +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
Felix Fietkau
92558d67a4
strip the kernel version suffix from target directories, except for brcm-2.4 (the -2.4 will be included in the board name here). CONFIG_LINUX_<ver>_<board> becomes CONFIG_TARGET_<board>, same for profiles.
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@8653 3c298f89-4303-0410-b956-a3cf2f4a3e73
2007-09-06 16:27:37 +00:00
Nicolas Thill
1fb234e5c4
include kernel-version.mk from kernel.mk so that a correct KERNEL_PATCHVER is always available
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@8494 3c298f89-4303-0410-b956-a3cf2f4a3e73
2007-08-26 13:26:02 +00:00
Felix Fietkau
d10a56dc58
build system cleanup/restructuring as described in http://lists.openwrt.org/pipermail/openwrt-devel/2007-August/001159.html
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@8362 3c298f89-4303-0410-b956-a3cf2f4a3e73
2007-08-07 00:04:25 +00:00
Felix Fietkau
c29e126571
fix image installation
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@8324 3c298f89-4303-0410-b956-a3cf2f4a3e73
2007-08-03 01:21:41 +00:00
Felix Fietkau
0e7a726728
silence
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@8252 3c298f89-4303-0410-b956-a3cf2f4a3e73
2007-07-30 23:04:24 +00:00
Felix Fietkau
03ffe176e5
next round of cleanup, convert target/ - make -j works now ;)
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@8242 3c298f89-4303-0410-b956-a3cf2f4a3e73
2007-07-30 21:14:08 +00:00
Felix Fietkau
4205ec3e01
more dependency fixes
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@8115 3c298f89-4303-0410-b956-a3cf2f4a3e73
2007-07-23 02:41:33 +00:00
Felix Fietkau
64e1715894
prevent the new config changes from interfering with kernel_menuconfig
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@8031 3c298f89-4303-0410-b956-a3cf2f4a3e73
2007-07-18 12:05:59 +00:00
Felix Fietkau
cbd55fe6d7
dynamically enable/disable kernel config options for kmod packages based on build system config
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@8026 3c298f89-4303-0410-b956-a3cf2f4a3e73
2007-07-18 11:31:01 +00:00
Felix Fietkau
a9bc57f16e
add kernel_oldconfig target
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@8003 3c298f89-4303-0410-b956-a3cf2f4a3e73
2007-07-16 10:03:03 +00:00
Felix Fietkau
b70ced7eab
kernel: fix dependencies for .config, use selections from oldconfig when running menuconfig
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@7997 3c298f89-4303-0410-b956-a3cf2f4a3e73
2007-07-16 05:28:13 +00:00
Felix Fietkau
35aad8dc94
merge the kernel config parts at dump time, so that overrides that disable certain features work
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@7812 3c298f89-4303-0410-b956-a3cf2f4a3e73
2007-06-30 21:49:25 +00:00
Felix Fietkau
f46b6a0195
prepare for the transition to linux 2.6.22 - make it possible to override the kernel version in the target makefile
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@7644 3c298f89-4303-0410-b956-a3cf2f4a3e73
2007-06-16 01:56:04 +00:00
Felix Fietkau
773d1fc4f6
implement quilt handling for the kernel tree ... and there was much rejoicing!
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@7474 3c298f89-4303-0410-b956-a3cf2f4a3e73
2007-06-03 08:28:05 +00:00
Felix Fietkau
ae8db89239
fix pcmcia/pccard build defaults
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@7275 3c298f89-4303-0410-b956-a3cf2f4a3e73
2007-05-19 16:16:48 +00:00
Felix Fietkau
c6eb15e481
Improved autorebuild for kernel related stuff.
...
- make modules_install in the kernel tree is no longer called
- make modules is called on every target/compile run
- kmod packages pull the kernel modules directly out of the kernel tree and have proper file depends on them
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@6998 3c298f89-4303-0410-b956-a3cf2f4a3e73
2007-04-18 12:28:38 +00:00
Felix Fietkau
20453a1fde
remove reference to unused .kernel.mk
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@6959 3c298f89-4303-0410-b956-a3cf2f4a3e73
2007-04-15 21:39:30 +00:00
Felix Fietkau
f169bffb5f
trigger a kernel module rebuild when the kernel config changes
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@6671 3c298f89-4303-0410-b956-a3cf2f4a3e73
2007-03-24 17:05:26 +00:00
Felix Fietkau
ca098282b6
move default templates for the kernel build to kernel-defaults.mk (similar to package-defaults.mk)
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@6664 3c298f89-4303-0410-b956-a3cf2f4a3e73
2007-03-24 13:42:54 +00:00
Felix Fietkau
1b3722a5f8
some cleanups in the metadata.pl script; allow target profiles to add overrides for menuconfig
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@6648 3c298f89-4303-0410-b956-a3cf2f4a3e73
2007-03-23 14:48:47 +00:00
Felix Fietkau
ae39d6a370
nuke mdev and replace it with hotplug2 :)
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@6512 3c298f89-4303-0410-b956-a3cf2f4a3e73
2007-03-04 20:31:53 +00:00
Felix Fietkau
6206e86514
fix an error in the kernel image related commit
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@6467 3c298f89-4303-0410-b956-a3cf2f4a3e73
2007-03-02 21:07:53 +00:00
Felix Fietkau
d60f254616
kernel build cleanup
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@6464 3c298f89-4303-0410-b956-a3cf2f4a3e73
2007-03-02 17:24:20 +00:00
Felix Fietkau
473fc68bd2
fix kernel features detection - GENERIC_PLATFORM_DIR is unset at DUMP time
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@6346 3c298f89-4303-0410-b956-a3cf2f4a3e73
2007-02-23 03:45:46 +00:00
Felix Fietkau
c5367e59ac
fix a small bug in the order of the profile metadata dump
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@6340 3c298f89-4303-0410-b956-a3cf2f4a3e73
2007-02-22 03:54:52 +00:00
Felix Fietkau
2c938fe5b9
last commit was missing a change...
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@6339 3c298f89-4303-0410-b956-a3cf2f4a3e73
2007-02-22 03:47:00 +00:00
Felix Fietkau
800a95817d
Reorganize kernel configs - target/linux/*/config is now a directory.
...
./config/default will replace the old config and config-diff (format is like
config-diff, the full kernel config is no longer kept in the build system)
This commit removes all the kernel config stuff, the next one will add
the replacement - there's no way to do this atomically with svn.
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@6337 3c298f89-4303-0410-b956-a3cf2f4a3e73
2007-02-22 03:44:15 +00:00