qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Paolo Bonzini <pbonzini@redhat.com>
To: Thomas Huth <thuth@redhat.com>, qemu-devel@nongnu.org
Cc: "Daniel P. Berrangé" <berrange@redhat.com>
Subject: Re: [PATCH] configure: Silence warnings about missing roms/seabios directory
Date: Fri, 7 Jan 2022 18:25:30 +0100	[thread overview]
Message-ID: <a6dcc0b9-f004-c749-d189-606a6e56b418@redhat.com> (raw)
In-Reply-To: <20220107121540.80895-1-thuth@redhat.com>

On 1/7/22 13:15, Thomas Huth wrote:
> The configure script tries to always create a config.mak file
> in the roms/seabios/ subdirectory. However, since commit
> 5dce7b8d8ce6 ("configure: remove DIRS"), this subdirectory is not
> created anymore if the git submodule hasn't been checked out.
> Thus let's properly check for the existance of the folder first
> now to get rid of the warnings.
> 
> Fixes: 5dce7b8d8ce6 ("configure: remove DIRS")
> Signed-off-by: Thomas Huth <thuth@redhat.com>

I beat you to it shortly:

[PATCH] configure: do not create roms/seabios/config.mak if SeaBIOS not 
present

(I didn't see your reply to the pull request).

"test -d" is not really enough, what you need is test -f 
$source_path/roms/seabios/Makefile.

Paolo

> ---
>   configure | 6 +++---
>   1 file changed, 3 insertions(+), 3 deletions(-)
> 
> diff --git a/configure b/configure
> index c798e48faf..51b13b273c 100755
> --- a/configure
> +++ b/configure
> @@ -3773,8 +3773,8 @@ export target_list source_path use_containers cpu
>   $source_path/tests/tcg/configure.sh)
>   
>   # temporary config to build submodules
> -for rom in seabios; do
> -    config_mak=roms/$rom/config.mak
> +if test -d roms/seabios ; then
> +    config_mak=roms/seabios/config.mak
>       echo "# Automatically generated by configure - do not modify" > $config_mak
>       echo "SRC_PATH=$source_path/roms/$rom" >> $config_mak
>       echo "AS=$as" >> $config_mak
> @@ -3786,7 +3786,7 @@ for rom in seabios; do
>       echo "IASL=$iasl" >> $config_mak
>       echo "LD=$ld" >> $config_mak
>       echo "RANLIB=$ranlib" >> $config_mak
> -done
> +fi
>   
>   config_mak=pc-bios/optionrom/config.mak
>   echo "# Automatically generated by configure - do not modify" > $config_mak



      reply	other threads:[~2022-01-07 17:43 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-01-07 12:15 [PATCH] configure: Silence warnings about missing roms/seabios directory Thomas Huth
2022-01-07 17:25 ` 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=a6dcc0b9-f004-c749-d189-606a6e56b418@redhat.com \
    --to=pbonzini@redhat.com \
    --cc=berrange@redhat.com \
    --cc=qemu-devel@nongnu.org \
    --cc=thuth@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 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).