add an optional config option for stripping all unnecessary symbol exports from the kernel image

SVN-Revision: 17181
This commit is contained in:
Felix Fietkau
2009-08-08 14:22:04 +00:00
parent 253c9fcf7d
commit bb5a40c64b
5 changed files with 270 additions and 1 deletions

View File

@@ -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))