mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-08-02 07:27:49 +00:00
kernel-firmware: unpack with copy-firmware.sh
This commit is contained in:
parent
837464c55e
commit
b0f54dfa68
@ -11,6 +11,18 @@ PKG_NEED_UNPACK="${PROJECT_DIR}/${PROJECT}/packages/${PKG_NAME} ${PROJECT_DIR}/$
|
||||
PKG_LONGDESC="kernel-firmware: kernel related firmware"
|
||||
PKG_TOOLCHAIN="manual"
|
||||
|
||||
configure_package() {
|
||||
PKG_FW_SOURCE=${PKG_BUILD}/.copied-firmware
|
||||
}
|
||||
|
||||
post_patch() {
|
||||
(
|
||||
cd ${PKG_BUILD}
|
||||
mkdir -p "${PKG_FW_SOURCE}"
|
||||
./copy-firmware.sh --verbose "${PKG_FW_SOURCE}"
|
||||
)
|
||||
}
|
||||
|
||||
# Install additional miscellaneous drivers
|
||||
makeinstall_target() {
|
||||
FW_TARGET_DIR=$INSTALL/$(get_full_firmware_dir)
|
||||
@ -34,16 +46,16 @@ makeinstall_target() {
|
||||
[[ ${fwline} =~ ^[[:space:]] ]] && continue
|
||||
|
||||
while read -r fwfile; do
|
||||
[ -d "${PKG_BUILD}/${fwfile}" ] && continue
|
||||
[ -d "${PKG_FW_SOURCE}/${fwfile}" ] && continue
|
||||
|
||||
if [ -f "${PKG_BUILD}/${fwfile}" ]; then
|
||||
if [ -f "${PKG_FW_SOURCE}/${fwfile}" ]; then
|
||||
mkdir -p "$(dirname "${FW_TARGET_DIR}/${fwfile}")"
|
||||
cp -Lv "${PKG_BUILD}/${fwfile}" "${FW_TARGET_DIR}/${fwfile}"
|
||||
cp -Lv "${PKG_FW_SOURCE}/${fwfile}" "${FW_TARGET_DIR}/${fwfile}"
|
||||
else
|
||||
echo "ERROR: Firmware file ${fwfile} does not exist - aborting"
|
||||
exit 1
|
||||
fi
|
||||
done <<< "$(cd ${PKG_BUILD} && eval "find "${fwline}"")"
|
||||
done <<< "$(cd ${PKG_FW_SOURCE} && eval "find "${fwline}"")"
|
||||
done < "${fwlist}"
|
||||
done
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user