linux-mtx-[12]-2.4.27: support bash4 for oldconfig
authorMartin Dietze <herbert@spamcop.net>
Sun, 29 Nov 2009 20:04:08 +0000 (21:04 +0100)
committerMartin Dietze <herbert@spamcop.net>
Sun, 29 Nov 2009 20:04:08 +0000 (21:04 +0100)
 * when using bash4 as /bin/sh the scripts/Configure script failed when running `make oldconfig', added patch to change `. .config' to `. ./.config'

recipes/linux/linux-mtx-1-2.4.27/49-bash4-configure.patch [new file with mode: 0644]
recipes/linux/linux-mtx-1_2.4.27.bb
recipes/linux/linux-mtx-2-2.4.27/49-bash4-configure.patch [new file with mode: 0644]
recipes/linux/linux-mtx-2_2.4.27.bb

diff --git a/recipes/linux/linux-mtx-1-2.4.27/49-bash4-configure.patch b/recipes/linux/linux-mtx-1-2.4.27/49-bash4-configure.patch
new file mode 100644 (file)
index 0000000..222567d
--- /dev/null
@@ -0,0 +1,11 @@
+--- linux/scripts/Configure-orig       2009-11-29 19:12:02.000000000 +0100
++++ linux/scripts/Configure    2009-11-29 19:12:27.000000000 +0100
+@@ -543,7 +543,7 @@
+   echo "#"
+   echo "# Using defaults found in" $DEFAULTS
+   echo "#"
+-  . $DEFAULTS
++  . ./$DEFAULTS
+   sed -e 's/# \(CONFIG_[^ ]*\) is not.*/\1=n/' <$DEFAULTS >.config-is-not.$$
+   . .config-is-not.$$
+   rm .config-is-not.$$
index 6dd7121..952edb0 100644 (file)
@@ -41,6 +41,7 @@ SRC_URI = "cvs://cvs:cvs@ftp.linux-mips.org/home/cvs;module=linux;tag=linux_2_4_
        file://43-usbserial-27-32-backport.diff;patch=1 \
        file://45-acm-tty-and-sb2.patch;patch=1 \
        file://48-pptp.patch;patch=1 \
+       file://49-bash4-configure.patch;patch=1 \
        file://defconfig-mtx-1"
 
 S = "${WORKDIR}/linux"
diff --git a/recipes/linux/linux-mtx-2-2.4.27/49-bash4-configure.patch b/recipes/linux/linux-mtx-2-2.4.27/49-bash4-configure.patch
new file mode 100644 (file)
index 0000000..222567d
--- /dev/null
@@ -0,0 +1,11 @@
+--- linux/scripts/Configure-orig       2009-11-29 19:12:02.000000000 +0100
++++ linux/scripts/Configure    2009-11-29 19:12:27.000000000 +0100
+@@ -543,7 +543,7 @@
+   echo "#"
+   echo "# Using defaults found in" $DEFAULTS
+   echo "#"
+-  . $DEFAULTS
++  . ./$DEFAULTS
+   sed -e 's/# \(CONFIG_[^ ]*\) is not.*/\1=n/' <$DEFAULTS >.config-is-not.$$
+   . .config-is-not.$$
+   rm .config-is-not.$$
index 5b26903..3379d54 100644 (file)
@@ -43,6 +43,7 @@ SRC_URI += "cvs://cvs:cvs@ftp.linux-mips.org/home/cvs;module=linux;tag=linux_2_4
        file://46-otg.patch;patch=1 \
        file://47-au1000_eth.patch;patch=1 \
        file://48-pptp.patch;patch=1 \
+       file://49-bash4-configure.patch;patch=1 \
        file://defconfig-mtx-2"
 
 FILESDIR = "${@os.path.dirname(bb.data.getVar('FILE',d,1))}/linux-mtx-2-${PV}"