mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-24 11:16:51 +00:00
initramfs: move all :init dependencies to initramfs:init
This allows us to automatically add them to PKG_NEED_UNPACK and add further logic based on initramfs:init.
This commit is contained in:
parent
408fce38ab
commit
6e0d4e4ca2
@ -7,18 +7,23 @@ PKG_VERSION=""
|
||||
PKG_LICENSE="GPL"
|
||||
PKG_SITE="http://www.openelec.tv"
|
||||
PKG_URL=""
|
||||
PKG_DEPENDS_TARGET="toolchain libc:init busybox:init plymouth-lite:init util-linux:init e2fsprogs:init dosfstools:init fakeroot:host terminus-font:init"
|
||||
PKG_DEPENDS_INIT="libc:init busybox:init plymouth-lite:init util-linux:init e2fsprogs:init dosfstools:init terminus-font:init"
|
||||
PKG_DEPENDS_TARGET="toolchain fakeroot:host initramfs:init"
|
||||
PKG_SECTION="virtual"
|
||||
PKG_LONGDESC="Metapackage for installing initramfs"
|
||||
|
||||
if [ "$ISCSI_SUPPORT" = yes ]; then
|
||||
PKG_DEPENDS_TARGET="$PKG_DEPENDS_TARGET open-iscsi:init"
|
||||
PKG_DEPENDS_INIT+=" open-iscsi:init"
|
||||
fi
|
||||
|
||||
if [ "$INITRAMFS_PARTED_SUPPORT" = yes ]; then
|
||||
PKG_DEPENDS_TARGET="$PKG_DEPENDS_TARGET parted:init"
|
||||
PKG_DEPENDS_INIT+=" parted:init"
|
||||
fi
|
||||
|
||||
for i in $PKG_DEPENDS_INIT; do
|
||||
PKG_NEED_UNPACK+=" $(get_pkg_directory $i)"
|
||||
done
|
||||
|
||||
post_install() {
|
||||
( cd $BUILD/initramfs
|
||||
if [ "$TARGET_ARCH" = "x86_64" ]; then
|
||||
|
Loading…
x
Reference in New Issue
Block a user