ipq40xx: cellc_rtl30vw: fix imagebuilder generation
authorGregory Detal <gregory.detal@tessares.net>
Fri, 2 Sep 2022 08:02:19 +0000 (10:02 +0200)
committerHauke Mehrtens <hauke@hauke-m.de>
Sat, 10 Sep 2022 23:36:25 +0000 (01:36 +0200)
commit0be1b78856794589a552f662f428081600e837cc
tree518bcda12c0ac0d3c91b5f7cfc728fb72e7fa767
parentf1d112ee5a43e8c4a22db05b94bbcd0677a34486
ipq40xx: cellc_rtl30vw: fix imagebuilder generation

The image build process was modifying the generated IMAGE_KERNEL to
append rootfs information (crc). This caused:
 - sysupgrade & factory images to contain 2 times the root.squashfs
   information due to both modifying the same IMAGE_KERNEL.
 - the generated imagebuilder to contain an erroneous IMAGE_KERNEL that
   contained references to an unexisting root.squashfs (the one from
   previous cause). The RTL30VW wasn't therefore able to boot the
   generated images as they contained checksums from non existing rootfs.

This commit makes sure to use a temporary IMAGE_KERNEL to append the
rootfs information for both factory and sysupgrade images.

Fixes: #10511
Signed-off-by: Gregory Detal <gregory.detal@tessares.net>
target/linux/ipq40xx/image/generic.mk