scripts/mkits.sh: move out .pagesync generation for RootFS blob
authorChristian Marangi <[email protected]>
Thu, 23 Oct 2025 13:31:46 +0000 (15:31 +0200)
committerChristian Marangi <[email protected]>
Thu, 23 Oct 2025 16:14:01 +0000 (18:14 +0200)
commitc70894c855e54624b918ab50c9afa53301c462d4
tree30073dfd4883007023081b7106608478b5582ff0
parent3de1bbd5aeb542de9a4b20eff0f6bbf1767fd6b9
scripts/mkits.sh: move out .pagesync generation for RootFS blob

It's expected the mkits.sh script to generate only the relevant DTS
entry and have all the blob already prepared to use for mkimage.

This is not the case for the RootFS case where the script generates a
.pagesync with the dd command.

To better handle this, drop the dd command and instead error out if the
.pagesync blob is not found if RootFS is used.

Adapt the generic fit build in image-commands.mk to call the dd for
.pagesync right before mkits.sh.

Link: https://github.com/openwrt/openwrt/pull/20492
Signed-off-by: Christian Marangi <[email protected]>
include/image-commands.mk
scripts/mkits.sh