diff options
author | Nicolas Thill <nico@openwrt.org> | 2010-04-29 00:32:44 +0000 |
---|---|---|
committer | Nicolas Thill <nico@openwrt.org> | 2010-04-29 00:32:44 +0000 |
commit | 224db523da8a4d49a20300b25081fbb5cccb9626 (patch) | |
tree | c626b5df69e04b31617b0e0d5f2c9efc11a7fc17 | |
parent | d427d303d4f606343ea286dddc58a45358ed0c24 (diff) | |
download | mtk-20170518-224db523da8a4d49a20300b25081fbb5cccb9626.zip mtk-20170518-224db523da8a4d49a20300b25081fbb5cccb9626.tar.gz mtk-20170518-224db523da8a4d49a20300b25081fbb5cccb9626.tar.bz2 |
replace old quote stripping with calls to qstrip macro
SVN-Revision: 21242
-rw-r--r-- | include/package-version-override.mk | 4 | ||||
-rw-r--r-- | target/linux/at91/image/u-boot/Makefile | 6 | ||||
-rw-r--r-- | target/linux/avr32/image/u-boot/Makefile | 2 | ||||
-rw-r--r-- | target/linux/x86/image/Makefile | 10 |
4 files changed, 10 insertions, 12 deletions
diff --git a/include/package-version-override.mk b/include/package-version-override.mk index f18ecd7..eaaa352 100644 --- a/include/package-version-override.mk +++ b/include/package-version-override.mk @@ -3,7 +3,7 @@ PKG_VERSION_ORGINAL:=$(PKG_VERSION) # in case that another version is provided, overwrite the original ifeq ($(CONFIG_$(PKG_NAME)_USE_CUSTOM_VERSION),y) -PKG_VERSION:= $(strip $(subst ",, $(CONFIG_$(PKG_NAME)_CUSTOM_VERSION))) +PKG_VERSION:=$(call qstrip,$(CONFIG_$(PKG_NAME)_CUSTOM_VERSION)) PKG_SOURCE:=$(subst $(PKG_VERSION_ORGINAL),$(PKG_VERSION),$(PKG_SOURCE)) PKG_MD5SUM:= endif @@ -26,7 +26,7 @@ endef # in case that an customer source path is provided, set the acc. default variable ifeq ($(CONFIG_$(PKG_NAME)_USE_CUSTOM_SOURCE_DIR),y) -PKG_DEFAULT_CUSTOM_SOURCE_DIR:= $(strip $(subst ",, $(CONFIG_$(PKG_NAME)_CUSTOM_SOURCE_DIR))) +PKG_DEFAULT_CUSTOM_SOURCE_DIR:= $(call qstrip,$(CONFIG_$(PKG_NAME)_CUSTOM_SOURCE_DIR)) endif # package specific configuration diff --git a/target/linux/at91/image/u-boot/Makefile b/target/linux/at91/image/u-boot/Makefile index f53df11..89a2be0 100644 --- a/target/linux/at91/image/u-boot/Makefile +++ b/target/linux/at91/image/u-boot/Makefile @@ -20,9 +20,9 @@ PKG_CAT:=bzcat include $(INCLUDE_DIR)/package.mk -UBOOT_CONFIG=$(strip $(subst ",, $(CONFIG_UBOOT_TARGET))) -LAN_IP=$(strip $(CONFIG_UBOOT_IPADDR)) -LAN_SERVERIP=$(strip $(subst ",, $(CONFIG_UBOOT_SERVERIP))) +UBOOT_CONFIG=$(call qstrip,$(CONFIG_UBOOT_TARGET)) +LAN_IP=$(call qstrip,$(CONFIG_UBOOT_IPADDR)) +LAN_SERVERIP=$(call qstrip,$(CONFIG_UBOOT_SERVERIP)) define Build/Compile $(MAKE) -C $(PKG_BUILD_DIR) $(UBOOT_CONFIG)_config diff --git a/target/linux/avr32/image/u-boot/Makefile b/target/linux/avr32/image/u-boot/Makefile index 2d95b87..79bdb9f 100644 --- a/target/linux/avr32/image/u-boot/Makefile +++ b/target/linux/avr32/image/u-boot/Makefile @@ -20,7 +20,7 @@ PKG_CAT:=bzcat include $(INCLUDE_DIR)/package.mk -UBOOT_CONFIG=$(strip $(subst ",, $(CONFIG_AVR32_UBOOT_TARGET))) +UBOOT_CONFIG=$(call qstrip,$(CONFIG_AVR32_UBOOT_TARGET)) define Build/Compile $(MAKE) -C $(PKG_BUILD_DIR) $(UBOOT_CONFIG)_config diff --git a/target/linux/x86/image/Makefile b/target/linux/x86/image/Makefile index 2a6a2e3..a4399a2 100644 --- a/target/linux/x86/image/Makefile +++ b/target/linux/x86/image/Makefile @@ -10,15 +10,13 @@ include $(INCLUDE_DIR)/image.mk export PATH=$(TARGET_PATH):/sbin ifneq ($(CONFIG_TARGET_x86_olpc),y) -BOOTOPTS=$(strip $(subst ",, $(CONFIG_X86_GRUB_BOOTOPTS))) -ROOTPART=$(strip $(subst ",, $(CONFIG_X86_GRUB_ROOTPART))) -#"))")) # fix vim's broken syntax highlighting +BOOTOPTS=$(call qstrip,$(CONFIG_X86_GRUB_BOOTOPTS)) +ROOTPART=$(call qstrip,$(CONFIG_X86_GRUB_ROOTPART)) endif ifeq ($(CONFIG_TARGET_x86_olpc),y) -ROOTPART=$(strip $(subst ",, $(CONFIG_OLPC_BOOTSCRIPT_ROOTPART))) +ROOTPART=$(call qstrip,$(CONFIG_OLPC_BOOTSCRIPT_ROOTPART)) endif -#"))")) # fix vim's broken syntax highlighting GRUB_TERMINALS = GRUB_SERIAL_CONFIG = @@ -31,7 +29,7 @@ GRUB_TERMINALS += console endif ifneq ($(CONFIG_X86_GRUB_SERIAL),) -GRUB_CONSOLE_CMDLINE += console=$(strip $(subst ",, $(CONFIG_X86_GRUB_SERIAL))),$(CONFIG_X86_GRUB_BAUDRATE)n8 +GRUB_CONSOLE_CMDLINE += console=$(call qstrip,$(CONFIG_X86_GRUB_SERIAL)),$(CONFIG_X86_GRUB_BAUDRATE)n8 GRUB_SERIAL_CONFIG = serial --unit=0 --speed=$(CONFIG_X86_GRUB_BAUDRATE) --word=8 --parity=no --stop=1 GRUB_TERMINALS += serial endif |