ipq807x: image: fix eMMC flashing/recovery from within initramfs
authorPetr Štetiar <ynezz@true.cz>
Mon, 5 Jun 2023 12:10:44 +0000 (14:10 +0200)
committerPetr Štetiar <ynezz@true.cz>
Mon, 12 Jun 2023 20:10:30 +0000 (22:10 +0200)
commit1e7fa539ae6e94bfdb5d9e503f0c103e15b408a1
tree7bb9817488121fa6942312b93669395c0bdaa56a
parent41af35cf6b5eadaf0e380c867be3ee0427202775
ipq807x: image: fix eMMC flashing/recovery from within initramfs

Having initramfs image built with same config as on buildbots:

 CONFIG_TARGET_MULTI_PROFILE=y
 CONFIG_TARGET_ALL_PROFILES=y
 CONFIG_TARGET_PER_DEVICE_ROOTFS=y

Its currently impossible to flash/recover the device using that image as
losetup is missing:

 root@OpenWrt:/# sysupgrade -v /tmp/openwrt-ipq807x-generic-prpl_haze-squashfs-sysupgrade.bin
 ...
 /lib/upgrade/do_stage2: line 38: losetup: not found
 Failed to detach all loop devices. Skip this try.

So lets fix it by including the needed utils for sysupgrade in
DEFAULT_PACKAGES set.

Signed-off-by: Petr Štetiar <ynezz@true.cz>
(cherry picked from commit 07fe8bc62a866e78e131c3f63a08554a94e931f8)
target/linux/ipq807x/Makefile
target/linux/ipq807x/image/generic.mk