Skip to content

Commit 08a94ec

Browse files
committed
ipq806x: upgrade: fix RAMFS_COPY_*
RAMFS_COPY_* are moved to platform.sh toplevel. The unneeded linksys_preupgrade function is removed, and the nand_do_upgrade call is moved to platform_do_upgrade. Fixes: 30f61a3 "base-files: always use staged sysupgrade" Signed-off-by: Matthias Schiffer <[email protected]>
1 parent 73f6754 commit 08a94ec

File tree

2 files changed

+5
-21
lines changed

2 files changed

+5
-21
lines changed

target/linux/ipq806x/base-files/lib/upgrade/linksys.sh

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -99,12 +99,3 @@ platform_do_upgrade_linksys() {
9999
fi
100100
}
101101
}
102-
103-
linksys_preupgrade() {
104-
export RAMFS_COPY_BIN="${RAMFS_COPY_BIN} /usr/sbin/fw_printenv /usr/sbin/fw_setenv"
105-
export RAMFS_COPY_BIN="${RAMFS_COPY_BIN} /bin/mkdir /bin/touch"
106-
export RAMFS_COPY_DATA="${RAMFS_COPY_DATA} /etc/fw_env.config /var/lock/fw_printenv.lock"
107-
108-
}
109-
110-
append sysupgrade_pre_upgrade linksys_preupgrade

target/linux/ipq806x/base-files/lib/upgrade/platform.sh

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,14 @@
33
PART_NAME=firmware
44
REQUIRE_IMAGE_METADATA=1
55

6+
RAMFS_COPY_BIN='/usr/sbin/fw_printenv /usr/sbin/fw_setenv'
7+
RAMFS_COPY_DATA='/etc/fw_env.config /var/lock/fw_printenv.lock'
8+
69
platform_check_image() {
710
return 0;
811
}
912

10-
platform_pre_upgrade() {
13+
platform_do_upgrade() {
1114
local board=$(ipq806x_board_name)
1215

1316
case "$board" in
@@ -18,18 +21,8 @@ platform_pre_upgrade() {
1821
r7500 |\
1922
r7500v2 |\
2023
r7800)
21-
nand_do_upgrade "$1"
22-
;;
23-
ea8500)
24-
linksys_preupgrade "$1"
24+
nand_do_upgrade "$ARGV"
2525
;;
26-
esac
27-
}
28-
29-
platform_do_upgrade() {
30-
local board=$(ipq806x_board_name)
31-
32-
case "$board" in
3326
c2600)
3427
PART_NAME="os-image:rootfs"
3528
MTD_CONFIG_ARGS="-s 0x200000"

0 commit comments

Comments
 (0)