Changeset 42555


Ignore:
Timestamp:
2014-09-15T18:18:48+02:00 (3 years ago)
Author:
blogic
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/kernel-build.mk

    r40913 r42555  
    7777                awk '$$$$1 == "U" { print $$$$2 } ' | \ 
    7878                sort -u > $(KERNEL_BUILD_DIR)/mod_symtab.txt 
    79         $(TARGET_CROSS)nm -n $(LINUX_DIR)/vmlinux.o | grep -F ' r __ksymtab' | sed -e 's,........ r __ksymtab_,,' > $(KERNEL_BUILD_DIR)/kernel_symtab.txt 
     79        $(TARGET_CROSS)nm -n $(LINUX_DIR)/vmlinux.o | grep ' [rR] __ksymtab' | sed -e 's,........ [rR] __ksymtab_,,' > $(KERNEL_BUILD_DIR)/kernel_symtab.txt 
    8080        grep -Ff $(KERNEL_BUILD_DIR)/mod_symtab.txt $(KERNEL_BUILD_DIR)/kernel_symtab.txt > $(KERNEL_BUILD_DIR)/sym_include.txt 
    8181        grep -Fvf $(KERNEL_BUILD_DIR)/mod_symtab.txt $(KERNEL_BUILD_DIR)/kernel_symtab.txt > $(KERNEL_BUILD_DIR)/sym_exclude.txt 
Note: See TracChangeset for help on using the changeset viewer.