arm-trusted-firmware-mvebu: Use host flags for cryptest compilation
[openwrt/staging/noltari.git] / package / boot / arm-trusted-firmware-mvebu / patches / 002-cryptopp_ldflags.patch
1 Forward the host compiler flags to the compilation of the cryptopp library.
2
3 --- a/plat/marvell/armada/a3k/common/a3700_common.mk
4 +++ b/plat/marvell/armada/a3k/common/a3700_common.mk
5 @@ -149,7 +149,7 @@ $(TBB): FORCE
6 $(if $(wildcard $(CRYPTOPP_LIBDIR)/*),,$(error "Either 'CRYPTOPP_PATH' or 'CRYPTOPP_LIB' was set to '$(CRYPTOPP_LIBDIR)', but '$(CRYPTOPP_LIBDIR)' does not exist"))
7 $(if $(wildcard $(CRYPTOPP_INCDIR)/*),,$(error "Either 'CRYPTOPP_PATH' or 'CRYPTOPP_INCDIR' was set to '$(CRYPTOPP_INCDIR)', but '$(CRYPTOPP_INCDIR)' does not exist"))
8 ifdef CRYPTOPP_PATH
9 - $(Q)$(MAKE) --no-print-directory -C $(CRYPTOPP_PATH) -f GNUmakefile
10 + $(Q)$(MAKE) --no-print-directory -C $(CRYPTOPP_PATH) -f GNUmakefile LDFLAGS="$(HOST_LDFLAGS)" CPPFLAGS="$(HOST_CPPFLAGS)"
11 endif
12 $(Q)$(MAKE) --no-print-directory -C $(WTP)/wtptp/src/TBB_Linux -f TBB_linux.mak LIBDIR=$(CRYPTOPP_LIBDIR) INCDIR=$(CRYPTOPP_INCDIR)
13