image: fix image generation within ImageBuilder
authorPetr Štetiar <ynezz@true.cz>
Mon, 6 Nov 2023 08:52:24 +0000 (08:52 +0000)
committerPetr Štetiar <ynezz@true.cz>
Mon, 6 Nov 2023 08:59:03 +0000 (08:59 +0000)
commitc4259a658673cc1a02ed17bfa8e94de17de00ad2
tree98244b57f54ace9868a576d8d8896c2d17ff0a04
parentae500e62e2938e112ae1fc6aa7389e8c7b784b13
image: fix image generation within ImageBuilder

Changes introduced in commit d604a07225c5 ("build: add CycloneDX SBOM
JSON support") broke ImageBuilder:

  Cannot open '/openwrt-imagebuilder-ath79-generic.Linux-x86_64/tmp/.packageinfo': No such file or directory

So lets fix it by wrapping the BOM generation behind condition of IB
feature check.

Fixes: #13881
Fixes: d604a07225c5 ("build: add CycloneDX SBOM JSON support")
Signed-off-by: Petr Štetiar <ynezz@true.cz>
include/image.mk