mirror of
https://github.com/libretro/Lakka.git
synced 2024-12-13 10:41:15 +00:00
268bed238a
Signed-off-by: Stephan Raue <stephan@openelec.tv>
87 lines
2.2 KiB
Plaintext
87 lines
2.2 KiB
Plaintext
# determines PROJECT, if not forced by user
|
|
# default is Generic
|
|
if [ -z "$PROJECT" ]; then
|
|
PROJECT="Generic"
|
|
else
|
|
PROJECT="$PROJECT"
|
|
fi
|
|
|
|
# determines TARGET_ARCH, if not forced by user (i386 / x86_64 / arm)
|
|
# default is i386
|
|
if [ -z "$ARCH" ]; then
|
|
TARGET_ARCH="i386"
|
|
else
|
|
TARGET_ARCH="$ARCH"
|
|
fi
|
|
|
|
ROOT=`pwd`
|
|
PROJECT_DIR="$ROOT/projects"
|
|
|
|
OPENELEC_VERSION=`cat VERSION`
|
|
|
|
if [ "$OPENELEC_VERSION" = "devel" ]; then
|
|
OS_VERSION="0.99"
|
|
else
|
|
OS_MAJOR_VERSION=`echo "$OPENELEC_VERSION" | cut -f1 -d "."`
|
|
OS_MINOR_VERSION=`echo "$OPENELEC_VERSION" | cut -f2 -d "."`
|
|
OS_VERSION="$OS_MAJOR_VERSION.$OS_MINOR_VERSION"
|
|
fi
|
|
|
|
# read project options if available
|
|
if [ -f "$PROJECT_DIR/$PROJECT/options" ]; then
|
|
. $PROJECT_DIR/$PROJECT/options
|
|
fi
|
|
|
|
# Target system library C (eglibc)
|
|
TARGET_LIBC="eglibc"
|
|
|
|
# Library strip
|
|
LIBSTRIP="yes"
|
|
|
|
# Need to point to your actual cc
|
|
# If you have ccache installed, take care that LOCAL_CC don't point to it
|
|
LOCAL_CC=`which gcc`
|
|
|
|
# Need to point to your actual g++
|
|
# If you have ccache installed, take care that LOCAL_CXX don't point to it
|
|
LOCAL_CXX=`which g++`
|
|
|
|
# Support C++ in toolchain
|
|
TOOLCHAIN_CXX="yes"
|
|
|
|
# verbose compilation mode (yes/no)
|
|
VERBOSE="yes"
|
|
|
|
# Concurrency make level (-j option)
|
|
# Try value 1 (default) to 4 on single CPU computer, or more on
|
|
# multi-processor computer (like hyperthreading SMP CPU)
|
|
CONCURRENCY_MAKE_LEVEL=`cat /proc/cpuinfo | grep -c '^processor[[:cntrl:]]*:'`
|
|
|
|
# cache size for ccache
|
|
# Set the maximum size of the files stored in the cache. You can specify a
|
|
# value in gigabytes, megabytes or kilobytes by appending a G, M or K to the
|
|
# value. The default is gigabytes. The actual value stored is rounded down to
|
|
# the nearest multiple of 16 kilobytes.
|
|
CCACHE_CACHE_SIZE="10G"
|
|
|
|
# forcing install of all packages (yes/no)
|
|
FORCE_INSTALL="no"
|
|
|
|
# set jpeg library depending on ARCH
|
|
if [ "$TARGET_ARCH" = "i386" -o "$TARGET_ARCH" = "x86_64" ]; then
|
|
LIBJPEG="libjpeg-turbo"
|
|
else
|
|
LIBJPEG="jpeg"
|
|
fi
|
|
|
|
# read options from $HOME if available
|
|
if [ -f "$HOME/.openelec/options" ]; then
|
|
. $HOME/.openelec/options
|
|
fi
|
|
if [ -f "$HOME/.openelec/$PROJECT/options" ]; then
|
|
. $HOME/.openelec/$PROJECT/options
|
|
fi
|
|
|
|
. config/graphic
|
|
. config/path $1
|