build: avoid generating JSON info on missing image
authorDavid Bauer <mail@david-bauer.net>
Wed, 24 Feb 2021 20:38:15 +0000 (21:38 +0100)
committerDavid Bauer <mail@david-bauer.net>
Wed, 24 Feb 2021 21:28:45 +0000 (22:28 +0100)
commit512229ce4967814a09ce202855e6b632d2e97a3c
tree51a2af7c8190eace50bbcba6ec4a23cafe9e8739
parenta7ff66e2d29e439d7e53bc5102b4662f292d7642
build: avoid generating JSON info on missing image

Previously, build would fail for targets containing devices with not
initramfs image (such as mpc85xx-p1010). Only generate the JSON image
info for the initramfs image when we have one to avoid breaking the
builds.

Fixes commit d3140d052964 ("build/json: generate json file for initramfs")

Signed-off-by: David Bauer <mail@david-bauer.net>
include/image.mk