mirror of
https://github.com/brain-hackers/cegcc-build.git
synced 2024-12-22 20:20:08 +09:00
build.sh: add --target option
Just in case somebody wants to build a x86 WinCE compiler.
This commit is contained in:
parent
342fe695c3
commit
0397fb9dcc
13
build.sh
13
build.sh
@ -43,6 +43,7 @@ Usage: $0 [OPTIONS] ...
|
|||||||
--prefix=PREFIX install toolchain in PREFIX
|
--prefix=PREFIX install toolchain in PREFIX
|
||||||
[$ac_default_prefix]
|
[$ac_default_prefix]
|
||||||
--host=HOST host on which the toolchain will run [BUILD]
|
--host=HOST host on which the toolchain will run [BUILD]
|
||||||
|
--target=TARGET configure for building compilers for TARGET [arm-mingw32ce]
|
||||||
-j, --parallelism PARALLELISM Pass PARALLELISM as -jPARALLELISM
|
-j, --parallelism PARALLELISM Pass PARALLELISM as -jPARALLELISM
|
||||||
to make invocations.
|
to make invocations.
|
||||||
--components=LIST specify which components to build
|
--components=LIST specify which components to build
|
||||||
@ -102,6 +103,11 @@ do
|
|||||||
--host=*)
|
--host=*)
|
||||||
host=$ac_optarg ;;
|
host=$ac_optarg ;;
|
||||||
|
|
||||||
|
--target)
|
||||||
|
ac_prev=target ;;
|
||||||
|
--target=*)
|
||||||
|
target=$ac_optarg ;;
|
||||||
|
|
||||||
--incremental)
|
--incremental)
|
||||||
incremental=yes ;;
|
incremental=yes ;;
|
||||||
|
|
||||||
@ -455,9 +461,14 @@ while [ -n "$1" ]; do
|
|||||||
shift
|
shift
|
||||||
done
|
done
|
||||||
|
|
||||||
|
if [ "x${target}" != "x" ]; then
|
||||||
|
export TARGET="${target}"
|
||||||
|
else
|
||||||
export TARGET="arm-mingw32ce"
|
export TARGET="arm-mingw32ce"
|
||||||
#export TARGET="arm-wince-mingw32ce"
|
fi
|
||||||
|
|
||||||
export BUILD=`sh ${BASE_DIRECTORY}/gcc/config.guess`
|
export BUILD=`sh ${BASE_DIRECTORY}/gcc/config.guess`
|
||||||
|
|
||||||
if [ "x${host}" != "x" ]; then
|
if [ "x${host}" != "x" ]; then
|
||||||
export HOST="${host}"
|
export HOST="${host}"
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user