Files
Arch-R/config/options
T
Stephan Raue a44d005f66 projects/options:
- big rework of projects/*/options, config/options, config/path.
- most configurable options now under project folder
2009-12-19 01:35:31 +01:00

82 lines
2.1 KiB
Plaintext

# Project name
PROJECT=${PROJECT}
ROOT=`pwd`
PROJECT_DIR=$ROOT/projects
# read personal options if available
if [ -f $PROJECT_DIR/$PROJECT/options ]; then
. $PROJECT_DIR/$PROJECT/options
fi
# Target system library C (uClibc/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
# MESA to use (Mesa / Mesa-master)
MESA=Mesa-master
# libdrm to use (libdrm / libdrm-master)
LIBDRM=libdrm-master
# verbose compilation mode (yes/no)
VERBOSE=yes
# download new sources when url file is updated (yes/no/ask)
AUTOUPDATE=ask
# 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=1
if [ "$MEDIACENTER" = xbmc ]; then
MESA_GLU=yes
fi
get_graphicdrivers() {
if [ "$GRAPHIC_DRIVERS" = all ]; then
GRAPHIC_DRIVERS="i915 i965 r200 r300 r600 radeon nvidia"
fi
for drv in $GRAPHIC_DRIVERS; do
[ $drv = i915 ] && MESA_DRIVERS="$MESA_DRIVERS,i915"
[ $drv = i965 ] && MESA_DRIVERS="$MESA_DRIVERS,i965"
[ $drv = r200 ] && MESA_DRIVERS="$MESA_DRIVERS,r200"
[ $drv = r300 ] && MESA_DRIVERS="$MESA_DRIVERS,r300"
[ $drv = r600 ] && MESA_DRIVERS="$MESA_DRIVERS,r600"
[ $drv = radeon ] && MESA_DRIVERS="$MESA_DRIVERS,radeon"
if [ $drv = i915 -o $drv = i965 ]; then
MESA_CONFIG="$MESA_CONFIG --enable-gallium-intel"
XORG_DRIVERS="$XORG_DRIVERS intel"
DRM_DRIVERS="$DRM_DRIVERS intel"
fi
if [ $drv = r200 -o $drv = r300 -o $drv = r600 -o $drv = radeon ]; then
MESA_CONFIG="$MESA_CONFIG --enable-gallium-radeon"
XORG_DRIVERS="$XORG_DRIVERS ati"
DRM_DRIVERS="$DRM_DRIVERS radeon"
fi
if [ $drv = nvidia ]; then
XORG_DRIVERS="$XORG_DRIVERS nvidia"
fi
done
}
. config/path