mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-29 05:36:47 +00:00
Merge pull request #3515 from kszaq/topic/u-boot-script
u-boot-script: add package to compile env scripts for u-boot
This commit is contained in:
commit
da8ec75a11
25
packages/tools/u-boot-script/package.mk
Normal file
25
packages/tools/u-boot-script/package.mk
Normal file
@ -0,0 +1,25 @@
|
||||
# SPDX-License-Identifier: GPL-2.0
|
||||
# Copyright (C) 2018-present Team LibreELEC (https://libreelec.tv)
|
||||
|
||||
PKG_NAME="u-boot-script"
|
||||
PKG_VERSION="1.0"
|
||||
PKG_LICENSE="GPL"
|
||||
PKG_DEPENDS_TARGET="u-boot-tools:host"
|
||||
PKG_TOOLCHAIN="manual"
|
||||
PKG_LONGDESC="Compile scripts for u-boot environment."
|
||||
|
||||
PKG_NEED_UNPACK="$PROJECT_DIR/$PROJECT/bootloader"
|
||||
[ -n "$DEVICE" ] && PKG_NEED_UNPACK+=" $PROJECT_DIR/$PROJECT/devices/$DEVICE/bootloader"
|
||||
|
||||
make_target() {
|
||||
if find_dir_path bootloader/scripts ; then
|
||||
for src in $FOUND_PATH/*.src ; do
|
||||
mkimage -A $TARGET_KERNEL_ARCH -O linux -T script -C none -d "$src" "$(basename $src .src)"
|
||||
done
|
||||
fi
|
||||
}
|
||||
|
||||
makeinstall_target() {
|
||||
mkdir -p $INSTALL/usr/share/bootloader
|
||||
cp -a $PKG_BUILD/* $INSTALL/usr/share/bootloader/
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user