treewide: fix undeclared function about backup in upgrade

This commit is contained in:
AmadeusGhost 2020-08-14 12:28:09 +08:00
parent 87e4b03f4c
commit 787d71db74
7 changed files with 7 additions and 7 deletions

View File

@ -133,7 +133,7 @@ platform_pre_upgrade() {
toradex,apalis_imx6q-eval |\
toradex,apalis_imx6q-ixora |\
toradex,apalis_imx6q-ixora-v1.1 )
[ -z "$UPGRADE_BACKUP" ] && {
[ -z "$CONF_TAR" ] && {
jffs2reset -y
umount /overlay
}

View File

@ -109,7 +109,7 @@ platform_copy_config() {
if export_partdevice partdev 1; then
mount -t $parttype -o rw,noatime "/dev/$partdev" /mnt
cp -af "$UPGRADE_BACKUP" "/mnt/$BACKUP_FILE"
cp -af "$CONF_TAR" "/mnt/$CONF_TAR"
umount /mnt
fi
}

View File

@ -28,7 +28,7 @@ define Device/elecom_wrc-2533gent
DEVICE_DTS := mt7622-elecom-wrc-2533gent
DEVICE_DTS_DIR := $(DTS_DIR)/mediatek
DEVICE_PACKAGES := kmod-usb-ohci kmod-usb2 kmod-usb3 kmod-mt7615e \
kmod-mt7615-firmware mt7622bt-firmware swconfig
mt7622bt-firmware swconfig
endef
TARGET_DEVICES += elecom_wrc-2533gent

View File

@ -40,7 +40,7 @@ platform_check_image() {
platform_copy_config_emmc() {
mkdir -p /recovery
mount -o rw,noatime /dev/mmcblk0p6 /recovery
cp -af "$UPGRADE_BACKUP" "/recovery/$BACKUP_FILE"
cp -af "$CONF_TAR" "/recovery/$CONF_TAR"
sync
umount /recovery
}

View File

@ -2,7 +2,7 @@ ARCH:=aarch64
SUBTARGET:=mt7622
BOARDNAME:=MT7622
CPU_TYPE:=cortex-a53
DEFAULT_PACKAGES += kmod-mt7615e kmod-mt7615-firmware wpad-basic
DEFAULT_PACKAGES += kmod-mt7615e wpad-basic
KERNELNAME:=Image dtbs
define Target/Description

View File

@ -188,7 +188,7 @@ platform_copy_config() {
if [ -n "$recoverydev" ]; then
mkdir -p /tmp/recovery
mount -o rw,noatime "/dev/$recoverydev" -t vfat /tmp/recovery
cp -af "$UPGRADE_BACKUP" "/tmp/recovery/$BACKUP_FILE"
cp -af "$CONF_TAR" "/tmp/recovery/$CONF_TAR"
sync
umount /tmp/recovery
fi

View File

@ -30,7 +30,7 @@ platform_copy_config() {
if export_partdevice partdev 1; then
mount -o rw,noatime "/dev/$partdev" /mnt
cp -af "$UPGRADE_BACKUP" "/mnt/$BACKUP_FILE"
cp -af "$CONF_TAR" "/mnt/$CONF_TAR"
umount /mnt
fi
}