ta/Makefiles: Set LDFLAGS to null before building ta make scripts
Yocto can set LDFLAGS to values that are incompatible with building a TA.
This patch ensures the LDFLAGS from the environment is unset prior to
calling make for a TAs Makefile. LDFLAGS settings for the host binaries are
unaffected meaning that yocto can set LDFLAGS to whatever is standard for
user-space w/r to the host binaries but, the TA devkit LDFLAG settings will
be used for TAs.
Signed-off-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org>
Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org>
Acked-by: Jerome Forissier <jerome.forissier@linaro.org>
diff --git a/aes/Makefile b/aes/Makefile
index 4f97c4b..dfa4f8b 100644
--- a/aes/Makefile
+++ b/aes/Makefile
@@ -7,7 +7,7 @@
.PHONY: all
all:
$(MAKE) -C host CROSS_COMPILE="$(HOST_CROSS_COMPILE)" --no-builtin-variables
- $(MAKE) -C ta CROSS_COMPILE="$(TA_CROSS_COMPILE)"
+ $(MAKE) -C ta CROSS_COMPILE="$(TA_CROSS_COMPILE)" LDFLAGS=""
.PHONY: clean
clean:
diff --git a/hello_world/Makefile b/hello_world/Makefile
index e04d0c6..b188683 100644
--- a/hello_world/Makefile
+++ b/hello_world/Makefile
@@ -7,7 +7,7 @@
.PHONY: all
all:
$(MAKE) -C host CROSS_COMPILE="$(HOST_CROSS_COMPILE)" --no-builtin-variables
- $(MAKE) -C ta CROSS_COMPILE="$(TA_CROSS_COMPILE)"
+ $(MAKE) -C ta CROSS_COMPILE="$(TA_CROSS_COMPILE)" LDFLAGS=""
.PHONY: clean
clean:
diff --git a/hotp/Makefile b/hotp/Makefile
index 4f97c4b..dfa4f8b 100644
--- a/hotp/Makefile
+++ b/hotp/Makefile
@@ -7,7 +7,7 @@
.PHONY: all
all:
$(MAKE) -C host CROSS_COMPILE="$(HOST_CROSS_COMPILE)" --no-builtin-variables
- $(MAKE) -C ta CROSS_COMPILE="$(TA_CROSS_COMPILE)"
+ $(MAKE) -C ta CROSS_COMPILE="$(TA_CROSS_COMPILE)" LDFLAGS=""
.PHONY: clean
clean:
diff --git a/random/Makefile b/random/Makefile
index 4f97c4b..dfa4f8b 100644
--- a/random/Makefile
+++ b/random/Makefile
@@ -7,7 +7,7 @@
.PHONY: all
all:
$(MAKE) -C host CROSS_COMPILE="$(HOST_CROSS_COMPILE)" --no-builtin-variables
- $(MAKE) -C ta CROSS_COMPILE="$(TA_CROSS_COMPILE)"
+ $(MAKE) -C ta CROSS_COMPILE="$(TA_CROSS_COMPILE)" LDFLAGS=""
.PHONY: clean
clean: