scripts: Add Buildbot dump-target-info.pl script
authorPaul Spooren <mail@aparcar.org>
Mon, 3 Aug 2020 17:31:43 +0000 (07:31 -1000)
committerPetr Štetiar <ynezz@true.cz>
Tue, 4 Aug 2020 07:28:39 +0000 (09:28 +0200)
commit656b562aff36d92b0e8586833b59896a55b8a993
treef7be3975b63000f436c35976e970993dae3f6eb6
parent009e62c92c35142c5be3b375d6c393e63d2d27eb
scripts: Add Buildbot dump-target-info.pl script

The script comes from buildbot.git[0] and is used to print available
targets and architectures, which are then build.

As the buildbot clones openwrt.git anyway, the script might as well live
here to be used for other cases as well, e.g. determining what
architectures are available when building Docker containers or show
developers an overview which architectures are used by which target.

It's called with either the parameter `architectures` or `targets`,
showing architectures followed by supported targets or targets, followed
by the supported architectures:

$ ./scripts/dump-target-info.pl architectures
aarch64_cortex-a53 bcm27xx/bcm2710 mediatek/mt7622 mvebu/cortexa53 sunxi/cortexa53
aarch64_cortex-a72 bcm27xx/bcm2711 mvebu/cortexa72
...

$ ./scripts/dump-target-info.pl targets
apm821xx/nand powerpc_464fp
apm821xx/sata powerpc_464fp
...

In the future the the script could be removed from the buildbot
repository and maintained only here.

Rename `dumpinfo.pl` to `dump-target-info.pl` to improve verbosity of
filename.

[0]: https://git.openwrt.org/?p=buildbot.git;a=blob;f=scripts/dumpinfo.pl;h=aa97f8d60379076a41b968402e9337cea824ece5;hb=HEAD

Signed-off-by: Paul Spooren <mail@aparcar.org>
scripts/checkpatch.sh [new file with mode: 0644]
scripts/dump-target-info.pl [new file with mode: 0755]