From: Alper Nebi Yasak <alpernebiyasak@gmail.com>
To: u-boot@lists.denx.de
Subject: [PATCH 1/3] binman: Support cross-compiling test files to x86
Date: Sun, 6 Sep 2020 01:51:06 +0300 [thread overview]
Message-ID: <c78ea5a4-6ec7-a7c6-ec56-3acdf4133459@gmail.com> (raw)
In-Reply-To: <CAPnjgZ2BNJpi+gmbtr67RyhaBfKdbmzZAUVZNCo7UZUfdN+EcA@mail.gmail.com>
On 05/09/2020 19:36, Simon Glass wrote:
> For me this fails on x86_64, complaining for example:
>
> Exception: Error 2 running 'make -C /tmp/binmant.d17vfu3j/elftest -f
> /scratch/sglass/cosarm/src/third_party/u-boot/files/tools/binman/test/Makefile
> SRC=/scratch/sglass/cosarm/src/third_party/u-boot/files/tools/binman/test/':
> /scratch/sglass/cosarm/src/third_party/u-boot/files/tools/binman/test/Makefile:14:
> *** Binman tests need to compile to x86, but the CPU arch of your
> machine is x86_64. Set CROSS_COMPILE to a suitable cross compiler.
> Stop.
>
> Can you make it work on both i386 and x86_64 without complaining? It
> looks like that is the intent.
I messed up the variable names: defined HOST_ARCH, but used HOSTARCH in
the check. Fixing that makes it work like it should. (I'll go with
HOSTARCH since that's where I took the "uname -m | sed" call from).
> Also I'm not sure we need to define vars for all the tools, so you
> could perhaps drop those that are not needed.
Looks like we don't need anything except CC and OBJCOPY, I'll drop the
rest.
next prev parent reply other threads:[~2020-09-05 22:51 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-09-05 14:43 [PATCH 0/3] binman: Make tests work on non-x86 architectures via cross-compilation Alper Nebi Yasak
2020-09-05 14:43 ` [PATCH 1/3] binman: Support cross-compiling test files to x86 Alper Nebi Yasak
2020-09-05 16:36 ` Simon Glass
2020-09-05 22:51 ` Alper Nebi Yasak [this message]
2020-09-06 0:17 ` Simon Glass
2020-09-05 14:43 ` [PATCH 2/3] binman: Use target-specific tools when cross-compiling Alper Nebi Yasak
2020-09-05 16:37 ` Simon Glass
2020-09-05 23:04 ` Alper Nebi Yasak
2020-09-06 0:17 ` Simon Glass
2020-09-05 14:43 ` [PATCH 3/3] binman: Allow resolving host-specific tools from env vars Alper Nebi Yasak
2020-09-05 16:37 ` Simon Glass
2020-09-05 23:16 ` Alper Nebi Yasak
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=c78ea5a4-6ec7-a7c6-ec56-3acdf4133459@gmail.com \
--to=alpernebiyasak@gmail.com \
--cc=u-boot@lists.denx.de \
/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