From: Arnout Vandecappelle <arnout@mind.be>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH] swupdate: pass full TARGET_CONFIGURE_OPTS
Date: Tue, 18 Dec 2018 10:08:17 +0100 [thread overview]
Message-ID: <b6eed3cd-2693-bf7d-9bb6-56aeb367083c@mind.be> (raw)
In-Reply-To: <87y38n19wu.fsf@dell.be.48ers.dk>
On 18/12/2018 10:06, Peter Korsgaard wrote:
>>>>>> "Peter" == Peter Korsgaard <peter@korsgaard.com> writes:
>
>>>>>> "Arnout" == Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be> writes:
> >> 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.
>
> > Hmm, wait - This also passes LD="$(TARGET_LD)", whereas swupdate used CC
> > to link. Is that really working?
Crap. I did think of that but not hard enough. Mental note: next time test
mipsel...
Regards,
Arnout
>
> No it doesn't:
>
> LD core/built-in.o
> /home/peko/source/buildroot/output-sw/host/bin/mips-img-linux-gnu-ld: core/swupdate.o: compiled for a little endian system and target is big endian
>
> scripts/Makefile.build:224: recipe for target 'core/built-in.o' failed
> make[3]: *** [core/built-in.o] Error 1
> Makefile:480: recipe for target 'core' failed
> make[2]: *** [core] Error 2
>
> With this defconfig:
> BR2_mipsel=y
> BR2_mips_32r6=y
> BR2_TOOLCHAIN_EXTERNAL=y
> BR2_PACKAGE_SWUPDATE=y
>
> I will change it to explicitly pass CC="$(TARGET_CC)" LD="$(TARGET_CC)"
> instead.
>
prev parent reply other threads:[~2018-12-18 9:08 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-12-17 23:43 [Buildroot] [PATCH] swupdate: pass full TARGET_CONFIGURE_OPTS Arnout Vandecappelle
2018-12-18 8:22 ` Peter Korsgaard
2018-12-18 8:30 ` Peter Korsgaard
2018-12-18 9:06 ` Peter Korsgaard
2018-12-18 9:08 ` Arnout Vandecappelle [this message]
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=b6eed3cd-2693-bf7d-9bb6-56aeb367083c@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