2022-02-05 14:23:32 +00:00
|
|
|
# SPDX-License-Identifier: GPL-2.0
|
|
|
|
# Copyright (C) 2019-present Team LibreELEC (https://libreelec.tv)
|
|
|
|
|
|
|
|
PKG_NAME="image"
|
|
|
|
PKG_LICENSE="GPL"
|
|
|
|
PKG_SITE="https://libreelec.tv"
|
2023-04-21 21:40:02 +00:00
|
|
|
|
2022-02-05 14:23:32 +00:00
|
|
|
PKG_SECTION="virtual"
|
|
|
|
PKG_LONGDESC="Root package used to build and create complete image"
|
|
|
|
|
2023-04-21 21:40:02 +00:00
|
|
|
PKG_DEPENDS_TARGET="toolchain squashfs-tools:host dosfstools:host fakeroot:host kmod:host \
|
|
|
|
mtools:host populatefs:host libc gcc linux linux-drivers linux-firmware \
|
2023-12-19 17:34:14 +00:00
|
|
|
${BOOTLOADER} busybox umtprd util-linux usb-modeswitch unzip poppler jq socat \
|
2023-04-23 19:58:11 +00:00
|
|
|
p7zip file initramfs grep wget util-linux zstd lz4 empty lzo libzip \
|
2023-04-23 00:19:52 +00:00
|
|
|
bash coreutils modules system-utils autostart quirks powerstate gnupg \
|
2023-07-24 12:04:29 +00:00
|
|
|
gzip six lynx xmlstarlet vim pyudev dialog dbus-python network jelos"
|
2023-04-21 21:40:02 +00:00
|
|
|
|
2023-04-23 00:19:52 +00:00
|
|
|
PKG_UI="emulationstation es-themes jslisten textviewer"
|
2023-04-21 21:40:02 +00:00
|
|
|
|
|
|
|
PKG_UI_TOOLS="fileman fbgrab"
|
|
|
|
|
2023-09-03 14:36:33 +00:00
|
|
|
PKG_GRAPHICS="imagemagick"
|
2023-04-23 19:58:11 +00:00
|
|
|
|
2023-10-17 01:34:51 +00:00
|
|
|
PKG_FONTS="corefonts"
|
2023-04-23 00:19:52 +00:00
|
|
|
|
2023-07-15 23:22:41 +00:00
|
|
|
PKG_MULTIMEDIA="ffmpeg vlc mpv gmu"
|
2023-04-21 21:40:02 +00:00
|
|
|
|
2023-06-12 21:23:01 +00:00
|
|
|
PKG_SOUND="espeak libao"
|
2023-04-23 00:19:52 +00:00
|
|
|
|
|
|
|
PKG_SYNC="synctools"
|
|
|
|
|
2023-04-23 01:44:25 +00:00
|
|
|
PKG_TOOLS="patchelf git ectool make i2c-tools evtest powertop"
|
|
|
|
|
|
|
|
PKG_DEBUG="debug"
|
2023-04-21 21:40:02 +00:00
|
|
|
|
|
|
|
if [ "${BASE_ONLY}" = "true" ]
|
|
|
|
then
|
2023-04-24 16:19:57 +00:00
|
|
|
EMULATION_DEVICE=no
|
|
|
|
ENABLE_32BIT=no
|
2023-04-24 11:31:26 +00:00
|
|
|
PKG_DEPENDS_TARGET+=" ${PKG_TOOLS} ${PKG_FONTS}"
|
2023-04-21 21:40:02 +00:00
|
|
|
else
|
2023-08-11 22:17:56 +00:00
|
|
|
PKG_DEPENDS_TARGET+=" ${PKG_TOOLS} ${PKG_FONTS} ${PKG_SOUND} ${PKG_SYNC} ${PKG_GRAPHICS} ${PKG_UI} ${PKG_UI_TOOLS} ${PKG_MULTIMEDIA} misc-packages"
|
2023-04-23 00:19:52 +00:00
|
|
|
|
|
|
|
# GL demos and tools
|
2024-01-15 14:44:53 +00:00
|
|
|
[ "${OPENGL_SUPPORT}" = "yes" ] && PKG_DEPENDS_TARGET+=" mesa-demos glmark2"
|
|
|
|
|
|
|
|
# Weston kiosk shell dpms support.
|
|
|
|
[ "${DISPLAYSERVER}" = "wl" ] && PKG_DEPENDS_TARGET+=" weston-kiosk-shell-dpms"
|
2023-04-23 00:19:52 +00:00
|
|
|
|
|
|
|
# Sound support
|
2023-08-11 22:17:56 +00:00
|
|
|
[ "${PIPEWIRE_SUPPORT}" = "yes" ] && PKG_DEPENDS_TARGET+=" alsa pulseaudio pipewire wireplumber"
|
2023-10-24 15:26:57 +00:00
|
|
|
|
2023-04-21 21:40:02 +00:00
|
|
|
fi
|
|
|
|
|
|
|
|
# Device is an emulation focused device
|
|
|
|
[ "${EMULATION_DEVICE}" = "yes" ] && PKG_DEPENDS_TARGET+=" emulators gamesupport"
|
|
|
|
|
|
|
|
# Add support for containers
|
2023-04-23 00:19:52 +00:00
|
|
|
[ "${CONTAINER_SUPPORT}" = "yes" ] && PKG_DEPENDS_TARGET+=" ${PKG_TOOLS} docker"
|
2023-04-21 21:40:02 +00:00
|
|
|
|
2023-04-24 11:31:26 +00:00
|
|
|
[ "${DEBUG_SUPPORT}" = "yes" ] && PKG_DEPENDS_TARGET+=" ${PKG_DEBUG}"
|
|
|
|
|
2023-04-21 21:40:02 +00:00
|
|
|
# 32Bit package support
|
|
|
|
[ "${ENABLE_32BIT}" == true ] && PKG_DEPENDS_TARGET+=" lib32"
|
|
|
|
|
2022-09-03 10:59:08 +00:00
|
|
|
# Architecture specific tools
|
2023-04-23 00:19:52 +00:00
|
|
|
[ "${ARCH}" = "x86_64" ] && PKG_DEPENDS_TARGET+=" ryzenadj lm_sensors dmidecode"
|
2022-02-05 14:23:32 +00:00
|
|
|
|
|
|
|
# Automounter support
|
2022-09-03 10:59:08 +00:00
|
|
|
[ "${UDEVIL}" = "yes" ] && PKG_DEPENDS_TARGET+=" udevil"
|
2022-02-05 14:23:32 +00:00
|
|
|
|
|
|
|
# EXFAT support
|
2022-09-03 10:59:08 +00:00
|
|
|
[ "${EXFAT}" = "yes" ] && PKG_DEPENDS_TARGET+=" exfat exfatprogs"
|
2022-02-05 14:23:32 +00:00
|
|
|
|
|
|
|
# NTFS 3G support
|
2022-09-03 10:59:08 +00:00
|
|
|
[ "${NTFS3G}" = "yes" ] && PKG_DEPENDS_TARGET+=" ntfs-3g_ntfsprogs"
|
2022-02-05 14:23:32 +00:00
|
|
|
|
|
|
|
# Virtual image creation support
|
2022-09-03 10:59:08 +00:00
|
|
|
[ "${PROJECT}" = "Generic" ] && PKG_DEPENDS_TARGET+=" virtual"
|
2022-02-05 14:23:32 +00:00
|
|
|
|
|
|
|
# Installer support
|
2022-09-03 10:59:08 +00:00
|
|
|
[ "${INSTALLER_SUPPORT}" = "yes" ] && PKG_DEPENDS_TARGET+=" installer"
|
2022-02-05 14:23:32 +00:00
|
|
|
|
|
|
|
# Devtools... (not for Release)
|
2022-09-03 10:59:08 +00:00
|
|
|
[ "${TESTING}" = "yes" ] && PKG_DEPENDS_TARGET+=" testing"
|
2022-02-05 14:23:32 +00:00
|
|
|
|
|
|
|
# OEM packages
|
2022-09-03 10:59:08 +00:00
|
|
|
[ "${OEM_SUPPORT}" = "yes" ] && PKG_DEPENDS_TARGET+=" oem"
|
2022-02-05 14:23:32 +00:00
|
|
|
|
|
|
|
# htop
|
2022-09-03 10:59:08 +00:00
|
|
|
[ "${HTOP_TOOL}" = "yes" ] && PKG_DEPENDS_TARGET+=" htop"
|
2022-02-05 14:23:32 +00:00
|
|
|
|
|
|
|
true
|