scripts: Add Buildbot dump-target-info.pl script
authorPaul Spooren <mail@aparcar.org>
Mon, 3 Aug 2020 17:31:43 +0000 (07:31 -1000)
committerStijn Tintel <stijn@linux-ipv6.be>
Sun, 9 Aug 2020 23:43:15 +0000 (02:43 +0300)
commit7db09853a83b2feaf2604e4fcc074100be377280
tree17571d643600758740ade42429d2ddab0d1c7404
parente52f7cfc1dec2b56e1ceaf0b2027d867155be342
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>
(cherry picked from commit 656b562aff36d92b0e8586833b59896a55b8a993)
scripts/dump-target-info.pl [new file with mode: 0755]