Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH] swupdate: pass full TARGET_CONFIGURE_OPTS
Date: Tue, 18 Dec 2018 00:43:01 +0100	[thread overview]
Message-ID: <20181217234301.7111-1-arnout@mind.be> (raw)

Although we set CONFIG_CROSS_COMPILE to TARGET_CROSS in swupdate's
.config file, swupdate's build system just appends 'cc' to it, not
'gcc'. Some external toolchains don't provide a cc -> gcc symlink,
leading to errors like:

/bin/sh: .../host/bin/arm-none-linux-gnueabi-cc: No such file or directory

We can just pass TARGET_CONFIGURE_OPTS which explicitly sets CC=, like
we do for all other packages.

Although this makes setting CONFIG_CROSS_COMPILE redundant, it's nice to
keep it as well for consistency.

Fixes:
http://autobuild.buildroot.net/results/e302d0edb59ff7617b5f2d21f06eb65ae04981fe
http://autobuild.buildroot.net/results/dbb69acadc20b4bb559311348eca276c1e6343f7

Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Cc: Peter Korsgaard <peter@korsgaard.com>
---
 package/swupdate/swupdate.mk | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/package/swupdate/swupdate.mk b/package/swupdate/swupdate.mk
index 6285437aaa..27a53e3837 100644
--- a/package/swupdate/swupdate.mk
+++ b/package/swupdate/swupdate.mk
@@ -118,7 +118,7 @@ define SWUPDATE_KCONFIG_FIXUP_CMDS
 endef
 
 define SWUPDATE_BUILD_CMDS
-	$(TARGET_MAKE_ENV) $(SWUPDATE_MAKE_ENV) $(MAKE) -C $(@D)
+	$(TARGET_CONFIGURE_OPTS) $(SWUPDATE_MAKE_ENV) $(MAKE) -C $(@D)
 endef
 
 define SWUPDATE_INSTALL_TARGET_CMDS
-- 
2.19.2

             reply	other threads:[~2018-12-17 23:43 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-12-17 23:43 Arnout Vandecappelle [this message]
2018-12-18  8:22 ` [Buildroot] [PATCH] swupdate: pass full TARGET_CONFIGURE_OPTS Peter Korsgaard
2018-12-18  8:30 ` Peter Korsgaard
2018-12-18  9:06   ` Peter Korsgaard
2018-12-18  9:08     ` Arnout Vandecappelle

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20181217234301.7111-1-arnout@mind.be \
    --to=arnout@mind.be \
    --cc=buildroot@busybox.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox