mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-28 16:26:21 -04:00
Look for CROSS_COMPILE when building the simulator.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26589 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
6ea6dce4b5
commit
efbc5df5f7
1 changed files with 10 additions and 3 deletions
13
tools/configure
vendored
13
tools/configure
vendored
|
|
@ -97,7 +97,7 @@ findsdl(){
|
||||||
simcc () {
|
simcc () {
|
||||||
|
|
||||||
# default tool setup for native building
|
# default tool setup for native building
|
||||||
prefixtools ""
|
prefixtools "$CROSS_COMPILE"
|
||||||
|
|
||||||
simver=sdl
|
simver=sdl
|
||||||
winbuild="$crosscompile"
|
winbuild="$crosscompile"
|
||||||
|
|
@ -204,7 +204,10 @@ EOF
|
||||||
|
|
||||||
$CC -o $tmpdir/conftest-$id $tmpdir/conftest-$id.c 2>/dev/null
|
$CC -o $tmpdir/conftest-$id $tmpdir/conftest-$id.c 2>/dev/null
|
||||||
|
|
||||||
if test `$tmpdir/conftest-$id 2>/dev/null` -gt "1"; then
|
# when cross compiling, the endianess cannot be detected because the above program doesn't run
|
||||||
|
# on the local machine. assume little endian but print a warning
|
||||||
|
endian=`$tmpdir/conftest-$id 2> /dev/null`
|
||||||
|
if [ "$endian" != "" ] && [ $endian -gt "1" ]; then
|
||||||
# big endian
|
# big endian
|
||||||
endian="big"
|
endian="big"
|
||||||
else
|
else
|
||||||
|
|
@ -212,6 +215,10 @@ EOF
|
||||||
endian="little"
|
endian="little"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ "$CROSS_COMPILE" != "" ]; then
|
||||||
|
echo "WARNING: Cross Compiling, cannot detect endianess. Assuming little endian!"
|
||||||
|
fi
|
||||||
|
|
||||||
if [ $1 = "sdl" ]; then
|
if [ $1 = "sdl" ]; then
|
||||||
echo "Simulator environment deemed $endian endian"
|
echo "Simulator environment deemed $endian endian"
|
||||||
elif [ $1 = "checkwps" ]; then
|
elif [ $1 = "checkwps" ]; then
|
||||||
|
|
@ -2841,7 +2848,7 @@ else
|
||||||
fi
|
fi
|
||||||
|
|
||||||
case $prefix in
|
case $prefix in
|
||||||
"")
|
""|"$CROSS_COMPILE")
|
||||||
# simulator
|
# simulator
|
||||||
;;
|
;;
|
||||||
i586-mingw32msvc-)
|
i586-mingw32msvc-)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue