From: Michael Trimarchi Date: Fri, 7 Apr 2017 10:03:22 +0000 (+0200) Subject: uboot: qstrip BR2_TARGET_UBOOT_CUSTOM_DTS_PATH X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=61038e36b65696c2f29107d5dbc031c66526ea0c;p=buildroot.git uboot: qstrip BR2_TARGET_UBOOT_CUSTOM_DTS_PATH We need to avoid failing of copy of custom dts using cp -f <> command. So, just qstrip the variable as is done for other configuration options. Signed-off-by: Michael Trimarchi Tested-by: Peter Seiderer Signed-off-by: Thomas Petazzoni --- diff --git a/boot/uboot/uboot.mk b/boot/uboot/uboot.mk index 1d464d9675..91f8ec4e72 100644 --- a/boot/uboot/uboot.mk +++ b/boot/uboot/uboot.mk @@ -194,9 +194,11 @@ define UBOOT_HELP_CMDS endef endif # BR2_TARGET_UBOOT_BUILD_SYSTEM_LEGACY +UBOOT_CUSTOM_DTS_PATH = $(call qstrip,$(BR2_TARGET_UBOOT_CUSTOM_DTS_PATH)) + define UBOOT_BUILD_CMDS - $(if $(BR2_TARGET_UBOOT_CUSTOM_DTS_PATH), - cp -f $(call qstrip,$(BR2_TARGET_UBOOT_CUSTOM_DTS_PATH)) $(@D)/arch/$(UBOOT_ARCH)/dts/ + $(if $(UBOOT_CUSTOM_DTS_PATH), + cp -f $(UBOOT_CUSTOM_DTS_PATH) $(@D)/arch/$(UBOOT_ARCH)/dts/ ) $(TARGET_CONFIGURE_OPTS) \ $(MAKE) -C $(@D) $(UBOOT_MAKE_OPTS) \