mirror of
https://github.com/libretro/Lakka-LibreELEC.git
synced 2024-11-28 02:44:37 +00:00
c16def7032
* Switch: it builds * Switch: Use udev to finalize usb gadget to save from systemd looping service restart until cable connected. * Switch: Update kernel stuff again * Switch: Downgrade Alsa packages to version in 4.x tree * Joycond: Update Switch version * Switch: Minor fixes * LibreELEC: Fix a few broken files from upstream pull * Switch: Fix LibreELEC build. * Switch: Update bootloader stuff * L4T: FFMPEG: Add support for nvv4l2 decoder/encoder * FFMPEG: Add back encoder support for game recording in retroarch * FFMPEG: revert a few changes, and add support for vulkan.
108 lines
4.0 KiB
Makefile
108 lines
4.0 KiB
Makefile
# SPDX-License-Identifier: GPL-2.0-or-later
|
|
# Copyright (C) 2009-2016 Stephan Raue (stephan@openelec.tv)
|
|
# Copyright (C) 2018-present Team LibreELEC (https://libreelec.tv)
|
|
|
|
PKG_NAME="util-linux"
|
|
PKG_VERSION="2.36.1"
|
|
PKG_SHA256="09fac242172cd8ec27f0739d8d192402c69417617091d8c6e974841568f37eed"
|
|
PKG_LICENSE="GPL"
|
|
PKG_URL="http://www.kernel.org/pub/linux/utils/util-linux/v$(get_pkg_version_maj_min)/${PKG_NAME}-${PKG_VERSION}.tar.xz"
|
|
PKG_DEPENDS_HOST="ccache:host autoconf:host automake:host intltool:host libtool:host pkg-config:host"
|
|
PKG_DEPENDS_TARGET="toolchain"
|
|
PKG_DEPENDS_INIT="toolchain"
|
|
PKG_LONGDESC="A large variety of low-level system utilities that are necessary for a Linux system to function."
|
|
PKG_TOOLCHAIN="autotools"
|
|
PKG_BUILD_FLAGS="+pic:host"
|
|
|
|
UTILLINUX_CONFIG_DEFAULT="--disable-gtk-doc \
|
|
--disable-nls \
|
|
--disable-rpath \
|
|
--enable-tls \
|
|
--enable-chsh-only-listed \
|
|
--disable-bash-completion \
|
|
--disable-colors-default \
|
|
--disable-pylibmount \
|
|
--disable-pg-bell \
|
|
--disable-use-tty-group \
|
|
--disable-makeinstall-chown \
|
|
--disable-makeinstall-setuid \
|
|
--with-gnu-ld \
|
|
--without-selinux \
|
|
--without-audit \
|
|
--without-udev \
|
|
--without-ncurses \
|
|
--without-ncursesw \
|
|
--without-readline \
|
|
--without-slang \
|
|
--without-tinfo \
|
|
--without-utempter \
|
|
--without-util \
|
|
--without-libz \
|
|
--without-user \
|
|
--without-systemd \
|
|
--without-smack \
|
|
--without-python \
|
|
--without-systemdsystemunitdir"
|
|
|
|
PKG_CONFIGURE_OPTS_TARGET="${UTILLINUX_CONFIG_DEFAULT} \
|
|
--disable-all-programs \
|
|
--enable-libuuid \
|
|
--enable-libblkid \
|
|
--enable-libmount \
|
|
--enable-libsmartcols \
|
|
--enable-losetup \
|
|
--enable-fsck \
|
|
--enable-fstrim \
|
|
--enable-blkid \
|
|
--enable-lscpu"
|
|
|
|
if [ "${SWAP_SUPPORT}" = "yes" ]; then
|
|
PKG_CONFIGURE_OPTS_TARGET+=" --enable-swapon"
|
|
fi
|
|
|
|
PKG_CONFIGURE_OPTS_HOST="--enable-static \
|
|
--disable-shared \
|
|
--enable-all-programs \
|
|
${UTILLINUX_CONFIG_DEFAULT} \
|
|
--enable-uuidgen \
|
|
--enable-libuuid"
|
|
|
|
PKG_CONFIGURE_OPTS_INIT="${UTILLINUX_CONFIG_DEFAULT} \
|
|
--disable-all-programs \
|
|
--enable-libblkid \
|
|
--enable-libmount \
|
|
--enable-fsck"
|
|
|
|
if [ "${DEVICE}" = "Switch" ]; then
|
|
PKG_CONFIGURE_OPTS_TARGET=${PKG_CONFIGURE_OPTS_TARGET/--disable-all-programs/}
|
|
fi
|
|
|
|
if [ "${INITRAMFS_PARTED_SUPPORT}" = "yes" ]; then
|
|
PKG_CONFIGURE_OPTS_INIT+=" --enable-mkfs --enable-libuuid"
|
|
fi
|
|
|
|
post_makeinstall_target() {
|
|
if [ "${SWAP_SUPPORT}" = "yes" ]; then
|
|
mkdir -p ${INSTALL}/usr/lib/libreelec
|
|
cp -PR ${PKG_DIR}/scripts/mount-swap ${INSTALL}/usr/lib/libreelec
|
|
|
|
mkdir -p ${INSTALL}/etc
|
|
cat ${PKG_DIR}/config/swap.conf | \
|
|
sed -e "s,@SWAPFILESIZE@,${SWAPFILESIZE},g" \
|
|
-e "s,@SWAP_ENABLED_DEFAULT@,${SWAP_ENABLED_DEFAULT},g" \
|
|
> ${INSTALL}/etc/swap.conf
|
|
fi
|
|
|
|
if [ "${DEVICE}" = "Switch" ]; then
|
|
rm -r ${INSTALL}/usr/bin/*
|
|
mv ${INSTALL}/usr/sbin/agetty ${INSTALL}/usr/bin/
|
|
fi
|
|
|
|
}
|
|
|
|
post_install () {
|
|
if [ "${SWAP_SUPPORT}" = "yes" ]; then
|
|
enable_service swap.service
|
|
fi
|
|
}
|