qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] configure: Silence warnings about missing roms/seabios directory
@ 2022-01-07 12:15 Thomas Huth
  2022-01-07 17:25 ` Paolo Bonzini
  0 siblings, 1 reply; 2+ messages in thread
From: Thomas Huth @ 2022-01-07 12:15 UTC (permalink / raw)
  To: qemu-devel, Paolo Bonzini; +Cc: Daniel P. Berrangé

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>
---
 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
-- 
2.27.0



^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] configure: Silence warnings about missing roms/seabios directory
  2022-01-07 12:15 [PATCH] configure: Silence warnings about missing roms/seabios directory Thomas Huth
@ 2022-01-07 17:25 ` Paolo Bonzini
  0 siblings, 0 replies; 2+ messages in thread
From: Paolo Bonzini @ 2022-01-07 17:25 UTC (permalink / raw)
  To: Thomas Huth, qemu-devel; +Cc: Daniel P. Berrangé

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



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-01-07 17:43 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-01-07 12:15 [PATCH] configure: Silence warnings about missing roms/seabios directory Thomas Huth
2022-01-07 17:25 ` Paolo Bonzini

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).