From cbbddff3077a77f95d6b983d46ea5db6369c16fc Mon Sep 17 00:00:00 2001 From: Ian Leonard Date: Tue, 28 Apr 2020 21:48:35 +0000 Subject: [PATCH] distro: organize options This breaks up the LibreELEC distro options file into categories: Distro Information - Information about what the distro is called / does User Interface - Settings that affect how the user will interact with the device (passwords, greetings, name of partitions) Buildsystem Settings - Options affecting the distro toolchain OS Configuration - Options about the base OS, regardless of distro purpose Kodi Settings - All the various knobs for configuring Kodi Addon Settings - Distro addon repo and settings addon Additional Programs / Functions - Programs or Support features to complement the distro's purpose Signed-off-by: Ian Leonard --- distributions/LibreELEC/options | 188 ++++++++++++++++++-------------- 1 file changed, 104 insertions(+), 84 deletions(-) diff --git a/distributions/LibreELEC/options b/distributions/LibreELEC/options index 09da4785e7..a1787c9d41 100644 --- a/distributions/LibreELEC/options +++ b/distributions/LibreELEC/options @@ -1,11 +1,4 @@ -# LTO (Link Time Optimization) support - LTO_SUPPORT="yes" - -# GOLD (Google Linker) support - GOLD_SUPPORT="yes" - -# HARDENING (security relevant linker and compiler flags) support - HARDENING_SUPPORT="no" +### DISTRO INFORMATION ### # Name of the Distro to build (full name, without special characters) DISTRONAME="LibreELEC" @@ -13,6 +6,9 @@ # short project description DESCRIPTION="LibreELEC is a fast and user-friendly Kodi Entertainment Center distribution." + +### USER INTERFACE SETTINGS ### + # Welcome Message for e.g. SSH Server (up to 5 Lines) GREETING0="##############################################" GREETING1="# LibreELEC #" @@ -23,9 +19,57 @@ # Root password to integrate in the target system ROOT_PASSWORD="libreelec" +# Partition labels for USB/SD installation media + DISTRO_BOOTLABEL="LIBREELEC" + DISTRO_DISKLABEL="STORAGE" + + +### BUILDSYSTEM SETTINGS #### + +# LTO (Link Time Optimization) support + LTO_SUPPORT="yes" + +# GOLD (Google Linker) support + GOLD_SUPPORT="yes" + +# HARDENING (security relevant linker and compiler flags) support + HARDENING_SUPPORT="no" + +# Default supported get handlers (archive, git, file etc.) + GET_HANDLER_SUPPORT="archive" + + +### OS CONFIGURATION ### + # Install glibc locales to the build (yes / no) GLIBC_LOCALES="yes" +# additional drivers to install: +# for a list of additional drivers see packages/linux-drivers +# Space separated list is supported, +# e.g. ADDITIONAL_DRIVERS="DRIVER1 DRIVER2" + ADDITIONAL_DRIVERS="RTL8192CU RTL8192DU RTL8192EU RTL8188EU RTL8812AU" + +# Default size of system partition, in MB, eg. 512 + SYSTEM_SIZE=512 + +# Default system partition offset, in sectors, eg. 2048 + SYSTEM_PART_START=8192 + +# build with swap support (yes / no) + SWAP_SUPPORT="yes" + +# swap support enabled per default (yes / no) + SWAP_ENABLED_DEFAULT="no" + +# swapfile size if SWAP_SUPPORT=yes in MB + SWAPFILESIZE="128" + +# debug tty path + DEBUG_TTY="/dev/tty3" + + +### KODI SETTINGS ### # Mediacenter to use (kodi / no) MEDIACENTER="kodi" @@ -64,12 +108,6 @@ # (DVD decryption support in KODI) (yes / no) KODI_DVDCSS_SUPPORT="yes" -# additional drivers to install: -# for a list of additional drivers see packages/linux-drivers -# Space separated list is supported, -# e.g. ADDITIONAL_DRIVERS="DRIVER1 DRIVER2" - ADDITIONAL_DRIVERS="RTL8192CU RTL8192DU RTL8192EU RTL8188EU RTL8812AU" - # build and install bluetooth support (yes / no) BLUETOOTH_SUPPORT="yes" @@ -100,6 +138,40 @@ # build with Samba Client support (mounting SAMBA shares with KODI) (yes / no) KODI_SAMBA_SUPPORT="yes" + +### KODI ADDONS ### + +# Distribution Specific source location + DISTRO_MIRROR="http://sources.libreelec.tv/mirror" + DISTRO_SRC="http://sources.libreelec.tv/$LIBREELEC_VERSION" + +# Addon Server Url + ADDON_SERVER_URL="https://addons.libreelec.tv" + +# set the default addon project + ADDON_PROJECT="${DEVICE:-$PROJECT}" + +# Settings package name - blank if not required + DISTRO_PKG_SETTINGS="LibreELEC-settings" + DISTRO_PKG_SETTINGS_ID="service.libreelec.settings" + + +### ADDITIONAL PROGRAMS / FUNCTIONS ### + +# Testpackages for development (yes / no) + TESTING="no" + +# Configure debug groups (space delimited key=value pairs, with each value comma-delimited) and default group when DEBUG=yes +# Use ! or - prefix to prevent a dependent package from being built with debug. Add + suffix to build dependenencies with debug. + DEBUG_GROUPS="kodi+=kodi+,kodi-platform+,p8-platform+,!mesa" + DEBUG_GROUP_YES="kodi+" + +# wireless daemon to use (wpa_supplicant/iwd) + WIRELESS_DAEMON="wpa_supplicant" + +# build and install iSCSI support - iscsistart (yes / no) + ISCSI_SUPPORT="yes" + # build with NFS support (mounting nfs shares via the OS) (yes / no) NFS_SUPPORT="yes" @@ -123,6 +195,10 @@ # mediacenter also automount internally drives at boottime via udev (yes / no) UDEVIL="yes" +# Support for partitioning and formating disks in initramfs (yes / no) +# This adds support for parted and mkfs.ext3/4 to initramfs for OEM usage + INITRAMFS_PARTED_SUPPORT="no" + # build and install exFAT fuse support (yes / no) EXFAT="yes" @@ -132,6 +208,15 @@ # build and install hfs filesystem utilities (yes / no) HFSTOOLS="yes" +# build and install nano text editor (yes / no) + NANO_EDITOR="yes" + +# cron support (yes / no) + CRON_SUPPORT="yes" + +# build with installer (yes / no) + INSTALLER_SUPPORT="yes" + # Windowmanager to use (fluxbox / none) WINDOWMANAGER="fluxbox" @@ -143,6 +228,9 @@ # build and install remote support (yes / no) REMOTE_SUPPORT="yes" +# IR remote keymaps supported in default config + IR_REMOTE_KEYMAPS="rc6_mce xbox_360 xbox_one" + # build and install Joystick support (yes / no) JOYSTICK_SUPPORT="yes" @@ -152,78 +240,10 @@ # build and install CEC framework support (yes / no) CEC_FRAMEWORK_SUPPORT="no" -# build and install iSCSI support - iscsistart (yes / no) - ISCSI_SUPPORT="yes" - -# Support for partitioning and formating disks in initramfs (yes / no) -# This adds support for parted and mkfs.ext3/4 to initramfs for OEM usage - INITRAMFS_PARTED_SUPPORT="no" - -# build with swap support (yes / no) - SWAP_SUPPORT="yes" - -# swap support enabled per default (yes / no) - SWAP_ENABLED_DEFAULT="no" - -# swapfile size if SWAP_SUPPORT=yes in MB - SWAPFILESIZE="128" +# OEM packages for OEM's (yes / no) + OEM_SUPPORT="no" # additional packages to install: # Space separated list is supported, # e.g. ADDITIONAL_PACKAGES="PACKAGE1 PACKAGE2" ADDITIONAL_PACKAGES="" - -# build with installer (yes / no) - INSTALLER_SUPPORT="yes" - -# Testpackages for development (yes / no) - TESTING="no" - -# OEM packages for OEM's (yes / no) - OEM_SUPPORT="no" - -# build and install nano text editor (yes / no) - NANO_EDITOR="yes" - -# cron support (yes / no) - CRON_SUPPORT="yes" - -# Distribution Specific source location - DISTRO_MIRROR="http://sources.libreelec.tv/mirror" - DISTRO_SRC="http://sources.libreelec.tv/$LIBREELEC_VERSION" - -# Addon Server Url - ADDON_SERVER_URL="https://addons.libreelec.tv" - -# set the default addon project - ADDON_PROJECT="${DEVICE:-$PROJECT}" - -# Default size of system partition, in MB, eg. 512 - SYSTEM_SIZE=512 -# Default system partition offset, in sectors, eg. 2048 - SYSTEM_PART_START=8192 - -# Configure debug groups (space delimited key=value pairs, with each value comma-delimited) and default group when DEBUG=yes -# Use ! or - prefix to prevent a dependent package from being built with debug. Add + suffix to build dependenencies with debug. - DEBUG_GROUPS="kodi+=kodi+,kodi-platform+,p8-platform+,!mesa" - DEBUG_GROUP_YES="kodi+" - -# Default supported get handlers (archive, git, file etc.) - GET_HANDLER_SUPPORT="archive" - -# Partition labels for USB/SD installation media - DISTRO_BOOTLABEL="LIBREELEC" - DISTRO_DISKLABEL="STORAGE" - -# Settings package name - blank if not required - DISTRO_PKG_SETTINGS="LibreELEC-settings" - DISTRO_PKG_SETTINGS_ID="service.libreelec.settings" - -# IR remote keymaps supported in default config - IR_REMOTE_KEYMAPS="rc6_mce xbox_360 xbox_one" - -# debug tty path - DEBUG_TTY="/dev/tty3" - -# wireless daemon to use (wpa_supplicant/iwd) - WIRELESS_DAEMON="wpa_supplicant"