mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-14 10:37:38 -04:00
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
This commit is contained in:
parent
1b2faea677
commit
beef52c5f0
1 changed files with 4 additions and 1 deletions
|
@ -574,6 +574,9 @@ build_linux_toolchain () {
|
||||||
# install linux headers
|
# install linux headers
|
||||||
# NOTE: we need to tell make where to put the build files, since buildtool
|
# NOTE: we need to tell make where to put the build files, since buildtool
|
||||||
# switches to the builddir, "." will be the correct builddir when ran
|
# switches to the builddir, "." will be the correct builddir when ran
|
||||||
|
if [ "$arch" == "mipsel" ]; then
|
||||||
|
arch="mips"
|
||||||
|
fi
|
||||||
linux_opts="O=. ARCH=$arch INSTALL_HDR_PATH=$sysroot/usr/"
|
linux_opts="O=. ARCH=$arch INSTALL_HDR_PATH=$sysroot/usr/"
|
||||||
RESTART_STEP="linux-headers" \
|
RESTART_STEP="linux-headers" \
|
||||||
buildtool "linux" "$linux_ver" "NO_CONFIGURE" \
|
buildtool "linux" "$linux_ver" "NO_CONFIGURE" \
|
||||||
|
@ -814,7 +817,7 @@ do
|
||||||
# avoid patches/bugs.
|
# avoid patches/bugs.
|
||||||
glibcopts="--enable-kernel=3.2 --enable-oldest-abi=2.4"
|
glibcopts="--enable-kernel=3.2 --enable-oldest-abi=2.4"
|
||||||
# FIXME: maybe add -mhard-float
|
# FIXME: maybe add -mhard-float
|
||||||
build_linux_toolchain "mips-rockbox-linux-gnu" "2.26.1" "" "4.9.4" \
|
build_linux_toolchain "mipsel-rockbox-linux-gnu" "2.26.1" "" "4.9.4" \
|
||||||
"$gccopts" "3.2.85" "2.25" "$glibcopts"
|
"$gccopts" "3.2.85" "2.25" "$glibcopts"
|
||||||
# build alsa-lib
|
# build alsa-lib
|
||||||
# we need to set the prefix to how it is on device (/usr) and then
|
# we need to set the prefix to how it is on device (/usr) and then
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue