[openwrt/openwrt] u-boot, at91bootstrap: fix incorrect HOSTCPPFLAGS variable

LEDE Commits lede-commits at lists.infradead.org
Sat Feb 10 12:46:43 PST 2018


hauke pushed a commit to openwrt/openwrt.git, branch master:
https://git.lede-project.org/df9781a4205c5191fe21e795f732cfdd37d982f9

commit df9781a4205c5191fe21e795f732cfdd37d982f9
Author: Alexandru Ardelean <ardeleanalex at gmail.com>
AuthorDate: Mon Jan 22 17:30:06 2018 +0200

    u-boot,at91bootstrap: fix incorrect HOSTCPPFLAGS variable
    
    This would should up as `$$(HOSTCPPFLAGS)` in the host CFLAGS.
    ```
    make --jobserver-fds=3,4 -j -C <openwrt>/build_dir/target-arm_cortex-a8+vfpv3_musl_eabi/u-boot-A10-OLinuXino-Lime/u-boot-2017.07 CROSS_COMPILE=arm-openwrt-linux-muslgnueabi- DTC="<openwrt>/build_dir/target-arm_cortex-a8+vfpv3_musl_eabi/linux-sunxi_cortexa8/linux-4.9.76/scripts/dtc/dtc" HOSTCC="gcc" HOSTCFLAGS='-O2 -I<openwrt>/staging_dir/host/include -I<openwrt>/staging_dir/host/usr/include -I<openwrt>/staging_dir/hostpkg/include -I<openwrt>/staging_dir/target-arm_cortex-a8+vfpv3_musl [...]
    ```
    
    And then it would complain with:
    ```
     /bin/sh: 1: HOSTCPPFLAGS: not found
    ```
    
    Also, HOSTCPPFLAGS does not exist.
    The correct var is HOST_CPPFLAGS.
    
    Signed-off-by: Alexandru Ardelean <ardeleanalex at gmail.com>
---
 include/u-boot.mk                           | 2 +-
 package/boot/at91bootstrap/at91bootstrap.mk | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/include/u-boot.mk b/include/u-boot.mk
index 4b3ff69..5bcf031 100644
--- a/include/u-boot.mk
+++ b/include/u-boot.mk
@@ -42,7 +42,7 @@ TARGET_DEP = TARGET_$(BUILD_TARGET)$(if $(BUILD_SUBTARGET),_$(BUILD_SUBTARGET))
 
 UBOOT_MAKE_FLAGS = \
 	HOSTCC="$(HOSTCC)" \
-	HOSTCFLAGS='$(HOST_CFLAGS) $$$$(HOSTCPPFLAGS)' \
+	HOSTCFLAGS="$(HOST_CFLAGS) $(HOST_CPPFLAGS)" \
 	HOSTLDFLAGS=""
 
 define Build/U-Boot/Target
diff --git a/package/boot/at91bootstrap/at91bootstrap.mk b/package/boot/at91bootstrap/at91bootstrap.mk
index dda5fa4..92353ff 100644
--- a/package/boot/at91bootstrap/at91bootstrap.mk
+++ b/package/boot/at91bootstrap/at91bootstrap.mk
@@ -26,7 +26,7 @@ TARGET_DEP = TARGET_$(BUILD_TARGET)$(if $(BUILD_SUBTARGET),_$(BUILD_SUBTARGET))
 
 AT91BOOTSTRAP_MAKE_FLAGS = \
 	HOSTCC="$(HOSTCC)" \
-	HOSTCFLAGS='$(HOST_CFLAGS) $$$$(HOSTCPPFLAGS)' \
+	HOSTCFLAGS="$(HOST_CFLAGS) $(HOST_CPPFLAGS)" \
 	HOSTLDFLAGS=""
 
 define Build/AT91Bootstrap/Target



More information about the lede-commits mailing list