imagebuilder: Remove json_info_files/ before build
authorPaul Spooren <mail@aparcar.org>
Tue, 9 Jun 2020 04:15:05 +0000 (18:15 -1000)
committerDaniel Golle <daniel@makrotopia.org>
Mon, 13 Jul 2020 20:24:30 +0000 (21:24 +0100)
commit3dbd74d03295f9fc357a88fa2160c75119908bfd
treea4ca3fa1e55a58cded6810b7f4e5da8c3ed23fb5
parent8ea6be1510af130ee458fb261372a042a1ba6490
imagebuilder: Remove json_info_files/ before build

The folder `json_info_files` contains multiple JSON files which describe
created firmware images. The folder is not removed between builds as the
ImageBuilder does not use `image.mk`.

Not removing the JSON files result in a merged `profiles.json` file
containing entries for outdated or non-existing images.

This commit adds the `json_info_files/` cleanup step to the ImageBuilder
Makefile.

Signed-off-by: Paul Spooren <mail@aparcar.org>
(cherry picked from commit 941ec28b355ea690b5682d2bf8175aa513379997)
target/imagebuilder/files/Makefile