fix inner build.cross call in XEN/kvm
authorAdrian Schröter <adrian@suse.de>
Wed, 8 Apr 2009 14:24:37 +0000 (14:24 +0000)
committerAdrian Schröter <adrian@suse.de>
Wed, 8 Apr 2009 14:24:37 +0000 (14:24 +0000)
build
build.cross [new file with mode: 0755]

diff --git a/build b/build
index e286f0b..1315178 100755 (executable)
--- a/build
+++ b/build
@@ -1023,9 +1023,6 @@ for SPECFILE in "${SPECFILES[@]}" ; do
                if [ x"$BUILD_ARCH" == xarmv4l -o x"$BUILD_ARCH" == xarmv5el -o x"$BUILD_ARCH" == xarmv7el -o x"$BUILD_ARCH" == xsh4 -o x"$BUILD_ARCH" == xppc ]; then
                    if [ x"`uname -i`" == xx86_64 -o  x"`uname -i`" == xi386 ]; then
                        if [ -e /bin/bash-static ]; then
-                           echo "#!/bin/bash-static" > $BUILD_ROOT/.build/build.cross
-                           echo "bash-static /usr/sbin/qemu-binfmt-conf.sh" >> $BUILD_ROOT/.build/build.cross
-                           echo "exec /.build/build" >> $BUILD_ROOT/.build/build.cross
                            CROSS_INIT_SCRIPT="/.build/build.cross"
                        fi
                    fi
diff --git a/build.cross b/build.cross
new file mode 100755 (executable)
index 0000000..371237a
--- /dev/null
@@ -0,0 +1,4 @@
+#!/bin/bash-static
+bash-static /usr/sbin/qemu-binfmt-conf.sh
+exec /.build/build
+