summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcin Bukat <marcin.bukat@gmail.com>2018-02-22 09:49:37 +0100
committerMarcin Bukat <marcin.bukat@gmail.com>2018-06-12 10:31:03 +0200
commitbeef52c5f0832e2c36bb1523b51eb8721f851db5 (patch)
tree11be766cb3c2fc4eb53cc529fc5657ee71661618
parent1b2faea677f0c214dba1b7dbae1919c5374bddf1 (diff)
downloadrockbox-beef52c5f0832e2c36bb1523b51eb8721f851db5.tar.gz
rockbox-beef52c5f0832e2c36bb1523b51eb8721f851db5.zip
mipsel-rockbox-linux toolchain build fix
If we use mips-rockbox-linux target resulting toolchain is big endian. If we use mipsel-rockbox-linux build fail since linux doesn't have separate archs for BE and LE mips. So we tweak arch passed to linux-headers stage to fix this. Change-Id: Iccae529998d1cd8f3429fa3b2ca4f030122f23bb
-rwxr-xr-xtools/rockboxdev.sh5
1 files changed, 4 insertions, 1 deletions
diff --git a/tools/rockboxdev.sh b/tools/rockboxdev.sh
index 00cc1bd0d0..e41a2db72f 100755
--- a/tools/rockboxdev.sh
+++ b/tools/rockboxdev.sh
@@ -574,6 +574,9 @@ build_linux_toolchain () {
574 # install linux headers 574 # install linux headers
575 # NOTE: we need to tell make where to put the build files, since buildtool 575 # NOTE: we need to tell make where to put the build files, since buildtool
576 # switches to the builddir, "." will be the correct builddir when ran 576 # switches to the builddir, "." will be the correct builddir when ran
577 if [ "$arch" == "mipsel" ]; then
578 arch="mips"
579 fi
577 linux_opts="O=. ARCH=$arch INSTALL_HDR_PATH=$sysroot/usr/" 580 linux_opts="O=. ARCH=$arch INSTALL_HDR_PATH=$sysroot/usr/"
578 RESTART_STEP="linux-headers" \ 581 RESTART_STEP="linux-headers" \
579 buildtool "linux" "$linux_ver" "NO_CONFIGURE" \ 582 buildtool "linux" "$linux_ver" "NO_CONFIGURE" \
@@ -814,7 +817,7 @@ do
814 # avoid patches/bugs. 817 # avoid patches/bugs.
815 glibcopts="--enable-kernel=3.2 --enable-oldest-abi=2.4" 818 glibcopts="--enable-kernel=3.2 --enable-oldest-abi=2.4"
816 # FIXME: maybe add -mhard-float 819 # FIXME: maybe add -mhard-float
817 build_linux_toolchain "mips-rockbox-linux-gnu" "2.26.1" "" "4.9.4" \ 820 build_linux_toolchain "mipsel-rockbox-linux-gnu" "2.26.1" "" "4.9.4" \
818 "$gccopts" "3.2.85" "2.25" "$glibcopts" 821 "$gccopts" "3.2.85" "2.25" "$glibcopts"
819 # build alsa-lib 822 # build alsa-lib
820 # we need to set the prefix to how it is on device (/usr) and then 823 # we need to set the prefix to how it is on device (/usr) and then