qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Paolo Bonzini <pbonzini@redhat.com>
To: "Alex Bennée" <alex.bennee@linaro.org>
Cc: gustavo.romero@protonmail.com, david@gibson.dropbear.id.au,
	qemu-ppc@nongnu.org, qemu-devel@nongnu.org,
	Gustavo Romero <gromero@linux.ibm.com>
Subject: Re: [PATCH] configure: Fail when specified cross compiler cannot be found
Date: Sat, 19 Dec 2020 13:11:20 +0100	[thread overview]
Message-ID: <59535271-62e3-ba10-ae42-0e8ecd84e71f@redhat.com> (raw)
In-Reply-To: <87mtybqqa8.fsf@linaro.org>

On 18/12/20 12:57, Alex Bennée wrote:
> 
> Paolo Bonzini <pbonzini@redhat.com> writes:
> 
>> On 17/12/20 18:56, Alex Bennée wrote:
>>> To be honest at the moment the information is a little hidden at the top
>>> of the output. It would be nice if we could teach meson to echo it in
>>> it's nice coloured output.
>>>
>>> Paolo,
>>>
>>> Any ideas for the cleanest way to do that?
>>
>> The code in configure is pretty small:
>>
>> (for i in $cross_cc_vars; do
>>     export $i
>> done
>> export target_list source_path use_containers
>> $source_path/tests/tcg/configure.sh)
>>
>> configure would place the cross-cc variables (which are really just
>> command line options) in a file, something like config-cross-cc.mak, and
>> the Meson translation of the above would be
>>
>> env = environment()
>> foreach k, v : keyval.load(meson.current_build_dir() /
>> 'config-cross-cc.mak')
>>     env.set(k, v)
>> endforeach
>> env.set('target_list', ','.join(target_dirs))
>> env.set('source_path', meson.source_root())
>> env.set('use_containers',
>>           'CROSS_CC_CONTAINERS' in config_host ? 'yes' : 'no')
>> message(run_command(files('tests/tcg/configure.sh'), env: env).stdout())
>>
>> For a bit more polish, one could make tests/tcg/configure.sh print the
>> result in keyval format, parse it back from meson as a dictionary with
>> keyval.load(), and pass the result to summary().
> 
> Don't we already have this in the form of tests/tcg/config-$TARGET.mak?
> Shouldn't we just injest that into meson after configure.sh has run?

Yes, that's also a possibility I guess!  We can also do both (use 
run_command, and then reread tests/tcg/config-$TARGET.mak).  Long term, 
I'd like to run tests/tcg/configure.sh separately for each target so 
that we can reuse it for pc-bios.

Paolo



      reply	other threads:[~2020-12-19 12:12 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-12-16  1:36 [PATCH] configure: Fail when specified cross compiler cannot be found Gustavo Romero
2020-12-16 10:51 ` Alex Bennée
2020-12-17 16:55   ` Gustavo Romero
2020-12-17 17:56     ` Alex Bennée
2020-12-18 10:05       ` Paolo Bonzini
2020-12-18 11:57         ` Alex Bennée
2020-12-19 12:11           ` Paolo Bonzini [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=59535271-62e3-ba10-ae42-0e8ecd84e71f@redhat.com \
    --to=pbonzini@redhat.com \
    --cc=alex.bennee@linaro.org \
    --cc=david@gibson.dropbear.id.au \
    --cc=gromero@linux.ibm.com \
    --cc=gustavo.romero@protonmail.com \
    --cc=qemu-devel@nongnu.org \
    --cc=qemu-ppc@nongnu.org \
    /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;
as well as URLs for NNTP newsgroup(s).