Hi Artem,
Well, you have not defined for which branch you ask to apply this.
Anyway, even if what you stated in the commit message is correct, thsi
patch hides the cause instead of fix it. In fact, SWUpdate does not
support anymore the old u-boot-fw-utils, but just libubootenv, whose
recipe was added to older meta-swupdate branches (thud, zeus). The
correct fix is to fix u-boot to export the initial environment as done
starting from dunfell, but this cannot be done satisfactory in
meta-swupdate due to the large number of different versions in BSPs for
u-boot and due to the forks created by some verndors (u-boot-<vendorname>).
The fix for these branches (thud, zeus) can be easier done in own layer
with a .bbappend, adding /etc/u-boot-initial-env to rootfs and providing
u-boot-default-env.
The patch here has the bad side effect on the target that bricks the
board if it is started without any environment in flash, and you have
even not any advise what happen - you get at least a build error now,
and you decide yourself how to fix it.
Best regards,
Stefano Babic
--
=====================================================================
DENX Software Engineering GmbH, Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone:
+49-8142-66989-53 Fax:
+49-8142-66989-80 Email:
sba...@denx.de
=====================================================================