mirror of
https://github.com/libretro/Lakka-LibreELEC.git
synced 2025-07-17 02:44:49 +00:00
this brings the branch to a state, where vulkan works Revert "mesa: update to 24.3.4" (75f30be9e6
) Revert "ply: add python-ply package" (51611919f2
) Revert "wayland: fix PKG_DEPENDS_HOST" (5102cb8eee
) Revert "wayland: update to 1.23.1" (f96ac43c3b
) Revert "wayland: update to 1.23.0" (8957b5c8ba
) Revert "wayland-protocols: update to 1.39" (1a1531bbb0
) Revert "Update spirv-headers spirv-llvm-translator spirv-tools glslang llvm packages" (e907f3cfdf
) Revert "kmod: update to 33" (1d4adfcf3c
) Revert "LLVM 19 (#2019)" (3d815fe80b
) Revert "Rust 1.83 (#2020)" (501a533c12
) Revert "spirv-tools: move package.mk from vulkan to graphics" (71cb84343a
) Revert "spirv-headers: move package.mk from vulkan to graphics" (49bf112b30
) Revert "pycparser: initial package" (cfbf6d2119
) Revert "glslang: update unpack" (d4641dc629
) Revert "volk: update to 1.3.295" (7ef40616d0
) Revert "llvm: include build of llvm-spirv" (128aac7324
) Revert "json-c: fix package url" (6254ec9c17
) Revert "xxHash: fix toolchain target directory" (2bde0c9df9
) Revert "xxHash: initial package" (17059b0e40
) Revert "Remove kmsro references" (22d233fa1d
) Revert "pyyaml: initial package" (09cb87fcd7
) Revert "mesa: clean no-op" (5a63fed4d1
) Revert "libclc: initial package" (83436943f9
) Revert "libdrm: update to 2.4.124" (efbc571824
) Revert "libdrm: update to 2.4.123" (ae2cecd5c3
) Revert "cleanup packages: various" (4d0594607e
) Revert "libdrm: update to 2.4.122" (8f69530bf7
) Revert "libdrm: update to 2.4.121" (b693dfd865
) Revert "libdrm: enable host build" (6b3137c54c
) Revert "spirv-llvm-translator: update to 18.1.4" (b147453542
) Revert "spirv-llvm-translator: update to 18.1.3" (56ae7902ee
) Revert "spirv-llvm-translator: update to 18.1.2" (633a7dace8
) Revert "spirv-llvm-translator: update to 18.1.1" (5b44164ee5
) Revert "spirv-llvm-translator: initial package" (b2062cb474
) Revert "mesa: update to 24.3.1" (719c646240
) Revert "Mesa: Add missing bracket" (a90097eade
) Revert "Fix libxv package" (6a895e4e6a
) Revert "mesa: update to 24.3.0" (d24ac0c086
) Revert "mesa v24.2.7" (721e92ae82
) Revert "mesa: update to 24.2.4" (e551d0cf1d
) Revert "mesa: update to 24.2.3" (b9e314a054
) Revert "mesa: update to 24.2.2" (bc9c2d0633
) Revert "mesa: update to 24.2.1" (0c731fb694
) Revert "mesa: update to 24.2.0" (6f8a7e2e60
) Revert "mesa v24.1.5" (211ce11e84
) Revert "mesa: update to 24.1.0" (e66319dea5
) Revert "Eliminate wiringpi 404" (f6a989033e
)
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="d4382f99141ef7bc0a9a9e65ab5fa3d90e8fe968"
|
|
PKG_SHA256="2bbe39941c97ae3713f219002e5d6d692e3d47fc167fe642be1d9f2f014d4f05"
|
|
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
|
|
}
|