equal
deleted
inserted
replaced
36 # and filter out files that shouldn't go into the image. |
36 # and filter out files that shouldn't go into the image. |
37 |
37 |
38 MODULES_CMDS_STRIPPED := $(SUPPORT_OUTPUTDIR)/modules_cmds-stripped |
38 MODULES_CMDS_STRIPPED := $(SUPPORT_OUTPUTDIR)/modules_cmds-stripped |
39 MODULES_LIBS_STRIPPED := $(SUPPORT_OUTPUTDIR)/modules_libs-stripped |
39 MODULES_LIBS_STRIPPED := $(SUPPORT_OUTPUTDIR)/modules_libs-stripped |
40 |
40 |
41 ifneq ($(POST_STRIP_CMD), ) |
41 ifneq ($(STRIP), ) |
42 define StripRecipe |
42 define StripRecipe |
43 $(ECHO) Stripping $(LOG_INFO) $(patsubst $(OUTPUT_ROOT)/%,%,$<) |
43 $(ECHO) Stripping $(LOG_INFO) $(patsubst $(OUTPUT_ROOT)/%,%,$<) |
44 $(MKDIR) -p $(@D) |
44 $(MKDIR) -p $(@D) |
45 $(CP) $< $@.tmp |
45 $(CP) $< $@.tmp |
46 $(CHMOD) u+w $@.tmp |
46 $(CHMOD) u+w $@.tmp |
47 $(POST_STRIP_CMD) $@.tmp |
47 $(STRIP) $(STRIPFLAGS) $@.tmp |
48 $(CHMOD) go-w $@.tmp |
48 $(CHMOD) go-w $@.tmp |
49 $(MV) $@.tmp $@ |
49 $(MV) $@.tmp $@ |
50 endef |
50 endef |
51 else |
51 else |
52 define StripRecipe |
52 define StripRecipe |