Skip to contentSkip to conversation

configure: Only clone softfloat-3 repositories if TCG is enabled

PATCH Applied Philippe Mathieu-Daudé 3 participants 4 messages May 12, 2021

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 configure: Only clone softfloat-3 repositories if TCG is enabled

---
 configure | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)
configure +5 -2
index 5877a6b2bfe..e0e02623e3e 100755
@@ -257,8 +257,6 @@ if test -e "$source_path/.git"
 then
     git_submodules_action="update"
     git_submodules="ui/keycodemapdb"
-    git_submodules="$git_submodules tests/fp/berkeley-testfloat-3"
-    git_submodules="$git_submodules tests/fp/berkeley-softfloat-3"
 else
     git_submodules_action="ignore"
     git_submodules=""
@@ -2277,6 +2275,11 @@ if test "$solaris" = "yes" ; then
   fi
 fi
 
+if test "$tcg" = "enabled"; then
+    git_submodules="$git_submodules tests/fp/berkeley-testfloat-3"
+    git_submodules="$git_submodules tests/fp/berkeley-softfloat-3"
+fi
+
 if test -z "${target_list+xxx}" ; then
     default_targets=yes
     for target in $default_target_list; do
Signature · 1 line
2.26.3
#1 lore raw
Quoted 19 lines · Philippe Mathieu-Daudé
---
  configure | 7 +++++--
  1 file changed, 5 insertions(+), 2 deletions(-)
configure +0 -2
index 5877a6b2bfe..e0e02623e3e 100755
@@ -257,8 +257,6 @@ if test -e "$source_path/.git"
  then
      git_submodules_action="update"
      git_submodules="ui/keycodemapdb"
-    git_submodules="$git_submodules tests/fp/berkeley-testfloat-3"
-    git_submodules="$git_submodules tests/fp/berkeley-softfloat-3"
  else
      git_submodules_action="ignore"
      git_submodules=""

configure if test "$solaris" = "yes" ; then · line 2278

Quoted 4 lines
configure +1 -0
@@ -2277,6 +2275,11 @@ if test "$solaris" = "yes" ; then
    fi
  fi
 
+if test "$tcg" = "enabled"; then

Shouldn't there be a check here, too, whether git submodules are enabled at all or not?

Thomas

Quoted 8 lines
configure +4 -0
+    git_submodules="$git_submodules tests/fp/berkeley-testfloat-3"
+    git_submodules="$git_submodules tests/fp/berkeley-softfloat-3"
+fi
+
  if test -z "${target_list+xxx}" ; then
      default_targets=yes
      for target in $default_target_list; do
#2 lore raw
Quoted 18 lines · Thomas Huth
Quoted 17 lines · Philippe Mathieu-Daudé

---
  configure | 7 +++++--

  1 file changed, 5 insertions(+), 2 deletions(-)
configure +0 -0
index 5877a6b2bfe..e0e02623e3e 100755
@@ -257,8 +257,6 @@ if test -e "$source_path/.git"

  then
      git_submodules_action="update" git_submodules="ui/keycodemapdb"
-    git_submodules="$git_submodules tests/fp/berkeley-testfloat-3" -    git_submodules="$git_submodules tests/fp/berkeley-softfloat-3" else
      git_submodules_action="ignore"

Quoted 8 lines
Quoted 5 lines

      git_submodules=""

configure +0 -0
@@ -2277,6 +2275,11 @@ if test "$solaris" = "yes" ; then

    fi
  fi
  +if test "$tcg" = "enabled"; then

Shouldn't there be a check here, too, whether git submodules are enabled at all or not?

IIUC this check is done later (see $git_submodules_action):

5487 if !(GIT="$git" "$source_path/scripts/git-submodule.sh" "$git_submodules_action" "$git_submodules"); then
5488 exit 1
5489 fi

Quoted 13 lines

 Thomas

Quoted 8 lines

+    git_submodules="$git_submodules tests/fp/berkeley-testfloat-3" +    git_submodules="$git_submodules tests/fp/berkeley-softfloat-3"

configure +2 -0
+fi
+

  if test -z "${target_list+xxx}" ; then
      default_targets=yes
      for target in $default_target_list; do

#3 lore raw
In reply to Philippe Mathieu-Daudé
Quoted 21 lines · Philippe Mathieu-Daudé
---
  configure | 7 +++++--
  1 file changed, 5 insertions(+), 2 deletions(-)
configure +0 -2
index 5877a6b2bfe..e0e02623e3e 100755
@@ -257,8 +257,6 @@ if test -e "$source_path/.git"
  then
      git_submodules_action="update"
      git_submodules="ui/keycodemapdb"
-    git_submodules="$git_submodules tests/fp/berkeley-testfloat-3"
-    git_submodules="$git_submodules tests/fp/berkeley-softfloat-3"
  else
      git_submodules_action="ignore"
      git_submodules=""
@@ -2277,6 +2275,11 @@ if test "$solaris" = "yes" ; then
    fi

configure if test "$solaris" = "yes" ; then · line 2285

Quoted 10 lines
configure +5 -0
  fi
 
+if test "$tcg" = "enabled"; then
+    git_submodules="$git_submodules tests/fp/berkeley-testfloat-3"
+    git_submodules="$git_submodules tests/fp/berkeley-softfloat-3"
+fi
+
  if test -z "${target_list+xxx}" ; then
      default_targets=yes
      for target in $default_target_list; do

Queued, thanks.

Paolo