Browse Source

arm-trusted-firmware-tools: fix passing of CFLAGS

HOST_CFLAGS were ignored as they were passed on incorrectly which lead
to build failure if OpenSSL wasn't present on the build host.
Fix that by properly passing HOST_CFLAGS when building each tool.

Signed-off-by: Daniel Golle <[email protected]>
Daniel Golle 4 years ago
parent
commit
ffa0ae17f7
1 changed files with 2 additions and 3 deletions
  1. 2 3
      package/boot/arm-trusted-firmware-tools/Makefile

+ 2 - 3
package/boot/arm-trusted-firmware-tools/Makefile

@@ -29,15 +29,14 @@ define Package/arm-trusted-firmware-tools
   BUILDONLY:=1
   BUILDONLY:=1
 endef
 endef
 
 
-HOST_CFLAGS += -Wall -Werror -pedantic -std=c99
 define Host/Compile
 define Host/Compile
 	$(MAKE) -C \
 	$(MAKE) -C \
 		$(HOST_BUILD_DIR)/tools/fiptool \
 		$(HOST_BUILD_DIR)/tools/fiptool \
-		CFLAGS="$(HOST_CFLAGS)" \
+		CPPFLAGS="$(HOST_CFLAGS)" \
 		LDFLAGS="$(HOST_LDFLAGS)"
 		LDFLAGS="$(HOST_LDFLAGS)"
 	$(MAKE) -C \
 	$(MAKE) -C \
 		$(HOST_BUILD_DIR)/tools/sptool \
 		$(HOST_BUILD_DIR)/tools/sptool \
-		CFLAGS="$(HOST_CFLAGS)" \
+		CPPFLAGS="$(HOST_CFLAGS)" \
 		LDFLAGS="$(HOST_LDFLAGS)"
 		LDFLAGS="$(HOST_LDFLAGS)"
 endef
 endef