diff options
author | Felix Fietkau <nbd@openwrt.org> | 2009-08-08 14:22:04 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2009-08-08 14:22:04 +0000 |
commit | bb5a40c64b7c4f4848509fa0a6625055fc9e66cc (patch) | |
tree | d02b9ad490e5885181ac20e22325bbce49d3f4bc /include/kernel-defaults.mk | |
parent | 253c9fcf7d948fb8763defe612cf53ee860744f3 (diff) | |
download | upstream-bb5a40c64b7c4f4848509fa0a6625055fc9e66cc.tar.gz upstream-bb5a40c64b7c4f4848509fa0a6625055fc9e66cc.tar.bz2 upstream-bb5a40c64b7c4f4848509fa0a6625055fc9e66cc.zip |
add an optional config option for stripping all unnecessary symbol exports from the kernel image
SVN-Revision: 17181
Diffstat (limited to 'include/kernel-defaults.mk')
-rw-r--r-- | include/kernel-defaults.mk | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/kernel-defaults.mk b/include/kernel-defaults.mk index f205553587..0ba1e056a6 100644 --- a/include/kernel-defaults.mk +++ b/include/kernel-defaults.mk @@ -22,6 +22,11 @@ KERNEL_MAKEOPTS := -C $(LINUX_DIR) \ KBUILD_HAVE_NLS=no \ CONFIG_SHELL="$(BASH)" +ifdef CONFIG_STRIP_KERNEL_EXPORTS + KERNEL_MAKEOPTS += \ + EXTRA_LDSFLAGS="-I$(KERNEL_BUILD_DIR) -include symtab.h" +endif + INITRAMFS_EXTRA_FILES ?= $(GENERIC_PLATFORM_DIR)/image/initramfs-base-files.txt ifneq (,$(KERNEL_CC)) |