All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Alex Bennée" <alex.bennee@linaro.org>
To: Paolo Bonzini <pbonzini@redhat.com>
Cc: qemu-devel@nongnu.org, fam@euphon.net, berrange@redhat.com,
	f4bug@amsat.org, aurelien@aurel32.net, stefanha@redhat.com,
	crosa@redhat.com
Subject: Re: [PATCH v2 4/7] configure: don't enable cross compilers unless in target_list
Date: Fri, 14 Oct 2022 09:13:19 +0100	[thread overview]
Message-ID: <87y1tioma7.fsf@linaro.org> (raw)
In-Reply-To: <bcdc0d01-e6a9-27af-2c54-7a789a43f7be@redhat.com>


Paolo Bonzini <pbonzini@redhat.com> writes:

> On 10/13/22 21:48, Alex Bennée wrote:
>>> +  case " $target_list " in
>>> +    " $1 ") ;;
>>> +    *) return 1 ;;
>>> +  esac
>>> +
>> this of course prevents building of roms by actually disabling all
>> target compilers...
>
> Yeah, two asterisks are missing.  I'll send out a proper patch.

I tried this:

@@ -1866,6 +1866,15 @@ probe_target_compiler() {
   container_cross_ranlib=
   container_cross_strip=
 
+  # We shall skip configuring the target compiler if the user didn't
+  # bother enabling an appropriate guest. This avoids building
+  # extraneous firmware images and tests.
+  if test "${target_list#*$1}" != "$1"; then
+      break;
+  else
+      return 1
+  fi
+
   target_arch=${1%%-*}
   case $target_arch in
     aarch64) container_hosts="x86_64 aarch64" ;;

>
> Paolo


-- 
Alex Bennée


  reply	other threads:[~2022-10-14  8:28 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-10-13 15:46 [PATCH v2 0/7] testing/next (configure, RUNC, win32|64) Alex Bennée
2022-10-13 15:46 ` [PATCH v2 1/7] tests/docker: update fedora-win[32|64]-cross with lcitool Alex Bennée
2022-10-13 15:47 ` [PATCH v2 2/7] tests/docker: update test-mingw to run single build Alex Bennée
2022-10-18 10:09   ` Philippe Mathieu-Daudé
2022-10-13 15:47 ` [PATCH v2 3/7] tests/docker: Add flex/bison to `debian-all-test` Alex Bennée
2022-10-13 15:47 ` [PATCH v2 4/7] configure: don't enable cross compilers unless in target_list Alex Bennée
2022-10-13 19:48   ` Alex Bennée
2022-10-13 20:26     ` Paolo Bonzini
2022-10-14  8:13       ` Alex Bennée [this message]
2022-10-14  8:52         ` Paolo Bonzini
2022-10-13 15:47 ` [PATCH v2 5/7] configure: fix the --enable-static --disable-pie case Alex Bennée
2022-10-13 15:47 ` [PATCH v2 6/7] configure: expose the direct container command Alex Bennée
2022-10-13 15:47 ` [PATCH v2 7/7] tests/docker: use direct RUNC call in debian-toolchain Alex Bennée

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=87y1tioma7.fsf@linaro.org \
    --to=alex.bennee@linaro.org \
    --cc=aurelien@aurel32.net \
    --cc=berrange@redhat.com \
    --cc=crosa@redhat.com \
    --cc=f4bug@amsat.org \
    --cc=fam@euphon.net \
    --cc=pbonzini@redhat.com \
    --cc=qemu-devel@nongnu.org \
    --cc=stefanha@redhat.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.