uboot: qstrip BR2_TARGET_UBOOT_CUSTOM_DTS_PATH
authorMichael Trimarchi <michael@amarulasolutions.com>
Fri, 7 Apr 2017 10:03:22 +0000 (12:03 +0200)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Sat, 8 Apr 2017 13:29:01 +0000 (15:29 +0200)
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 <michael@amarulasolutions.com>
Tested-by: Peter Seiderer <ps.report@gmx.net>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
boot/uboot/uboot.mk

index 1d464d9675c477285fc57e507246d39bdff6fc82..91f8ec4e727ccbb488305b52c6e6536921fb6d54 100644 (file)
@@ -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)             \