X-Git-Url: http://git.rohieb.name/openwrt.git/blobdiff_plain/b28d42be5490844bbb4d675a317e3b88bc405bda..097a96122951f9a8dfe5eb051f021e7c3d82c373:/rules.mk?ds=sidebyside diff --git a/rules.mk b/rules.mk index a88295ecd..7153a04c2 100644 --- a/rules.mk +++ b/rules.mk @@ -23,6 +23,12 @@ $(strip $(subst ",,$(1))) endef #")) +empty:= +space:= $(empty) $(empty) +merge=$(subst $(space),,$(1)) +confvar=$(call merge,$(foreach v,$(1),$(if $($(v)),y,n))) + +_SINGLE=MAKEFLAGS=$(space) ARCH:=$(call qstrip,$(shell echo $(CONFIG_ARCH) | sed -e 's/i[3-9]86/i386/')) BOARD:=$(call qstrip,$(CONFIG_TARGET_BOARD)) TARGET_OPTIMIZATION:=$(call qstrip,$(CONFIG_TARGET_OPTIMIZATION)) @@ -114,11 +120,15 @@ TARGET_CONFIGURE_OPTS:= \ SIZE=$(TARGET_CROSS)size # strip an entire directory -RSTRIP:= \ - NM="$(TARGET_CROSS)nm" \ - STRIP="$(STRIP)" \ - STRIP_KMOD="$(TARGET_CROSS)strip --strip-unneeded --remove-section=.comment" \ - $(SCRIPT_DIR)/rstrip.sh +ifneq ($(CONFIG_BUILD_DEVELOPER_SYSTEM),) + RSTRIP:=: +else + RSTRIP:= \ + NM="$(TARGET_CROSS)nm" \ + STRIP="$(STRIP)" \ + STRIP_KMOD="$(TARGET_CROSS)strip --strip-unneeded --remove-section=.comment" \ + $(SCRIPT_DIR)/rstrip.sh +endif ifeq ($(CONFIG_ENABLE_LOCALE),true) DISABLE_NLS:= @@ -145,11 +155,6 @@ $(call shvar,$(1))=$$(call $(1)) export $(call shvar,$(1)) endef -empty:= -space:= $(empty) $(empty) -merge=$(subst $(space),,$(1)) -confvar=$(call merge,$(foreach v,$(1),$(if $($(v)),y,n))) - # file extension ext=$(word $(words $(subst ., ,$(1))),$(subst ., ,$(1)))