build: fix empty SUBTARGET in json files
authorPaul Spooren <mail@aparcar.org>
Wed, 12 Feb 2020 03:27:24 +0000 (17:27 -1000)
committerPetr Štetiar <ynezz@true.cz>
Thu, 13 Feb 2020 16:45:46 +0000 (17:45 +0100)
commit73f3ad1df2e1d33d3d5aae4fd2093aa80406cc4a
tree9c62c9599a7d836a7f1740eda4c19578a0657311
parentcd5dbba9056faf5224561a82e7dec11ce2dbc8cd
build: fix empty SUBTARGET in json files

Some targets like kirkwood or omap don't use a subtarget which results
in a malformed JSON info file.

Instead of having a valid value like `"target": "ath79/tiny"` for these
targets the value is `"target": "kirkwood/"`.

This patch uses the same if condition to use `generic` if the subtarget
is empty.

Tested for the kirkwood target.

Signed-off-by: Paul Spooren <mail@aparcar.org>
include/image.mk