base-files: drop support for the platform_nand_pre_upgrade()
authorRafał Miłecki <rafal@milecki.pl>
Wed, 17 Jul 2019 09:32:55 +0000 (11:32 +0200)
committerRafał Miłecki <rafal@milecki.pl>
Mon, 22 Jul 2019 12:27:37 +0000 (14:27 +0200)
No target uses it anymore. All code from that callback was moved into
the platform_do_upgrade().

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
package/base-files/Makefile
package/base-files/files/lib/upgrade/nand.sh

index 7c63d3ef44f72250b3f7374411d650640fceb53b..49254a36804add6cea343b893f89fde6dc609390 100644 (file)
@@ -12,7 +12,7 @@ include $(INCLUDE_DIR)/version.mk
 include $(INCLUDE_DIR)/feeds.mk
 
 PKG_NAME:=base-files
-PKG_RELEASE:=204
+PKG_RELEASE:=205
 PKG_FLAGS:=nonshared
 
 PKG_FILE_DEPENDS:=$(PLATFORM_DIR)/ $(GENERIC_PLATFORM_DIR)/base-files/
index 9f258a82c55504d40e438eb2fe08171eb2abfdda..fbc2b5c19a07ff91f67a7ffdccaa63d4b6edc5a8 100644 (file)
@@ -282,10 +282,6 @@ nand_upgrade_tar() {
 nand_do_upgrade() {
        local file_type=$(identify $1)
 
-       if type 'platform_nand_pre_upgrade' >/dev/null 2>/dev/null; then
-               platform_nand_pre_upgrade "$1"
-       fi
-
        [ ! "$(find_mtd_index "$CI_UBIPART")" ] && CI_UBIPART="rootfs"
 
        case "$file_type" in