2012-07-25 15:23:29 +02:00
|
|
|
# set default language for buildsystem
|
|
|
|
|
export LC_ALL=C
|
|
|
|
|
|
2010-01-15 02:02:06 +01:00
|
|
|
# determines PROJECT, if not forced by user
|
2010-12-20 03:47:04 +01:00
|
|
|
# default is Generic
|
2010-01-15 02:02:06 +01:00
|
|
|
if [ -z "$PROJECT" ]; then
|
2010-12-20 03:47:04 +01:00
|
|
|
PROJECT="Generic"
|
2010-01-15 02:02:06 +01:00
|
|
|
else
|
2010-12-18 22:28:19 +01:00
|
|
|
PROJECT="$PROJECT"
|
2010-01-15 02:02:06 +01:00
|
|
|
fi
|
2009-03-31 00:33:05 +02:00
|
|
|
|
2011-03-06 17:00:33 +01:00
|
|
|
# determines TARGET_ARCH, if not forced by user (i386 / x86_64 / arm)
|
2010-01-15 02:02:06 +01:00
|
|
|
# default is i386
|
2010-01-15 01:34:54 +01:00
|
|
|
if [ -z "$ARCH" ]; then
|
|
|
|
|
TARGET_ARCH="i386"
|
|
|
|
|
else
|
2010-12-18 22:28:19 +01:00
|
|
|
TARGET_ARCH="$ARCH"
|
2010-01-15 01:34:54 +01:00
|
|
|
fi
|
|
|
|
|
|
2009-12-19 01:35:31 +01:00
|
|
|
ROOT=`pwd`
|
2010-12-18 22:28:19 +01:00
|
|
|
PROJECT_DIR="$ROOT/projects"
|
2014-01-05 22:05:28 +02:00
|
|
|
LINUX_DEPENDS="$PROJECT_DIR/$PROJECT/linux/linux.$TARGET_ARCH.conf $ROOT/packages/linux/package.mk"
|
2009-04-02 18:02:37 +02:00
|
|
|
|
2012-03-19 12:31:30 +01:00
|
|
|
# include versioning
|
2012-03-19 13:13:17 +01:00
|
|
|
. config/version
|
2010-07-19 18:51:57 +02:00
|
|
|
|
2010-03-11 01:51:03 +01:00
|
|
|
# read project options if available
|
2010-12-18 22:28:19 +01:00
|
|
|
if [ -f "$PROJECT_DIR/$PROJECT/options" ]; then
|
2010-01-15 00:15:52 +01:00
|
|
|
. $PROJECT_DIR/$PROJECT/options
|
2009-12-19 01:35:31 +01:00
|
|
|
fi
|
2009-03-18 13:02:53 +01:00
|
|
|
|
|
|
|
|
# Need to point to your actual cc
|
|
|
|
|
# If you have ccache installed, take care that LOCAL_CC don't point to it
|
2009-12-19 01:35:31 +01:00
|
|
|
LOCAL_CC=`which gcc`
|
2009-03-18 13:02:53 +01:00
|
|
|
|
|
|
|
|
# Need to point to your actual g++
|
|
|
|
|
# If you have ccache installed, take care that LOCAL_CXX don't point to it
|
2009-12-19 01:35:31 +01:00
|
|
|
LOCAL_CXX=`which g++`
|
2009-03-18 13:02:53 +01:00
|
|
|
|
|
|
|
|
# Support C++ in toolchain
|
2010-12-18 22:28:19 +01:00
|
|
|
TOOLCHAIN_CXX="yes"
|
2009-03-18 13:02:53 +01:00
|
|
|
|
|
|
|
|
# verbose compilation mode (yes/no)
|
2010-12-18 22:28:19 +01:00
|
|
|
VERBOSE="yes"
|
2009-03-18 13:02:53 +01:00
|
|
|
|
|
|
|
|
# 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)
|
2010-08-23 13:24:07 +02:00
|
|
|
CONCURRENCY_MAKE_LEVEL=`cat /proc/cpuinfo | grep -c '^processor[[:cntrl:]]*:'`
|
2009-03-18 13:02:53 +01:00
|
|
|
|
2011-07-08 14:39:23 +02:00
|
|
|
# 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.
|
2012-05-13 08:30:54 +02:00
|
|
|
CCACHE_CACHE_SIZE="30G"
|
2011-07-08 14:39:23 +02:00
|
|
|
|
2010-11-11 17:05:47 +01:00
|
|
|
# forcing install of all packages (yes/no)
|
2010-12-18 22:28:19 +01:00
|
|
|
FORCE_INSTALL="no"
|
2010-11-11 17:05:47 +01:00
|
|
|
|
2012-03-19 12:31:30 +01:00
|
|
|
# install devtools on development builds
|
|
|
|
|
if [ "$OPENELEC_VERSION" = "devel" ]; then
|
|
|
|
|
DEVTOOLS=yes
|
|
|
|
|
fi
|
|
|
|
|
|
2011-01-23 21:06:48 +01:00
|
|
|
# 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
|
|
|
|
|
|
2011-07-04 13:24:43 +02:00
|
|
|
. config/graphic
|
2010-07-21 18:54:45 +02:00
|
|
|
. config/path $1
|