mirror of
https://github.com/libretro/Lakka-LibreELEC.git
synced 2024-11-23 16:30:13 +00:00
config/functions: add support for 'setup_toolchain() init' and 'setup_toolchain() bootstrap'
Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
parent
564fb3e4b3
commit
734003bbeb
@ -1,6 +1,6 @@
|
||||
setup_toolchain() {
|
||||
case "$1" in
|
||||
target)
|
||||
target|init)
|
||||
export DESTIMAGE="target"
|
||||
export CC="$TARGET_CC"
|
||||
export CXX="$TARGET_CXX"
|
||||
@ -39,7 +39,7 @@ setup_toolchain() {
|
||||
export _python_prefix=/usr
|
||||
export _python_exec_prefix=/usr
|
||||
;;
|
||||
host)
|
||||
host|bootstrap)
|
||||
export DESTIMAGE="host"
|
||||
export AWK=$HOST_AWK
|
||||
export CC="$HOST_CC"
|
||||
|
@ -66,11 +66,7 @@ fi
|
||||
if [ ! -f $STAMP ]; then
|
||||
rm -f $STAMP
|
||||
|
||||
if [ "$TARGET" = "bootstrap" -o "$TARGET" = "init" ]; then
|
||||
setup_toolchain target
|
||||
else
|
||||
setup_toolchain $TARGET
|
||||
fi
|
||||
setup_toolchain $TARGET
|
||||
|
||||
# unset functions
|
||||
unset -f pre_build_target
|
||||
|
Loading…
Reference in New Issue
Block a user