immortalwrt/scripts
Paul Spooren f20e414b79
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-11-14 23:29:53 +08:00
..
config build: mconf readme update 2020-07-08 12:02:08 +08:00
flashing scripts/flashing/flash.sh: remove trailing whitespaces 2020-05-24 22:45:18 +08:00
arm-magic.sh sync build script for OpenWrt 19.07 2020-02-21 02:41:00 +08:00
brcmImage.pl Merge branch 'master' of https://github.com/lede-project/source 2018-01-09 14:38:15 +08:00
bundle-libraries.sh scripts: bundle-libraries.sh: fix broken SDK compiler 2020-11-03 11:54:47 +08:00
checkpatch.pl scripts: checkpatch remove device-tree doc check 2020-11-14 13:45:51 +08:00
clang-gcc-wrapper update source 2017-09-06 19:19:45 +08:00
clean-package.sh sync build script for OpenWrt 19.07 2020-02-21 02:41:00 +08:00
cleanfile update source 2017-09-06 19:19:45 +08:00
cleanpatch update source 2017-09-06 19:19:45 +08:00
combined-ext-image.sh update to R7.5.4 2018-01-15 18:26:41 +08:00
combined-image.sh update source 2017-09-06 19:19:45 +08:00
config.guess Merge branch master of https://github.com/coolsnowwolf/lede 2019-01-03 19:29:28 +08:00
config.rpath update source 2017-09-06 19:19:45 +08:00
config.sub Merge branch master of https://github.com/coolsnowwolf/lede 2019-01-03 19:29:28 +08:00
deptest.sh update source 2017-09-06 19:19:45 +08:00
diffconfig.sh update source 2017-09-06 19:19:45 +08:00
dl_cleanup.py update source 2017-09-06 19:19:45 +08:00
dl_github_archive.py sync build script for OpenWrt 19.07 2020-02-21 02:41:00 +08:00
download.pl Revert "scripts/download: add sources CDN as first mirror" 2020-08-25 13:24:29 +08:00
dump-target-info.pl scripts: Add Buildbot dump-target-info.pl script 2020-08-04 23:54:03 +08:00
env scripts/env: Fix 56f813674a scripts/env: use command -v instead of which 2020-07-12 23:11:33 +08:00
ext-toolchain.sh update source 2017-09-06 19:19:45 +08:00
feeds sync build script for OpenWrt 19.07 2020-02-21 02:41:00 +08:00
fixup-makefile.pl sync with OpenWrt trunk 2018-09-07 13:43:55 +08:00
functions.sh ramips: mt7621: add support for Netgear R6800 2019-12-13 08:25:54 -08:00
gen_image_generic.sh scripts/gen_image_generic.sh: use /bin/sh 2020-07-12 12:17:33 +08:00
gen-dependencies.sh sync build script for OpenWrt 19.07 2020-02-21 02:41:00 +08:00
get_source_date_epoch.sh build: get_source_date_epoch allow external repos 2020-09-01 17:29:22 +08:00
getver.sh scripts/getver.sh: silence rev-list errors 2020-11-03 11:53:49 +08:00
ipkg-build scripts: ipkg-build: simplify uid/gid resolving 2020-09-15 11:37:24 +08:00
ipkg-make-index.sh sync build script for OpenWrt 19.07 2020-02-21 02:41:00 +08:00
ipkg-remove sync build script for OpenWrt 19.07 2020-02-21 02:41:00 +08:00
json_add_image_info.py build: refactor JSON info files to profiles.json 2020-11-14 23:29:53 +08:00
json_overview_image_info.py build: refactor JSON info files to profiles.json 2020-11-14 23:29:53 +08:00
kconfig.pl scripts/kconfig.pl: allow regex syntax in filtering out config entries 2020-11-14 13:51:51 +08:00
linksys-image.sh build: add a script for generating Linksys EA6350v3 factory image 2019-03-07 19:45:12 +08:00
make-ipkg-dir.sh update source 2017-09-06 19:19:45 +08:00
md5sum update source 2017-09-06 19:19:45 +08:00
metadata.pm sync build script for OpenWrt 19.07 2020-02-21 02:41:00 +08:00
mkhash.c scripts: mkhash fail on hashing a folder 2020-11-12 11:10:10 +08:00
mkits-qsdk-ipq-image.sh ipq40xx: add G-DOCK 2.0 (P&W R619AC) support 2019-10-22 23:14:35 -07:00
mkits.sh scripts: mkits.sh make it possible to specify fdt@# 2020-09-26 11:33:12 +08:00
om-fwupgradecfg-gen.sh Merge branch master of https://github.com/coolsnowwolf/lede 2019-01-03 19:29:28 +08:00
package-metadata.pl sync build script for OpenWrt 19.07 2020-02-21 02:41:00 +08:00
pad_image update source 2017-09-06 19:19:45 +08:00
patch-kernel.sh update source 2017-09-06 19:19:45 +08:00
patch-specs.sh sync build script for OpenWrt 19.07 2020-02-21 02:41:00 +08:00
portable_date.sh update source 2017-09-06 19:19:45 +08:00
qemustart sync build script for OpenWrt 19.07 2020-02-21 02:41:00 +08:00
redboot-script.pl update source 2017-09-06 19:19:45 +08:00
relink-lib.sh update source 2017-09-06 19:19:45 +08:00
remote-gdb sync build script for OpenWrt 19.07 2020-02-21 02:41:00 +08:00
rstrip.sh Merge branch master of https://github.com/coolsnowwolf/lede 2019-01-03 19:29:28 +08:00
sign_images.sh sync build script for OpenWrt 19.07 2020-02-21 02:41:00 +08:00
slugimage.pl sync with OpenWrt trunk 2018-09-07 13:43:55 +08:00
spelling.txt scripts: add spelling.txt for checkpatch.pl 2020-11-14 13:45:59 +08:00
srecimage.pl update source 2017-09-06 19:19:45 +08:00
strip-kmod.sh sync build script for OpenWrt 19.07 2020-02-21 02:41:00 +08:00
symlink-tree.sh sync build script for OpenWrt 19.07 2020-02-21 02:41:00 +08:00
sysupgrade-tar.sh sync build script for OpenWrt 19.07 2020-02-21 02:41:00 +08:00
target-metadata.pl build: define PWM_SUPPORT arch feature flag 2020-09-26 11:34:00 +08:00
time.pl sync build script for OpenWrt 19.07 2020-02-21 02:41:00 +08:00
timestamp.pl update source 2017-09-06 19:19:45 +08:00
ubinize-image.sh ramips: mt7621: add support for Netgear R6800 2019-12-13 08:25:54 -08:00