Skip to contentSkip to conversation

configure: put all symlink creation together

PATCH In review Paolo Bonzini 2 participants 2 messages Jan 29, 2024

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 configure: put all symlink creation together

Based-on: <[email protected]>

---
 configure | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)
configure +5 -5
index 9cdb5a6818b..3cd736b139f 100755
@@ -1538,6 +1538,11 @@ for f in $LINKS ; do
     fi
 done
 
+# use included Linux headers for KVM architectures
+if test "$host_os" = "linux" && test -n "$linux_arch"; then
+  symlink "$source_path/linux-headers/asm-$linux_arch" linux-headers/asm
+fi
+
 echo "# Automatically generated by configure - do not modify" > Makefile.prereqs
 
 # Mac OS X ships with a broken assembler
@@ -1605,11 +1610,6 @@ echo "GENISOIMAGE=$genisoimage" >> $config_host_mak
 echo "MESON=$meson" >> $config_host_mak
 echo "NINJA=$ninja" >> $config_host_mak
 echo "EXESUF=$EXESUF" >> $config_host_mak
-# use included Linux headers for KVM architectures
-if test "$host_os" = "linux" && test -n "$linux_arch"; then
-  symlink "$source_path/linux-headers/asm-$linux_arch" linux-headers/asm
-fi
-
 if test "$default_targets" = "yes"; then
   echo "CONFIG_DEFAULT_TARGETS=y" >> $config_host_mak
 fi
Signature · 1 line
2.43.0
Reviewed-by on v1 1/1
#1 lore raw
Quoted 24 lines · Paolo Bonzini

Based-on: <[email protected]>

---
  configure | 10 +++++-----
  1 file changed, 5 insertions(+), 5 deletions(-)
configure +5 -0
index 9cdb5a6818b..3cd736b139f 100755
@@ -1538,6 +1538,11 @@ for f in $LINKS ; do
      fi
  done
 
+# use included Linux headers for KVM architectures
+if test "$host_os" = "linux" && test -n "$linux_arch"; then
+  symlink "$source_path/linux-headers/asm-$linux_arch" linux-headers/asm
+fi
+
  echo "# Automatically generated by configure - do not modify" > Makefile.prereqs
 
  # Mac OS X ships with a broken assembler
@@ -1605,11 +1610,6 @@ echo "GENISOIMAGE=$genisoimage" >> $config_host_mak
  echo "MESON=$meson" >> $config_host_mak

configure echo "GENISOIMAGE=$genisoimage" >> $config_host_mak · line 1615

Quoted 10 lines
configure +0 -5
  echo "NINJA=$ninja" >> $config_host_mak
  echo "EXESUF=$EXESUF" >> $config_host_mak
-# use included Linux headers for KVM architectures
-if test "$host_os" = "linux" && test -n "$linux_arch"; then
-  symlink "$source_path/linux-headers/asm-$linux_arch" linux-headers/asm
-fi
-
  if test "$default_targets" = "yes"; then
    echo "CONFIG_DEFAULT_TARGETS=y" >> $config_host_mak
  fi