From: Peter Korsgaard <peter@korsgaard.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH] support/script/check-bin-arch: ignore /usr/share
Date: Wed, 22 Mar 2017 22:43:48 +0100 [thread overview]
Message-ID: <87efxpj8bv.fsf@dell.be.48ers.dk> (raw)
In-Reply-To: <20170322140639.5c8c5149@free-electrons.com> (Thomas Petazzoni's message of "Wed, 22 Mar 2017 14:06:39 +0100")
>>>>> "Thomas" == Thomas Petazzoni <thomas.petazzoni@free-electrons.com> writes:
> Hello,
> On Wed, 22 Mar 2017 09:24:56 +0100, Peter Korsgaard wrote:
>> http://autobuild.buildroot.net/results/4e2/4e27559827f3ed75a12f13bd595998bf661b2aaf/build-end.log
>> http://autobuild.buildroot.net/results/99e/99e4ed21116c721faf9f1d0349f312b357d333ee/build-end.log
>>
>> I wonder if we shouldn't turn the tests around, E.G. instead of
>> searching for elf files with a machine different from target, search for
>> a files with machine == host.
> Indeed, that's an option. We would need to have only the readelf
> machine string for the most common build architectures (x86, x86-64),
> and if Buildroot is used on a different architecture, we simply don't
> do the check.
Exactly, or alternatively we run readelf on a host utility (E.G. HOSTCC)
to detect the machine string.
>> This can naturally still fail if somebody adds a package (E.G. in
>> br2-external) that installs a i386/x86-64 binary. Presumably this could
>> happen if you want to include a PC application to inside the firmware
>> (E.G. downloadable through the web interface and used for controlling
>> the firmware or similar), but it doesn't get caught up in all these
>> build issues about various other firmware files or slightly different
>> machine strings (sparc / sparcv9, arcompat / arcv2)..
> I must say I still like the fact that we detect sparc vs. sparcv9,
> arcompat vs arcv2. I.e why do we have some binaries that have a
> different machine number than most of the binaries being produced?
Sorry, I don't know enough details about Sparc and Arc. It indeed seems
strange.
> But I agree it's of limited usefulness, so if you want me to change the
> mechanism by inverting the logic, I can cook some patches.
Well, just like for all other BR features I want to ensure that the
complexity/gain relation is OK. If we need to add more and more
exceptions and perhaps more complicated/fuzzy matching to handle these
machine string variantions then I think it would make sense to invert
the test to simplify - But lets see how it goes.
--
Bye, Peter Korsgaard
next prev parent reply other threads:[~2017-03-22 21:43 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-03-21 20:35 [Buildroot] [PATCH] support/script/check-bin-arch: ignore /usr/share Thomas Petazzoni
2017-03-21 21:03 ` Yann E. MORIN
2017-03-21 21:15 ` Peter Korsgaard
2017-03-22 8:24 ` Peter Korsgaard
2017-03-22 13:06 ` Thomas Petazzoni
2017-03-22 21:43 ` Peter Korsgaard [this message]
2017-03-22 22:04 ` Thomas Petazzoni
2017-03-22 23:03 ` Arnout Vandecappelle
2017-03-23 8:16 ` Thomas Petazzoni
2017-03-28 11:50 ` Peter Korsgaard
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=87efxpj8bv.fsf@dell.be.48ers.dk \
--to=peter@korsgaard.com \
--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