Openwrt/include
Paul Spooren 07449f692c build: refactor JSON info files to profiles.json
JSON info files contain machine readable information of built profiles
and resulting images. These files were added in commit 881ed09ee6
("build: create JSON files containing image info").

They are useful for firmware wizards and script checking for
reproducibility.

Currently all JSON files are stored next to the built images, resulting
in up to 168 individual files for the ath79/generic target.

This patch refactors the JSON creation to store individual per image
(not per profile) files in $(BUILD_DIR)/json_info_files and create an
single overview file called `profiles.json` in the target directory.

Storing per image files and not per profile solves the problem of
parallel file writes. If a profiles sysupgrade and factory image are
finished at the same time both processes would write to the same JSON
file, resulting in randomly broken outputs.

Some target like x86/64 do not use the image code yet, resulting in
missing JSON files. If no JSON info files were created, no
`profiles.json` files is created as it would be empty anyway.

As before, this creation is enabled by default only if `BUILDBOT` is set.

Tested via buildroot & ImageBuilder on ath79/generic, imx6 and x86/64.

Signed-off-by: Paul Spooren <mail@aparcar.org>
[json_info_files dir handling in Make, if case refactoring]
Signed-off-by: Petr Štetiar <ynezz@true.cz>
2020-04-03 12:17:45 +02:00
..
site
autotools.mk
cmake.mk cmake: Install host packages to lib instead of lib64 2019-12-23 00:22:07 +01:00
debug.mk
depends.mk
device_table.txt
download.mk build: add PKG_SOURCE_URL_FILE support 2019-11-23 13:35:43 +01:00
feeds.mk
hardened-ld-pie.specs
hardening.mk buildsystem: Make PIE ASLR option tristate 2020-01-13 15:34:36 +01:00
host-build.mk build: call Host/Uninstall before wiping the host build dir 2019-10-21 14:18:17 +02:00
image-commands.mk build: image: set default parameter for check-size 2020-03-21 19:59:08 +01:00
image-legacy.mk
image.mk build: refactor JSON info files to profiles.json 2020-04-03 12:17:45 +02:00
kernel-build.mk kernel-build: ignore runtime config options during reconfig 2019-11-24 14:19:43 +01:00
kernel-defaults.mk kernel-defaults: ensure SOURCE_DATE_EPOCH on /init 2019-10-02 17:11:44 +02:00
kernel-version.mk kernel: bump 5.4 to 5.4.28 2020-03-28 13:03:02 +01:00
kernel.mk build: Add KBUILD_HOSTLDLIBS 2020-01-26 19:20:08 +01:00
netfilter.mk kernel: Include xt_MASQUERADE for kernel 5.2 and later 2020-02-28 17:50:46 +01:00
nls.mk
package-bin.mk
package-defaults.mk
package-dumpinfo.mk
package-ipkg.mk base-files: fix build for /sbin/pkg_check 2020-01-14 17:52:34 +01:00
package-seccomp.mk
package.mk build: Remove STAGING_DIR_HOST references for InstallDev/UninstallDev 2020-03-01 21:35:59 +01:00
prereq-build.mk build: prereq: tidy gcc version checks 2020-03-24 14:42:52 +00:00
prereq.mk
quilt.mk
rootfs.mk
scan.awk
scan.mk build: have scripts/feeds honor all toplevel .mk-files of a feed 2019-10-27 14:32:13 +01:00
shell.sh
subdir.mk
target.mk kernel: remove further obsolete kernel version switches 2020-01-18 19:39:05 +01:00
toolchain-build.mk
toplevel.mk build: fix host menu config targets using ncurses 2019-09-25 12:50:24 +02:00
u-boot.mk
uclibc++.mk libcxx: Add package 2019-12-23 00:22:07 +01:00
unpack.mk
verbose.mk
version.mk