|
@@ -512,6 +512,23 @@ export INSTALL_PATH ?= /boot
|
|
|
MODLIB = $(INSTALL_MOD_PATH)/lib/modules/$(KERNELRELEASE)
|
|
|
export MODLIB
|
|
|
|
|
|
+#
|
|
|
+# INSTALL_MOD_STRIP, if defined, will cause modules to be
|
|
|
+# stripped after they are installed. If INSTALL_MOD_STRIP is '1', then
|
|
|
+# the default option --strip-debug will be used. Otherwise,
|
|
|
+# INSTALL_MOD_STRIP will used as the options to the strip command.
|
|
|
+
|
|
|
+ifdef INSTALL_MOD_STRIP
|
|
|
+ifeq ($(INSTALL_MOD_STRIP),1)
|
|
|
+mod_strip_cmd = $STRIP) --strip-debug
|
|
|
+else
|
|
|
+mod_strip_cmd = $(STRIP) $(INSTALL_MOD_STRIP)
|
|
|
+endif # INSTALL_MOD_STRIP=1
|
|
|
+else
|
|
|
+mod_strip_cmd = true
|
|
|
+endif # INSTALL_MOD_STRIP
|
|
|
+export mod_strip_cmd
|
|
|
+
|
|
|
|
|
|
ifeq ($(KBUILD_EXTMOD),)
|
|
|
core-y += kernel/ mm/ fs/ ipc/ security/ crypto/ block/
|