mirror of
https://github.com/libretro/Lakka-LibreELEC.git
synced 2025-04-02 10:41:46 -04:00
* switch optimizations to -03 with lto * Update switch-bootloader to use uenv.txt, and update coreboot for seemless display from hekate, drop toram.
112 lines
3.4 KiB
Text
112 lines
3.4 KiB
Text
################################################################################
|
|
# setup system defaults
|
|
################################################################################
|
|
|
|
# The TARGET_CPU variable controls which processor should be targeted for
|
|
# generated code.
|
|
case $TARGET_ARCH in
|
|
aarch64)
|
|
TARGET_CPU="cortex-a57"
|
|
TARGET_CPU_FLAGS="+crypto+crc+fp+simd"
|
|
TARGET_FEATURES="64bit neon"
|
|
;;
|
|
*)
|
|
;;
|
|
esac
|
|
|
|
# Bootloader to use (syslinux / u-boot / bcm2835-bootloader)
|
|
BOOTLOADER="u-boot"
|
|
|
|
# Kernel target for u-boot (default 'uImage' if BOOTLOADER=u-boot) (uImage / zImage)
|
|
KERNEL_TARGET="Image"
|
|
|
|
# Kernel extra targets to build
|
|
KERNEL_UBOOT_EXTRA_TARGET=""
|
|
|
|
# Additional kernel make parameters (for example to specify the u-boot loadaddress)
|
|
KERNEL_MAKE_EXTRACMD="dtbs"
|
|
|
|
################################################################################
|
|
# setup build defaults
|
|
################################################################################
|
|
|
|
# Project CFLAGS
|
|
PROJECT_CFLAGS="-O3"
|
|
|
|
# SquashFS compression method (gzip / lzo / xz)
|
|
SQUASHFS_COMPRESSION="lzo"
|
|
|
|
################################################################################
|
|
# setup project defaults
|
|
################################################################################
|
|
|
|
LIBDRM_CONFIG="--enable-tegra-experimental-api"
|
|
|
|
# build and install ALSA Audio support (yes / no)
|
|
ALSA_SUPPORT="yes"
|
|
|
|
# build and install PulseAudio support (yes / no)
|
|
PULSEAUDIO_SUPPORT="yes"
|
|
|
|
# OpenGL(X) implementation to use (no / Mesa)
|
|
OPENGLES="no"
|
|
|
|
# include uvesafb support (yes / no)
|
|
UVESAFB_SUPPORT="no"
|
|
|
|
# Displayserver to use (x11 / no)
|
|
DISPLAYSERVER="x11"
|
|
|
|
# Windowmanager to use (ratpoison / fluxbox / none)
|
|
WINDOWMANAGER="none"
|
|
|
|
# Xorg Graphic drivers to use (all / i915,i965,r200,r300,r600,nvidia,nouveau)
|
|
# Space separated list is supported,
|
|
# e.g. GRAPHIC_DRIVERS="i915 i965 r300 r600 radeonsi nvidia nouveau"
|
|
GRAPHIC_DRIVERS="nouveau tegra"
|
|
|
|
# KODI Player implementation to use (default / bcm2835-driver / libfslvpuwrap / libamcodec)
|
|
KODIPLAYER_DRIVER="mesa"
|
|
|
|
# Modules to install in initramfs for early boot
|
|
INITRAMFS_MODULES="font softcursor bitblit fbcon"
|
|
|
|
# OEM packages for OEM's (yes / no)
|
|
OEM_SUPPORT="yes"
|
|
|
|
# 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"
|
|
ADDITIONAL_DRIVERS=""
|
|
|
|
# additional Firmware to use (dvb-firmware, misc-firmware, wlan-firmware)
|
|
# Space separated list is supported,
|
|
# e.g. FIRMWARE="dvb-firmware misc-firmware wlan-firmware"
|
|
FIRMWARE="misc-firmware wlan-firmware dvb-firmware"
|
|
|
|
# build and install ATV IR remote support (yes / no)
|
|
ATVCLIENT_SUPPORT="no"
|
|
|
|
# Amlogic IR remote support (yes / no)
|
|
AMREMOTE_SUPPORT="no"
|
|
|
|
# build with installer (yes / no)
|
|
INSTALLER_SUPPORT="no"
|
|
|
|
# kernel image name
|
|
KERNEL_NAME="KERNEL"
|
|
|
|
# override some playlist core assignation
|
|
RA_PLAYLIST_CORES="${RA_PLAYLIST_CORES//parallel_n64/mupen64plus}"
|
|
|
|
if [ "$DISTRO" = "Lakka" ]; then
|
|
DRIVER_ADDONS=""
|
|
fi
|
|
|
|
# disable arm target
|
|
|
|
if [ "$ARCH" == "arm" ]; then
|
|
echo "Error: 32bit ARM arch is not supported by L4T"
|
|
exit 1
|
|
fi
|