[PATCH 7 of 7] binutils: allow building binutils snapshots

Bryan Hundven bryanhundven@gmail.com
Tue Dec 7 09:10:00 GMT 2010


# HG changeset patch
# User Bryan Hundven <bryanhundven@gmail.com>
# Date 1291712686 28800
# Node ID b3751f356eabe4f726914bb3ceaf7ff83be9b263
# Parent  59e81fc689a084e1283eea46de38932f97ae1f98
binutils: allow building binutils snapshots

diff -r 59e81fc689a0 -r b3751f356eab config/binutils/binutils.in
--- a/config/binutils/binutils.in	Tue Dec 07 01:04:32 2010 -0800
+++ b/config/binutils/binutils.in	Tue Dec 07 01:04:46 2010 -0800
@@ -8,6 +8,11 @@
 # Don't remove next line
 # CT_INSERT_VERSION_BELOW
 
+config BINUTILS_V_SNAPSHOT
+    bool
+    prompt "Snapshot (EXPERIMENTAL)"
+    depends on EXPERIMENTAL
+
 config BINUTILS_V_2_20_1
     bool
     prompt "2.20.1"
@@ -40,10 +45,21 @@
 
 endchoice
 
+if BINUTILS_V_SNAPSHOT
+
+config BINUTILS_V_SS_VERSION
+    string
+    prompt "Snapshot Version to use"
+    default ""
+    depends on BINUTILS_V_SNAPSHOT
+
+endif # BINUTILS_V_SNAPSHOT
+
 config BINUTILS_VERSION
     string
 # Don't remove next line
 # CT_INSERT_VERSION_STRING_BELOW
+    default "SNAPSHOT" if BINUTILS_V_SS_VERSION
     default "2.20.1" if BINUTILS_V_2_20_1
     default "2.20" if BINUTILS_V_2_20
     default "2.19.1" if BINUTILS_V_2_19_1
diff -r 59e81fc689a0 -r b3751f356eab scripts/crosstool-NG.sh.in
--- a/scripts/crosstool-NG.sh.in	Tue Dec 07 01:04:32 2010 -0800
+++ b/scripts/crosstool-NG.sh.in	Tue Dec 07 01:04:46 2010 -0800
@@ -151,6 +151,16 @@
 CT_CC_CORE_EXTRA_CONFIG="${CT_ARCH_CC_CORE_EXTRA_CONFIG} ${CT_CC_CORE_EXTRA_CONFIG}"
 CT_CC_EXTRA_CONFIG="${CT_ARCH_CC_EXTRA_CONFIG} ${CT_CC_EXTRA_CONFIG}"
 
+# If we are using a binutils snapshot, set CT_BINUTILS_VERSION to the
+# snapshot version
+if [ "${CT_BINUTILS_V_SNAPSHOT}" = "y" ]; then
+    if [ -n "${CT_BINUTILS_V_SS_VERSION}" ]; then
+        CT_BINUTILS_VERSION="${CT_BINUTILS_V_SS_VERSION}"
+    else
+        CT_Abort "You forgot to set the binutils snapshot version!"
+    fi
+fi
+
 # If we are using a gcc snapshot, get the real "version number" straight
 # here so we don't have to modify the build scripts.
 if [ "${CT_CC_V_4_5_SNAPSHOT}" = "y" -o "${CT_CC_V_4_6_SNAPSHOT}" = "y" ]; then

--
For unsubscribe information see http://sourceware.org/lists.html#faq



More information about the crossgcc mailing list