Imagebuilder not creating metadata

Hello,
I recently made two custom firmware images and both of them did not have metadata for device. One was OK. Other one bricked the device.
Working one is kirkwood, bricking one ath97. Both ran with correct profile for device (Linksys EA3500 and TP-Link Archer C7 v5 respectively)
Bricking a router aside, why could image miss metadata? Is there some switch in make for this?
Thanks

Which image you are talking about?

The image recipe should always add the specific metadata related to each image type

  • Sysupgrade image should have the OpenWrt metadata (as it is flashed via OpenWrt sysupgrade)
  • Factory image should have the required IDs/metadata for OEM flashing tools.
  • in addition there are initramfs images etc.

Well both factory and sysupgrade images showed the same error while flashing either from luci or CLI.

Before starting i updated all packages needed in Ubuntu VM I am using for compilation.
Compilation was done using command:

make image PROFILE="tplink_archer-c7-v5" PACKAGES="wpad-wolfssl mesh11sd luci -wpad-basic-wolfssl -wpad-basic-mbedtls" FILES="files"

Images I am using are from folder:

~/openwrt-imagebuilder-22.03.5-ath79-generic.Linux-x86_64/bin/targets/ath79/generic

IHMO I cannot see anything that might be wrong.