diff sources/functions.sh @ 530:ea7a010e5c47

Add ldd/readelf/ldconfig to cross and native toolchains, and teach build to fallback to stable miniconfig when miniconfig-alt is absent.
author Rob Landley <rob@landley.net>
date Wed, 10 Dec 2008 05:36:41 -0600
parents a32c75dcf508
children a9dc3436dcc9
line wrap: on
line diff
--- a/sources/functions.sh	Mon Dec 08 21:48:07 2008 -0600
+++ b/sources/functions.sh	Wed Dec 10 05:36:41 2008 -0600
@@ -7,6 +7,19 @@
   [ ! -z "$(echo ,"$USE_UNSTABLE", | grep ,"$1",)" ]
 }
 
+# Find appropriate miniconfig file
+
+function getconfig()
+{
+  if unstable "$1" && [ -f "$CONFIG_DIR/miniconfig-alt-$1" ]
+  then
+    echo "$CONFIG_DIR/miniconfig-alt-$1"
+    return
+  fi
+
+  echo "$CONFIG_DIR/miniconfig-$1"
+}
+
 # Strip the version number off a tarball
 
 function cleanup()