mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-23 15:32:33 +00:00
e7bfda2c24
This change makes the names of Broadcom targets consistent by using the common notation based on SoC/CPU ID (which is used internally anyway), bcmXXXX instead of brcmXXXX. This is even used for target TITLE in make menuconfig already, only the short target name used brcm so far. Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
26 lines
447 B
Bash
26 lines
447 B
Bash
#!/bin/sh
|
|
# Based on gabors ralink wisoc implementation.
|
|
|
|
[ -e /lib/firmware/$FIRMWARE ] && exit 0
|
|
|
|
. /lib/functions/caldata.sh
|
|
|
|
board=$(board_name)
|
|
|
|
case "$FIRMWARE" in
|
|
"rt2x00.eeprom" )
|
|
case $board in
|
|
huawei,echolife-hg556a-c)
|
|
caldata_extract "cal_data" 0x1fe00 0x200
|
|
;;
|
|
huawei,echolife-hg622|\
|
|
huawei,echolife-hg655b)
|
|
caldata_extract "cal_data" 0x0 0x200
|
|
;;
|
|
*)
|
|
caldata_die "board $board is not supported yet"
|
|
;;
|
|
esac
|
|
;;
|
|
esac
|