mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-24 11:16:51 +00:00
config/path: seperate ARCH specific options to config/arch
Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
parent
96fb256041
commit
8f1775260d
32
config/arch
Normal file
32
config/arch
Normal file
@ -0,0 +1,32 @@
|
||||
# determine architecture's family
|
||||
case $TARGET_ARCH in
|
||||
arm)
|
||||
TARGET_SUBARCH=arm
|
||||
TARGET_ABI=eabi
|
||||
;;
|
||||
|
||||
i386)
|
||||
TARGET_SUBARCH=i686
|
||||
;;
|
||||
|
||||
x86_64)
|
||||
TARGET_SUBARCH=x86_64
|
||||
;;
|
||||
esac
|
||||
|
||||
# determines TARGET_CPU, if not forced by user
|
||||
if [ -z "$TARGET_CPU" ]; then
|
||||
case $TARGET_ARCH in
|
||||
arm)
|
||||
TARGET_CPU=cortex-a8
|
||||
;;
|
||||
|
||||
i386)
|
||||
TARGET_CPU=i686
|
||||
;;
|
||||
|
||||
x86_64)
|
||||
TARGET_CPU=core2
|
||||
;;
|
||||
esac
|
||||
fi
|
38
config/path
38
config/path
@ -1,39 +1,6 @@
|
||||
set -e
|
||||
|
||||
# determine architecture's family
|
||||
case $TARGET_ARCH in
|
||||
arm)
|
||||
TARGET_SUBARCH=arm
|
||||
TARGET_ABI=eabi
|
||||
;;
|
||||
|
||||
i386)
|
||||
TARGET_SUBARCH=i686
|
||||
;;
|
||||
|
||||
x86_64)
|
||||
TARGET_SUBARCH=x86_64
|
||||
;;
|
||||
esac
|
||||
|
||||
# determines TARGET_CPU, if not forced by user
|
||||
if [ -z "$TARGET_CPU" ]; then
|
||||
case $TARGET_ARCH in
|
||||
arm)
|
||||
TARGET_CPU=cortex-a8
|
||||
;;
|
||||
|
||||
i386)
|
||||
TARGET_CPU=i686
|
||||
;;
|
||||
|
||||
x86_64)
|
||||
TARGET_CPU=core2
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
|
||||
# setup initial directorys
|
||||
# setup initial directorys (relative to root)
|
||||
CONFIG=config
|
||||
SCRIPTS=scripts
|
||||
PACKAGES=packages
|
||||
@ -42,6 +9,9 @@ fi
|
||||
TARGET=target
|
||||
ADDONS=addons
|
||||
|
||||
# include ARCH specific options
|
||||
. config/arch
|
||||
|
||||
HOST_NAME=`$SCRIPTS/configtools/config.guess`
|
||||
TARGET_NAME=${TARGET_SUBARCH}-openelec-linux-gnu${TARGET_ABI}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user