mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-04-20 04:27:20 +00:00

I think it's error prone and useless to the development of LE. I've left the possibilty to have a options file in your home directory but I do not think it's necessary. Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
105 lines
2.9 KiB
Plaintext
105 lines
2.9 KiB
Plaintext
# set default language for buildsystem
|
|
export LC_ALL=C
|
|
|
|
# determines DISTRO, if not forced by user
|
|
# default is LibreELEC
|
|
if [ -z "$DISTRO" ]; then
|
|
DISTRO="LibreELEC"
|
|
else
|
|
DISTRO="$DISTRO"
|
|
fi
|
|
|
|
# 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 (x86_64 / arm)
|
|
# default is x86_64
|
|
if [ -z "$ARCH" ]; then
|
|
TARGET_ARCH="x86_64"
|
|
else
|
|
TARGET_ARCH="$ARCH"
|
|
fi
|
|
|
|
ROOT=`pwd`
|
|
DISTRO_DIR="$ROOT/distributions"
|
|
PROJECT_DIR="$ROOT/projects"
|
|
LINUX_DEPENDS="$PROJECT_DIR/$PROJECT/linux/linux.$TARGET_ARCH.conf $PROJECT_DIR/$PROJECT/devices/$DEVICE/linux/linux.$TARGET_ARCH.conf $ROOT/packages/linux/package.mk"
|
|
[ "$TARGET_ARCH" = "x86_64" ] && LINUX_DEPENDS+=" $ROOT/packages/linux-firmware/intel-ucode/package.mk $ROOT/packages/linux-firmware/x86-firmware/package.mk"
|
|
|
|
# include versioning
|
|
. config/version
|
|
|
|
# read distro versioning if available
|
|
if [ -f "$DISTRO_DIR/$DISTRO/version" ]; then
|
|
. $DISTRO_DIR/$DISTRO/version
|
|
fi
|
|
|
|
# read distro options if available
|
|
if [ -f "$DISTRO_DIR/$DISTRO/options" ]; then
|
|
. $DISTRO_DIR/$DISTRO/options
|
|
fi
|
|
|
|
# read project options if available
|
|
if [ -f "$PROJECT_DIR/$PROJECT/options" ]; then
|
|
. $PROJECT_DIR/$PROJECT/options
|
|
fi
|
|
|
|
# read board options if available
|
|
if [ -f "$PROJECT_DIR/$PROJECT/devices/$DEVICE/options" ]; then
|
|
. $PROJECT_DIR/$PROJECT/devices/$DEVICE/options
|
|
fi
|
|
|
|
# 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`
|
|
|
|
if [ -z "$LOCAL_CC" ] ; then
|
|
echo "***** Please install gcc *****"
|
|
exit 127
|
|
fi
|
|
|
|
# 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++`
|
|
|
|
# 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)
|
|
if test -z "${CONCURRENCY_MAKE_LEVEL}"; then
|
|
CONCURRENCY_MAKE_LEVEL=`cat /proc/cpuinfo | grep -c '^processor[[:cntrl:]]*:'`
|
|
fi
|
|
|
|
# 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. Keep in mind this per project .ccache
|
|
# directory.
|
|
CCACHE_CACHE_SIZE="10G"
|
|
|
|
# read options from $HOME if available
|
|
if [ -f "$HOME/.libreelec/options" ]; then
|
|
. $HOME/.libreelec/options
|
|
fi
|
|
|
|
# install devtools on development builds
|
|
if [ -z "$DEVTOOLS" -a "$LIBREELEC_VERSION" = "devel" ]; then
|
|
DEVTOOLS=yes
|
|
fi
|
|
|
|
# overwrite OEM_SUPPORT via commandline
|
|
if [ "$OEM" = yes -o "$OEM" = no ]; then
|
|
OEM_SUPPORT=$OEM
|
|
fi
|
|
|
|
. config/graphic
|
|
. config/path $1
|