openwrt/include
Paul Spooren 3572711e3c 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>
(backported from commit 07449f692c)
Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
2020-06-30 22:12:58 +02:00
..
site include/site: add powerpc64 config 2017-10-24 13:24:04 +02:00
autotools.mk autotools.mk: autoreconf: fix missing install-sh 2019-09-04 13:32:36 +02:00
cmake.mk cmake: Install host packages to lib instead of lib64 2019-12-23 00:31:48 +01:00
debug.mk include: remove trailing whitespaces 2015-03-29 07:29:18 +00:00
depends.mk build: add missing wildcard for ignoring .pkgdir in dependency checks 2017-02-05 22:17:30 +01:00
device_table.txt image: ensure that /dev/console exist in rootfs images 2013-08-27 12:02:58 +00:00
download.mk build: add PKG_SOURCE_URL_FILE support 2019-11-23 13:36:28 +01:00
feeds.mk build: suppress error output in feeds.mk 2019-03-22 00:40:29 +01:00
hardened-ld-pie.specs build: add hardened builds with PIE (ASLR) support 2018-01-27 16:46:45 +01:00
hardening.mk build: fix ASLR for LTO packages 2018-07-30 14:26:16 +02:00
host-build.mk build: do not override CCACHE_DIR when ccache is disabled 2018-07-24 15:23:05 +02:00
image-commands.mk build: fix indent in image-commands.mk 2019-09-04 13:40:17 +02:00
image-legacy.mk image: fix ar71xx legacy images 2017-07-15 07:02:59 +02:00
image.mk build: refactor JSON info files to profiles.json 2020-06-30 22:12:58 +02:00
kernel-build.mk include: kernel-build: pass pkg-config overrides to kernel build 2019-09-04 13:46:59 +02:00
kernel-defaults.mk kernel: fix downloading rcX releases 2018-12-03 09:34:57 +01:00
kernel-version.mk kernel: bump 4.14 to 4.14.180 2020-05-12 12:43:38 +02:00
kernel.mk build: include BUILD_VARIANT in PKG_BUILD_DIR 2019-09-04 13:35:17 +02:00
netfilter.mk netfilter: Add fib support for nftables 2018-12-16 00:57:20 +01:00
nls.mk treewide: fix build depends to refer to source package names 2018-01-13 19:54:44 +01:00
package-bin.mk build: use if-then to avoid non-zero return codes in bin/ packaging code 2017-01-23 13:49:45 +01:00
package-defaults.mk include/package-defaults.mk: fix default Build/Prepare with empty ./src 2018-03-07 09:59:08 +01:00
package-dumpinfo.mk build: expose ABI version in .packageauxvars 2019-01-19 14:32:01 +01:00
package-ipkg.mk build: warn when packages have no associated install section 2019-09-04 13:21:22 +02:00
package-seccomp.mk include: add a seccomp filter install wrapper 2015-03-26 10:57:56 +00:00
package.mk build: include BUILD_VARIANT in PKG_BUILD_DIR 2019-09-04 13:35:17 +02:00
prereq-build.mk build: prereq: tidy gcc version checks 2020-03-29 18:47:03 +02:00
prereq.mk build: cleanup possibly dangling Python 3 host symlink 2019-11-09 08:21:45 +01:00
quilt.mk build: Use LINUX_DIR for Kernel/Patch 2019-01-30 13:20:14 +01:00
rootfs.mk imagebuilder: new DISABLED_SERVICES make variable 2019-05-15 13:34:24 +02:00
scan.awk build: propagate override information to .packageinfo 2015-02-09 12:09:31 +00:00
scan.mk build: Fix print without color 2019-02-17 19:30:34 +01:00
scons.mk build: use CXXFLAGS if defined 2016-10-13 17:04:43 +02:00
shell.sh build: use mkhash to replace various quirky md5sum/openssl calls 2017-01-05 11:09:12 +01:00
subdir.mk build: remove GNU time dependency 2018-08-05 00:06:27 +02:00
target.mk build: add urandom-seed and urngd to default packages set 2019-07-22 09:53:01 +02:00
toolchain-build.mk toolchain: Include hardening.mk for toolchain build 2019-01-24 21:52:39 +01:00
toplevel.mk build: fix host menu config targets using ncurses 2019-10-09 21:07:13 +02:00
u-boot.mk u-boot.mk: use openwrt url instead of lede project 2019-09-04 13:41:21 +02:00
uclibc++.mk toolchain: eliminate the INSTALL_LIBSTDCPP config symbol and make c++ support mandatory - fixes recursive config symbol dependency issues 2013-05-09 20:50:49 +00:00
unpack.mk include: unpack.mk: remove CRLF_WORKAROUND 2019-04-18 12:06:47 +02:00
verbose.mk include/verbose.mk: Add sc to failure message 2018-07-30 10:43:36 +02:00
version.mk OpenWrt v19.07.3: revert to branch defaults 2020-05-16 20:40:11 +02:00