Some checks failed
Build Kernel / Build all affected Kernels (push) Has been cancelled
Build all core packages / Build all core packages for selected target (push) Has been cancelled
Build and Push prebuilt tools container / Build and Push all prebuilt containers (push) Has been cancelled
Build Toolchains / Build Toolchains for each target (push) Has been cancelled
Build host tools / Build host tools for linux and macos based systems (push) Has been cancelled
Coverity scan build / Coverity x86/64 build (push) Has been cancelled
30 lines
464 B
Bash
30 lines
464 B
Bash
#!/bin/sh
|
|
|
|
[ -e /lib/firmware/$FIRMWARE ] && exit 0
|
|
|
|
. /lib/functions/caldata.sh
|
|
|
|
board=$(board_name)
|
|
|
|
case "$FIRMWARE" in
|
|
"mediatek/mt7981_eeprom_mt7976_dbdc.bin")
|
|
case "$board" in
|
|
ubnt,unifi-6-plus)
|
|
caldata_extract_mmc "factory" 0x0 0x1000
|
|
;;
|
|
esac
|
|
;;
|
|
"mediatek/mt7986_eeprom_mt7975_dual.bin")
|
|
case "$board" in
|
|
mercusys,mr90x-v1|\
|
|
tplink,re6000xd)
|
|
ln -sf /tmp/tp_data/MT7986_EEPROM.bin \
|
|
/lib/firmware/$FIRMWARE
|
|
;;
|
|
esac
|
|
;;
|
|
*)
|
|
exit 1
|
|
;;
|
|
esac
|