Browse Source

enable module stripping

Waldemar Brodkorb 11 years ago
parent
commit
3c08755382
2 changed files with 3 additions and 2 deletions
  1. 1 0
      mk/kernel.mk
  2. 2 2
      scripts/rstrip.sh

+ 1 - 0
mk/kernel.mk

@@ -70,6 +70,7 @@ ifneq ($(4),)
 	chmod 0755 $$(I_$(1))/CONTROL/postinst
 endif
 endif
+	$${RSTRIP} $${I_$(1)}
 	$(PKG_BUILD) $$(I_$(1)) $(PACKAGE_DIR) $(MAKE_TRACE)
 endef
 

+ 2 - 2
scripts/rstrip.sh

@@ -40,8 +40,8 @@ find $TARGETS -type f -a -exec file {} \; | \
 	case $line in
 	*ELF*executable*,\ not\ stripped*)
 		S=executable ;;
-	*/lib/modules/2.*.o:*ELF*relocatable*,\ not\ stripped* | \
-	*/lib/modules/2.*.ko:*ELF*relocatable*,\ not\ stripped*)
+	*/lib/modules/3.*.o:*ELF*relocatable*,\ not\ stripped* | \
+	*/lib/modules/3.*.ko:*ELF*relocatable*,\ not\ stripped*)
 		# kernel module parametres must not be stripped off
 		T="$T --strip-unneeded $(echo $(${prefix}nm $F | \
 		    sed -n -e '/__param_/s/^.*__param_/-K /p' \