1
0
mirror of https://git.openwrt.org/openwrt/openwrt.git synced 2024-10-18 13:29:16 +02:00
openwrt/scripts
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 881ed09ee6e2
("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
..
config build: fix xconfig target 2019-09-25 12:50:24 +02:00
flashing
arm-magic.sh scripts/arm-magic.sh: switch to /bin/sh 2020-01-02 23:59:20 +01:00
brcmImage.pl
bundle-libraries.sh
checkpatch.pl
clang-gcc-wrapper
clean-package.sh build: Fix directory symlinks not removed when cleaning STAGING_DIR 2020-03-01 21:35:59 +01:00
cleanfile
cleanpatch
combined-ext-image.sh
combined-image.sh
config.guess
config.rpath
config.sub
deptest.sh
diffconfig.sh
dl_cleanup.py
dl_github_archive.py scripts/dl_github_archive.py: fix python3 str, bytes confusion 2019-11-04 11:11:19 +00:00
download.pl scripts/dowload.pl: add archive.apache.org to apache mirror list 2019-12-23 00:21:46 +01:00
env scripts/env: replace -a and -o with &&/|| 2020-01-02 23:56:19 +01:00
ext-toolchain.sh
feeds scripts/feeds: fix accepting "-" in feed type string 2019-09-15 19:54:03 +02:00
fixup-makefile.pl
functions.sh
gen_image_generic.sh x86: generate EFI platform bootable images 2020-03-31 16:20:47 +02:00
gen-dependencies.sh scripts/gen-dependencies.sh: use /bin/sh 2020-01-01 17:01:02 +01:00
get_source_date_epoch.sh
getver.sh
ipkg-build
ipkg-make-index.sh
ipkg-remove
json_add_image_info.py build: refactor JSON info files to profiles.json 2020-04-03 12:17:45 +02:00
json_overview_image_info.py build: refactor JSON info files to profiles.json 2020-04-03 12:17:45 +02:00
kconfig.pl
linksys-image.sh
make-ipkg-dir.sh
md5sum
metadata.pm
mkhash.c
mkits-qsdk-ipq-image.sh
mkits.sh scripts/mkits.sh: replace legacy backticks with $() 2019-12-31 11:44:04 +01:00
om-fwupgradecfg-gen.sh
package-metadata.pl
pad_image
patch-kernel.sh
patch-specs.sh
portable_date.sh
qemustart scripts: fixup qemustart for new x86 image names 2020-03-21 10:36:00 +00:00
redboot-script.pl
relink-lib.sh
remote-gdb
rstrip.sh
sign_images.sh build: add script to sign packages 2019-10-21 14:07:08 +02:00
slugimage.pl
srecimage.pl
strip-kmod.sh scripts/strip-kmod.sh: harmonize leading whitespaces 2019-12-31 11:41:07 +01:00
symlink-tree.sh scripts/symlink-tree.sh: use /bin/sh 2019-12-31 11:43:15 +01:00
sysupgrade-tar.sh
target-metadata.pl
time.pl
timestamp.pl
ubinize-image.sh ubinize-image: set image sequence from SOURCE_DATE_EPOCH 2019-11-03 04:20:21 +01:00