[Buildroot] [PATCH] linux: restore note/comment section stripping

Mike Frysinger vapier at gentoo.org
Wed Nov 24 21:34:13 UTC 2010


The recent linux strip patch dropped the removal of note/comment sections
from kernel modules.  Add them back in using the existing variables.

Signed-off-by: Mike Frysinger <vapier at gentoo.org>
---
 Makefile |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/Makefile b/Makefile
index 81f516b..708a943 100644
--- a/Makefile
+++ b/Makefile
@@ -429,7 +429,7 @@ endif
 	find $(TARGET_DIR) -type f -perm +111 '!' -name 'libthread_db.so*' | \
 		xargs $(STRIPCMD) 2>/dev/null || true
 	find $(TARGET_DIR)/lib/modules -type f -name '*.ko' | \
-		xargs -r $(STRIPCMD) $(STRIP_STRIP_UNNEEDED)
+		xargs -r $(STRIPCMD) $(STRIP_STRIP_UNNEEDED) $(REMOVE_SECTION_COMMENT) $(REMOVE_SECTION_NOTE)
 
 	mkdir -p $(TARGET_DIR)/etc
 	# Mandatory configuration file and auxilliary cache directory
-- 
1.7.3.2



More information about the buildroot mailing list