mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-31 14:37:59 +00:00
firmware: add meson-firmware package
This commit is contained in:
parent
6a80fdd4db
commit
0be7dce87d
1
packages/linux-firmware/meson-firmware/firmwares/any.dat
Normal file
1
packages/linux-firmware/meson-firmware/firmwares/any.dat
Normal file
@ -0,0 +1 @@
|
|||||||
|
meson/*
|
43
packages/linux-firmware/meson-firmware/package.mk
Normal file
43
packages/linux-firmware/meson-firmware/package.mk
Normal file
@ -0,0 +1,43 @@
|
|||||||
|
# SPDX-License-Identifier: GPL-2.0
|
||||||
|
# Copyright (C) 2018-present Team LibreELEC (https://libreelec.tv)
|
||||||
|
|
||||||
|
PKG_NAME="meson-firmware"
|
||||||
|
PKG_VERSION="edd24b481293b93814494508cd4952b67f15acb3"
|
||||||
|
PKG_SHA256="2092c71a5eb106725784dadcc2cfea7be60254539a41fafebf311235283259e4"
|
||||||
|
PKG_LICENSE="GPLv2"
|
||||||
|
PKG_SITE="https://github.com/LibreELEC/meson-firmware"
|
||||||
|
PKG_URL="https://github.com/LibreELEC/meson-firmware/archive/$PKG_VERSION.tar.gz"
|
||||||
|
PKG_DEPENDS_TARGET="toolchain"
|
||||||
|
PKG_LONGDESC="meson-firmware: Amlogic microcode firmware for the V4L2 mem2mem vdec driver"
|
||||||
|
PKG_TOOLCHAIN="manual"
|
||||||
|
|
||||||
|
makeinstall_target() {
|
||||||
|
FW_TARGET_DIR=$INSTALL/$(get_full_firmware_dir)
|
||||||
|
|
||||||
|
if find_file_path config/$PKG_NAME.dat; then
|
||||||
|
FW_LISTS="${FOUND_PATH}"
|
||||||
|
else
|
||||||
|
FW_LISTS="${PKG_DIR}/firmwares/any.dat ${PKG_DIR}/firmwares/${TARGET_ARCH}.dat"
|
||||||
|
fi
|
||||||
|
|
||||||
|
for fwlist in ${FW_LISTS}; do
|
||||||
|
[ -f ${fwlist} ] || continue
|
||||||
|
while read -r fwline; do
|
||||||
|
[ -z "${fwline}" ] && continue
|
||||||
|
[[ ${fwline} =~ ^#.* ]] && continue
|
||||||
|
[[ ${fwline} =~ ^[[:space:]] ]] && continue
|
||||||
|
|
||||||
|
for fwfile in $(cd ${PKG_BUILD} && eval "find ${fwline}"); do
|
||||||
|
[ -d ${PKG_BUILD}/${fwfile} ] && continue
|
||||||
|
|
||||||
|
if [ -f ${PKG_BUILD}/${fwfile} ]; then
|
||||||
|
mkdir -p $(dirname ${FW_TARGET_DIR}/${fwfile})
|
||||||
|
cp -Lv ${PKG_BUILD}/${fwfile} ${FW_TARGET_DIR}/${fwfile}
|
||||||
|
else
|
||||||
|
echo "ERROR: Firmware file ${fwfile} does not exist - aborting"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
done < ${fwlist}
|
||||||
|
done
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user