2022-02-05 14:23:32 +00:00
|
|
|
# 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."
|
|
|
|
|
2023-02-24 13:53:43 +00:00
|
|
|
PKG_NEED_UNPACK="${PROJECT_DIR}/${PROJECT}/bootloader"
|
|
|
|
[ -n "${DEVICE}" ] && PKG_NEED_UNPACK+=" ${PROJECT_DIR}/${PROJECT}/devices/${DEVICE}/bootloader"
|
2022-02-05 14:23:32 +00:00
|
|
|
|
|
|
|
make_target() {
|
|
|
|
if find_dir_path bootloader/scripts ; then
|
2023-06-19 10:31:21 +00:00
|
|
|
for src in ${FOUND_PATH}/*.src ; do
|
2023-02-24 13:53:43 +00:00
|
|
|
mkimage -A ${TARGET_KERNEL_ARCH} -O linux -T script -C none -d "$src" "$(basename $src .src)"
|
2022-02-05 14:23:32 +00:00
|
|
|
done
|
|
|
|
fi
|
|
|
|
}
|
|
|
|
|
|
|
|
makeinstall_target() {
|
2023-02-24 13:53:43 +00:00
|
|
|
mkdir -p ${INSTALL}/usr/share/bootloader
|
|
|
|
cp -a ${PKG_BUILD}/* ${INSTALL}/usr/share/bootloader/
|
2022-02-05 14:23:32 +00:00
|
|
|
}
|