kernel-firmware: use project/device firmware if configured, otherwise use common default

This commit is contained in:
MilhouseVH 2018-03-03 20:48:31 +00:00
parent 3ef4fc924a
commit 7ea3bc93bf
6 changed files with 5 additions and 28 deletions

View File

@ -1,21 +1,3 @@
#aarch64
htc_7010.fw
htc_9271.fw
ath3k-1.fw
ar5523.bin
carl9170-1.fw
mt7601u.bin
rt2870.bin
rt73.bin
vntwusb.fw
ath6k/AR6004/hw1.?/bdata.bin
ath9k_htc/*
brcm/*
rtl_bt/*_fw.bin
rtlwifi/*
ath10k/*
ctefx.bin
lbtf_usb.bin

View File

@ -35,16 +35,11 @@ PKG_TOOLCHAIN="manual"
makeinstall_target() {
FW_TARGET_DIR=$INSTALL/$(get_full_firmware_dir)
# Install all firmwares found in hierarchy
FW_LISTS=
for dir in ${PKG_DIR} \
${PROJECT_DIR}/${PROJECT}/packages/${PKG_NAME} \
${PROJECT_DIR}/${PROJECT}/devices/${DEVICE}/packages/${PKG_NAME} \
; do
for fmware in any.dat ${TARGET_ARCH}.dat; do
[ -f "${dir}/firmwares/${fmware}" ] && FW_LISTS+=" ${dir}/firmwares/${fmware}"
done
done
if find_file_path firmwares/kernel-firmware.dat; then
FW_LISTS="${FOUND_FILE}"
else
FW_LISTS="${PKG_DIR}/firmwares/any.dat ${PKG_DIR}/firmwares/${TARGET_ARCH}.dat"
fi
for fwlist in ${FW_LISTS}; do
[ -f ${fwlist} ] || continue