Patchwork [17/20] Add fdt to new feature convention

login
register
mail settings
Submitter Juan Quintela
Date Aug. 12, 2009, 4:29 p.m.
Message ID <704f55c14af3799e882720b54f0ae24a83f37bbb.1250093910.git.quintela@redhat.com>
Download mbox | patch
Permalink /patch/31222/
State Superseded
Headers show

Comments

Juan Quintela - Aug. 12, 2009, 4:29 p.m.
Signed-off-by: Juan Quintela <quintela@redhat.com>
---
 configure |   16 +++++++++++++---
 1 files changed, 13 insertions(+), 3 deletions(-)

Patch

diff --git a/configure b/configure
index cc37a47..9ce51a5 100755
--- a/configure
+++ b/configure
@@ -184,6 +184,7 @@  brlapi=""
 curl=""
 curses=""
 docs=""
+fdt=""
 nptl=""
 pthread=""
 sdl=""
@@ -222,7 +223,6 @@  kvm="no"
 kerneldir=""
 aix="no"
 blobs="yes"
-fdt="yes"
 xen="yes"
 pkgversion=""

@@ -529,6 +529,10 @@  for opt do
   ;;
   --enable-curl) curl="yes"
   ;;
+  --disable-fdt) fdt="no"
+  ;;
+  --enable-fdt) fdt="yes"
+  ;;
   --disable-nptl) nptl="no"
   ;;
   --enable-nptl) nptl="yes"
@@ -666,6 +670,8 @@  echo "  --disable-curses         disable curses output"
 echo "  --enable-curses          enable curses output"
 echo "  --disable-curl           disable curl connectivity"
 echo "  --enable-curl            enable curl connectivity"
+echo "  --disable-fdt            disable fdt device tree"
+echo "  --enable-fdt             enable fdt device tree"
 echo "  --disable-bluez          disable bluez stack connectivity"
 echo "  --enable-bluez           enable bluez stack connectivity"
 echo "  --disable-kvm            disable KVM acceleration support"
@@ -1340,8 +1346,7 @@  fi

 ##########################################
 # fdt probe
-if test "$fdt" = "yes" ; then
-  fdt=no
+if test "$fdt" != "no" ; then
   fdt_libs="-lfdt"
   cat > $TMPC << EOF
 int main(void) { return 0; }
@@ -1349,6 +1354,11 @@  EOF
   if compile_prog "" "$fdt_libs" ; then
     fdt=yes
     libs_softmmu="$fdt_libs $libs_softmmu"
+  else
+    if test "$fdt" = "yes" ; then
+      feature_not_found "fdt"
+    fi
+    fdt=no
   fi
 fi