2014-11-09 16:44:55 +01:00
|
|
|
################################################################################
|
|
|
|
|
# setup system defaults
|
|
|
|
|
################################################################################
|
2012-02-02 22:15:01 +01:00
|
|
|
|
2014-11-09 16:44:55 +01:00
|
|
|
# The TARGET_CPU variable controls which processor should be targeted for
|
|
|
|
|
# generated code.
|
|
|
|
|
case $TARGET_ARCH in
|
|
|
|
|
arm)
|
|
|
|
|
# TARGET_CPU:
|
|
|
|
|
# arm2 arm250 arm3 arm6 arm60 arm600 arm610 arm620 arm7 arm7m arm7d
|
|
|
|
|
# arm7dm arm7di arm7dmi arm70 arm700 arm700i arm710 arm710c
|
|
|
|
|
# arm7100 arm720 arm7500 arm7500fe arm7tdmi arm7tdmi-s arm710t
|
|
|
|
|
# arm720t arm740t strongarm strongarm110 strongarm1100
|
|
|
|
|
# strongarm1110 arm8 arm810 arm9 arm9e arm920 arm920t arm922t
|
|
|
|
|
# arm946e-s arm966e-s arm968e-s arm926ej-s arm940t arm9tdmi
|
|
|
|
|
# arm10tdmi arm1020t arm1026ej-s arm10e arm1020e arm1022e
|
|
|
|
|
# arm1136j-s arm1136jf-s mpcore mpcorenovfp arm1156t2-s
|
|
|
|
|
# arm1176jz-s arm1176jzf-s cortex-a8 cortex-a9 cortex-r4
|
|
|
|
|
# cortex-r4f cortex-m3 cortex-m1 xscale iwmmxt iwmmxt2 ep9312.
|
2017-03-14 12:02:43 -07:00
|
|
|
|
2017-03-14 12:06:21 -07:00
|
|
|
if [ "$DEVICE" = "RPi" -o "$DEVICE" = "Slice" ]; then
|
2017-03-14 12:02:43 -07:00
|
|
|
TARGET_CPU="arm1176jzf-s"
|
2017-03-14 12:06:21 -07:00
|
|
|
elif [ "$DEVICE" = "RPi2" -o "$DEVICE" = "Slice3" ]; then
|
2017-03-14 12:02:43 -07:00
|
|
|
TARGET_CPU="cortex-a7"
|
|
|
|
|
fi
|
2012-02-17 03:05:03 +01:00
|
|
|
|
2014-11-09 16:44:55 +01:00
|
|
|
# TARGET_FLOAT:
|
|
|
|
|
# Specifies which floating-point ABI to use. Permissible values are:
|
|
|
|
|
# soft softfp hard
|
|
|
|
|
TARGET_FLOAT="hard"
|
2012-02-02 22:15:01 +01:00
|
|
|
|
2014-11-09 16:44:55 +01:00
|
|
|
# TARGET_FPU:
|
|
|
|
|
# This specifies what floating point hardware (or hardware emulation) is
|
|
|
|
|
# available on the target. Permissible names are:
|
|
|
|
|
# fpa fpe2 fpe3 maverick vfp vfpv3 vfpv3-fp16 vfpv3-d16 vfpv3-d16-fp16
|
|
|
|
|
# vfpv3xd vfpv3xd-fp16 neon neon-fp16 vfpv4 vfpv4-d16 fpv4-sp-d16
|
|
|
|
|
# neon-vfpv4.
|
2017-03-14 12:02:43 -07:00
|
|
|
|
2017-03-14 12:06:21 -07:00
|
|
|
if [ "$DEVICE" = "RPi" -o "$DEVICE" = "Slice" ]; then
|
2017-03-14 12:02:43 -07:00
|
|
|
TARGET_FPU="vfp"
|
2017-10-17 22:48:27 +01:00
|
|
|
TARGET_FEATURES="32bit"
|
2017-03-14 12:06:21 -07:00
|
|
|
elif [ "$DEVICE" = "RPi2" -o "$DEVICE" = "Slice3" ]; then
|
2017-03-14 12:02:43 -07:00
|
|
|
TARGET_FPU="neon-vfpv4"
|
2017-10-17 22:48:27 +01:00
|
|
|
TARGET_FEATURES="32bit neon"
|
2017-03-14 12:02:43 -07:00
|
|
|
fi
|
|
|
|
|
|
2014-11-09 16:44:55 +01:00
|
|
|
;;
|
|
|
|
|
esac
|
2012-02-02 22:15:01 +01:00
|
|
|
|
2014-11-09 16:44:55 +01:00
|
|
|
# Bootloader to use (syslinux / u-boot / bcm2835-bootloader)
|
|
|
|
|
BOOTLOADER="bcm2835-bootloader"
|
2012-02-02 22:15:01 +01:00
|
|
|
|
2014-11-09 16:44:55 +01:00
|
|
|
# u-boot version to use (default)
|
|
|
|
|
UBOOT_VERSION="default"
|
2012-02-02 22:15:01 +01:00
|
|
|
|
2014-11-09 16:44:55 +01:00
|
|
|
# Configuration for u-boot
|
|
|
|
|
UBOOT_CONFIG=""
|
2012-02-02 22:15:01 +01:00
|
|
|
|
2014-11-09 16:44:55 +01:00
|
|
|
# Target Configfile for u-boot
|
|
|
|
|
UBOOT_CONFIGFILE=""
|
2012-02-02 22:15:01 +01:00
|
|
|
|
2016-03-01 21:10:56 +01:00
|
|
|
# Kernel target
|
|
|
|
|
KERNEL_TARGET="zImage"
|
2012-02-02 22:15:01 +01:00
|
|
|
|
2014-11-09 16:44:55 +01:00
|
|
|
# Kernel extra targets to build
|
|
|
|
|
KERNEL_UBOOT_EXTRA_TARGET=""
|
2013-11-30 18:18:55 +02:00
|
|
|
|
2014-11-09 16:44:55 +01:00
|
|
|
# Additional kernel make parameters (for example to specify the u-boot loadaddress)
|
2015-01-25 13:49:37 +01:00
|
|
|
KERNEL_MAKE_EXTRACMD="dtbs"
|
2013-11-30 18:18:55 +02:00
|
|
|
|
2014-11-09 16:44:55 +01:00
|
|
|
# Kernel to use. values can be:
|
|
|
|
|
# default: default mainline kernel
|
2015-06-19 12:04:16 +02:00
|
|
|
LINUX="default"
|
2013-11-30 18:18:55 +02:00
|
|
|
|
2017-03-14 12:06:21 -07:00
|
|
|
if [ "$DEVICE" = "RPi" -o "$DEVICE" = "Slice" ]; then
|
2017-03-14 12:02:43 -07:00
|
|
|
|
2016-03-01 07:49:27 +01:00
|
|
|
# NOOBS supported hex versions (legacy)
|
2016-05-13 15:43:04 +01:00
|
|
|
NOOBS_HEX="2,3,4,5,6,7,8,9,d,e,f,10,11,12,14,19,0092,0093"
|
2012-06-22 12:18:23 +02:00
|
|
|
|
2016-03-01 07:49:27 +01:00
|
|
|
# NOOBS supported model versions
|
2016-05-20 09:54:45 +01:00
|
|
|
NOOBS_SUPPORTED_MODELS='"Pi Model","Pi Compute Module","Pi Zero"'
|
2016-03-01 07:49:27 +01:00
|
|
|
|
2017-03-14 12:06:21 -07:00
|
|
|
elif [ "$DEVICE" = "RPi2" -o "$DEVICE" = "Slice3" ]; then
|
2017-03-14 12:02:43 -07:00
|
|
|
|
|
|
|
|
# NOOBS supported hex versions (legacy)
|
|
|
|
|
NOOBS_HEX="1040,1041,2082"
|
|
|
|
|
|
|
|
|
|
# NOOBS supported model versions
|
|
|
|
|
NOOBS_SUPPORTED_MODELS='"Pi 2","Pi 3"'
|
|
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
|
2014-11-09 16:44:55 +01:00
|
|
|
################################################################################
|
|
|
|
|
# setup build defaults
|
|
|
|
|
################################################################################
|
2014-01-07 19:18:06 +02:00
|
|
|
|
2014-11-09 16:44:55 +01:00
|
|
|
# Project CFLAGS
|
|
|
|
|
PROJECT_CFLAGS=""
|
2012-02-02 22:15:01 +01:00
|
|
|
|
2014-11-09 16:44:55 +01:00
|
|
|
# SquashFS compression method (gzip / lzo / xz)
|
|
|
|
|
SQUASHFS_COMPRESSION="lzo"
|
2014-08-29 09:25:16 +02:00
|
|
|
|
2012-02-02 22:15:01 +01:00
|
|
|
|
2014-11-09 16:44:55 +01:00
|
|
|
################################################################################
|
|
|
|
|
# setup project defaults
|
|
|
|
|
################################################################################
|
2012-02-02 22:15:01 +01:00
|
|
|
|
2014-11-09 16:44:55 +01:00
|
|
|
# build and install ALSA Audio support (yes / no)
|
|
|
|
|
ALSA_SUPPORT="yes"
|
2012-02-02 22:15:01 +01:00
|
|
|
|
2015-03-08 11:05:33 +01:00
|
|
|
# OpenGL(X) implementation to use (no / mesa)
|
2014-11-09 16:44:55 +01:00
|
|
|
OPENGL="no"
|
2012-02-02 22:15:01 +01:00
|
|
|
|
2015-05-27 21:40:03 +02:00
|
|
|
# OpenGL-ES implementation to use (no / bcm2835-driver / gpu-viv-bin-mx6q)
|
2014-11-09 16:44:55 +01:00
|
|
|
OPENGLES="bcm2835-driver"
|
2012-02-02 22:15:01 +01:00
|
|
|
|
2014-11-09 16:44:55 +01:00
|
|
|
# include uvesafb support (yes / no)
|
|
|
|
|
UVESAFB_SUPPORT="no"
|
2013-01-13 19:38:15 +02:00
|
|
|
|
2014-11-09 16:44:55 +01:00
|
|
|
# Displayserver to use (x11 / no)
|
|
|
|
|
DISPLAYSERVER="no"
|
2013-01-13 19:42:33 +02:00
|
|
|
|
2014-11-09 16:44:55 +01:00
|
|
|
# Windowmanager to use (ratpoison / fluxbox / none)
|
|
|
|
|
WINDOWMANAGER="none"
|
2013-01-13 19:44:24 +02:00
|
|
|
|
2015-02-22 13:22:50 +02:00
|
|
|
# Xorg Graphic drivers to use (all / i915,i965,r200,r300,r600,nvidia)
|
2014-11-09 16:44:55 +01:00
|
|
|
# Space separated list is supported,
|
2015-02-22 13:22:50 +02:00
|
|
|
# e.g. GRAPHIC_DRIVERS="i915 i965 r300 r600 radeonsi nvidia"
|
2014-11-09 16:44:55 +01:00
|
|
|
GRAPHIC_DRIVERS=""
|
2013-01-13 19:45:01 +02:00
|
|
|
|
2014-11-09 16:44:55 +01:00
|
|
|
# KODI Player implementation to use (default / bcm2835-driver / libfslvpuwrap)
|
|
|
|
|
KODIPLAYER_DRIVER="bcm2835-driver"
|
2014-07-19 00:32:24 +02:00
|
|
|
|
2014-11-09 16:44:55 +01:00
|
|
|
# Modules to install in initramfs for early boot
|
|
|
|
|
INITRAMFS_MODULES=""
|
2012-02-02 22:15:01 +01:00
|
|
|
|
2014-12-09 20:03:35 +01:00
|
|
|
# additional Firmware to use (dvb-firmware, misc-firmware, wlan-firmware)
|
|
|
|
|
# Space separated list is supported,
|
|
|
|
|
# e.g. FIRMWARE="dvb-firmware misc-firmware wlan-firmware"
|
2017-03-03 14:23:04 +00:00
|
|
|
FIRMWARE="misc-firmware wlan-firmware dvb-firmware brcmfmac_sdio-firmware-rpi"
|
2014-12-09 20:03:35 +01:00
|
|
|
|
2017-06-20 11:35:32 -07:00
|
|
|
if [ "$DEVICE" = "Slice" -o "$DEVICE" = "Slice3" ]; then
|
|
|
|
|
FIRMWARE="$FIRMWARE slice-firmware"
|
|
|
|
|
fi
|
|
|
|
|
|
2014-11-09 16:44:55 +01:00
|
|
|
# build and install ATV IR remote support (yes / no)
|
|
|
|
|
ATVCLIENT_SUPPORT="no"
|
2012-02-02 22:15:01 +01:00
|
|
|
|
2014-11-09 16:44:55 +01:00
|
|
|
# build with installer (yes / no)
|
|
|
|
|
INSTALLER_SUPPORT="no"
|
2014-11-09 12:55:21 +01:00
|
|
|
|
2016-11-07 22:16:58 +00:00
|
|
|
# build debug with valgrind (yes / no)
|
|
|
|
|
# Not available for armv6. Increases image size significantly
|
|
|
|
|
VALGRIND="no"
|
|
|
|
|
|
2015-01-13 12:19:58 +02:00
|
|
|
# kernel image name
|
|
|
|
|
KERNEL_NAME="kernel.img"
|
2015-04-11 12:30:23 -07:00
|
|
|
|
|
|
|
|
# additional drivers to install:
|
|
|
|
|
# for a list of additinoal drivers see packages/linux-drivers
|
|
|
|
|
# Space separated list is supported,
|
|
|
|
|
# e.g. ADDITIONAL_DRIVERS="DRIVER1 DRIVER2"
|
2017-02-11 19:47:41 +01:00
|
|
|
ADDITIONAL_DRIVERS="$ADDITIONAL_DRIVERS media_build rpi-cirrus-config"
|
2017-06-20 11:36:05 -07:00
|
|
|
|
|
|
|
|
if [ "$DEVICE" = "Slice" -o "$DEVICE" = "Slice3" ]; then
|
|
|
|
|
ADDITIONAL_DRIVERS="$ADDITIONAL_DRIVERS slice-drivers"
|
|
|
|
|
fi
|