aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Crispin <john@openwrt.org>2014-09-15 16:18:48 +0000
committerJohn Crispin <john@openwrt.org>2014-09-15 16:18:48 +0000
commit2ef0acc5fcda557fa5aaad35d27cb8cf75be96d2 (patch)
tree46e651cb7fa759972fc53d5ca7d89710de58d1f5
parent7ff276afd3b305ff77b57f21bb5277010b36ab7d (diff)
downloadupstream-2ef0acc5fcda557fa5aaad35d27cb8cf75be96d2.tar.gz
upstream-2ef0acc5fcda557fa5aaad35d27cb8cf75be96d2.tar.bz2
upstream-2ef0acc5fcda557fa5aaad35d27cb8cf75be96d2.zip
kernel-build: fix STRIP_KERNEL_EXPORTS for recent kernels
Recent kernels started to mark exported symbols as global. Adapt expressions in kernel-build.mk to also match global symbols when grep'ing through nm output. Signed-off-by: Daniel Golle <daniel@makrotopia.org> SVN-Revision: 42555
-rw-r--r--include/kernel-build.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/kernel-build.mk b/include/kernel-build.mk
index 2bf639218a..fd117d5b68 100644
--- a/include/kernel-build.mk
+++ b/include/kernel-build.mk
@@ -76,7 +76,7 @@ define BuildKernel
xargs $(TARGET_CROSS)nm | \
awk '$$$$1 == "U" { print $$$$2 } ' | \
sort -u > $(KERNEL_BUILD_DIR)/mod_symtab.txt
- $(TARGET_CROSS)nm -n $(LINUX_DIR)/vmlinux.o | grep -F ' r __ksymtab' | sed -e 's,........ r __ksymtab_,,' > $(KERNEL_BUILD_DIR)/kernel_symtab.txt
+ $(TARGET_CROSS)nm -n $(LINUX_DIR)/vmlinux.o | grep ' [rR] __ksymtab' | sed -e 's,........ [rR] __ksymtab_,,' > $(KERNEL_BUILD_DIR)/kernel_symtab.txt
grep -Ff $(KERNEL_BUILD_DIR)/mod_symtab.txt $(KERNEL_BUILD_DIR)/kernel_symtab.txt > $(KERNEL_BUILD_DIR)/sym_include.txt
grep -Fvf $(KERNEL_BUILD_DIR)/mod_symtab.txt $(KERNEL_BUILD_DIR)/kernel_symtab.txt > $(KERNEL_BUILD_DIR)/sym_exclude.txt
( \