mirror of
https://git.openwrt.org/openwrt/openwrt.git
synced 2026-03-14 23:09:45 +01:00
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 941ec28b35)
This commit is contained in:
parent
8ea6be1510
commit
3dbd74d032
1 changed files with 1 additions and 0 deletions
|
|
@ -168,6 +168,7 @@ prepare_rootfs: FORCE
|
|||
build_image: FORCE
|
||||
@echo
|
||||
@echo Building images...
|
||||
rm -rf $(BUILD_DIR)/json_info_files/
|
||||
$(NO_TRACE_MAKE) -C target/linux/$(BOARD)/image install TARGET_BUILD=1 IB=1 EXTRA_IMAGE_NAME="$(EXTRA_IMAGE_NAME)" \
|
||||
$(if $(USER_PROFILE),PROFILE="$(USER_PROFILE)")
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue