From 0dc940cdeeaa1fae3510ff8a1b581f4ecf27b5c4 Mon Sep 17 00:00:00 2001 From: Gustavo Zacarias Date: Tue, 30 Nov 2010 12:19:59 -0300 Subject: Makefile: introduce KSTRIPCMD to strip kernel modules When sstrip is selected it tries to strip kernel modules too. Unfortunately this fails with a "unrecognized program segment header size" error thus interrupting the build process. We introduce a new $(KSTRIPCMD) strip command for this, being a regular strip when sstrip is selected and an empty stub when not stripping. At the same time get rid of the REMOVE_SECTION_* variables, as they are only used once. Signed-off-by: Gustavo Zacarias Signed-off-by: Peter Korsgaard --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 8dbb026b7..008bdf335 100644 --- a/Makefile +++ b/Makefile @@ -421,7 +421,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 $(KSTRIPCMD) || true mkdir -p $(TARGET_DIR)/etc # Mandatory configuration file and auxilliary cache directory -- cgit v1.2.3