mirror of
https://github.com/libretro/Lakka-LibreELEC.git
synced 2024-11-24 05:36:17 +00:00
59f13acd9a
update to 10.95.1 - LE11 Beta2
53 lines
1.8 KiB
Makefile
53 lines
1.8 KiB
Makefile
# SPDX-License-Identifier: GPL-2.0
|
|
# Copyright (C) 2019-present Team LibreELEC (https://libreelec.tv)
|
|
|
|
PKG_NAME="brcmfmac_sdio-firmware"
|
|
PKG_VERSION="c70355f9ec6d015b91a5c3199aa08b433e2f7caf"
|
|
PKG_SHA256="1a17f203d77590a1492e8fb156091caafcdec1c66b3df9152f42414892fa6471"
|
|
PKG_LICENSE="GPL"
|
|
PKG_SITE="https://github.com/LibreELEC/brcmfmac_sdio-firmware"
|
|
PKG_URL="https://github.com/LibreELEC/brcmfmac_sdio-firmware/archive/${PKG_VERSION}.tar.gz"
|
|
PKG_LONGDESC="Broadcom SDIO firmware used with LibreELEC"
|
|
PKG_TOOLCHAIN="manual"
|
|
|
|
post_makeinstall_target() {
|
|
FW_TARGET_DIR=${INSTALL}/$(get_full_firmware_dir)
|
|
|
|
if find_file_path firmwares/${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}/brcm/${fwfile})
|
|
cp -Lv ${PKG_BUILD}/${fwfile} ${FW_TARGET_DIR}/brcm/${fwfile}
|
|
else
|
|
echo "ERROR: Firmware file ${fwfile} does not exist - aborting"
|
|
exit 1
|
|
fi
|
|
done
|
|
done < ${fwlist}
|
|
done
|
|
|
|
mkdir -p ${INSTALL}/usr/bin
|
|
cp ${PKG_DIR}/scripts/brcmfmac-firmware-setup ${INSTALL}/usr/bin
|
|
}
|
|
|
|
post_install() {
|
|
if [ "${DISTRO}" = "Lakka" ]; then
|
|
sed -i ${INSTALL}/usr/lib/systemd/system/brcmfmac-firmware.service \
|
|
-e "s|kodi\.service|retroarch.service|g"
|
|
fi
|
|
enable_service brcmfmac-firmware.service
|
|
}
|