aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Peter Korsgaard <peter@korsgaard.com>2018-12-18 10:11:06 +0100
committerGravatar Peter Korsgaard <peter@korsgaard.com>2018-12-18 15:27:28 +0100
commit73a9f0f8d0f0ff219f7ef54e12526685901ffb58 (patch)
treeca02265352aa3a69cf6345de32239e972480cbe4
parentd1c9935f1a07f0e69f5d2432b5324ec174667a18 (diff)
downloadbuildroot-73a9f0f8d0f0ff219f7ef54e12526685901ffb58.tar.gz
buildroot-73a9f0f8d0f0ff219f7ef54e12526685901ffb58.tar.bz2
swupdate: ensure TARGET_CC is used for compiling/linking
Fixes: http://autobuild.buildroot.net/results/e302d0edb59ff7617b5f2d21f06eb65ae04981fe http://autobuild.buildroot.net/results/dbb69acadc20b4bb559311348eca276c1e6343f7 Swupdate uses $CROSS-cc instead of $CROSS-gcc, which is not available in all external toolchains, and use CC for linking. Ensure TARGET_CC is used for both. Signed-off-by: Peter Korsgaard <peter@korsgaard.com> Cc: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be> Signed-off-by: Peter Korsgaard <peter@korsgaard.com> (cherry picked from commit 291ec1d2be2409fddc897a5f6ab28e6b8b56ce38) Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
-rw-r--r--package/swupdate/swupdate.mk5
1 files changed, 5 insertions, 0 deletions
diff --git a/package/swupdate/swupdate.mk b/package/swupdate/swupdate.mk
index 6285437aaa..08d6ba9372 100644
--- a/package/swupdate/swupdate.mk
+++ b/package/swupdate/swupdate.mk
@@ -9,6 +9,11 @@ SWUPDATE_SITE = $(call github,sbabic,swupdate,$(SWUPDATE_VERSION))
SWUPDATE_LICENSE = GPL-2.0+, LGPL-2.1+, MIT
SWUPDATE_LICENSE_FILES = COPYING
+# swupdate uses $CROSS-cc instead of $CROSS-gcc, which is not
+# available in all external toolchains, and use CC for linking. Ensure
+# TARGET_CC is used for both.
+SWUPDATE_MAKE_ENV = CC="$(TARGET_CC)" LD="$(TARGET_CC)"
+
# swupdate bundles its own version of mongoose (version 6.11)
ifeq ($(BR2_PACKAGE_JSON_C),y)