diff options
author | Adrian Schmutzler <freifunk@adrianschmutzler.de> | 2019-12-17 01:15:35 +0100 |
---|---|---|
committer | Adrian Schmutzler <freifunk@adrianschmutzler.de> | 2020-01-14 22:04:29 +0100 |
commit | 355f0444f3622347650776dd8f1e388dc5d000ca (patch) | |
tree | b1d60761c4f170df95c94c3bc7055f300e9bac1a /target/linux/lantiq/xway/base-files/lib/upgrade/platform.sh | |
parent | b070101c506ca5541d6f232c2da3e0f7b1383106 (diff) | |
download | upstream-355f0444f3622347650776dd8f1e388dc5d000ca.tar.gz upstream-355f0444f3622347650776dd8f1e388dc5d000ca.tar.bz2 upstream-355f0444f3622347650776dd8f1e388dc5d000ca.zip |
lantiq: split base-files into subtargets
This splits the device-dependent base-files into subtarget directories,
like done recently for ath79 and ramips. While this increases the
overall lines of codes, it will make the code per subtarget smaller
and easier to keep track of features and devices.
While at it, several variables at the top of 02_network are removed,
as they were never changed. The values are put directly into the
function calls where they are used.
Remove unneeded LED setup from 01_leds, and remove 01_leds entirely
for falcon subtarget (as it is not used there).
Applies alphabetic reordering to device cases in base-files.
Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
Diffstat (limited to 'target/linux/lantiq/xway/base-files/lib/upgrade/platform.sh')
-rwxr-xr-x | target/linux/lantiq/xway/base-files/lib/upgrade/platform.sh | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/target/linux/lantiq/xway/base-files/lib/upgrade/platform.sh b/target/linux/lantiq/xway/base-files/lib/upgrade/platform.sh new file mode 100755 index 0000000000..5ef0a0ddb9 --- /dev/null +++ b/target/linux/lantiq/xway/base-files/lib/upgrade/platform.sh @@ -0,0 +1,20 @@ +PART_NAME=firmware +REQUIRE_IMAGE_METADATA=1 + +platform_check_image() { + return 0 +} + +platform_do_upgrade() { + local board=$(board_name) + + case "$board" in + bt,homehub-v2b|\ + bt,homehub-v3a) + nand_do_upgrade $1 + ;; + *) + default_do_upgrade "$1" + ;; + esac +} |