mirror of
https://github.com/LibreELEC/LibreELEC.tv
synced 2025-09-24 19:46:01 +07:00
kernel-firmware: avoid installing sdio firmware if kernel not configured
This commit is contained in:
@@ -43,8 +43,10 @@ makeinstall_target() {
|
||||
done < ${fwlist}
|
||||
done
|
||||
|
||||
# The following files are RPi specific and installed by brcmfmac_sdio-firmware-rpi instead
|
||||
if listcontains "${FIRMWARE}" "brcmfmac_sdio-firmware-rpi"; then
|
||||
# The following files are RPi specific and installed by brcmfmac_sdio-firmware-rpi instead.
|
||||
# They are also not required at all if the kernel is not suitably configured.
|
||||
if listcontains "${FIRMWARE}" "brcmfmac_sdio-firmware-rpi" || \
|
||||
! grep -q "^CONFIG_BRCMFMAC_SDIO=y" $(kernel_config_path); then
|
||||
rm -fr $FW_TARGET_DIR/brcm/brcmfmac43430*-sdio.*
|
||||
rm -fr $FW_TARGET_DIR/brcm/brcmfmac43455*-sdio.*
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user