scripts/dump-target-info.pl: add new function to DUMP devices
authorChristian Marangi <ansuelsmth@gmail.com>
Sun, 12 Nov 2023 18:14:46 +0000 (19:14 +0100)
committerChristian Marangi <ansuelsmth@gmail.com>
Wed, 15 Nov 2023 09:59:23 +0000 (10:59 +0100)
commit943c153cdd695904b9b7fe44800fc3546644973e
tree3b607260392c2c12aa670c33746c1301c90be4bc
parentc60e9d183995823a52669ecae40669154614abe7
scripts/dump-target-info.pl: add new function to DUMP devices

Add new function to dump-targer-info.pl to DUMP devices provided a
matching target/subtarget.

Example:

./scripts/dump-targer-info.pl devices ipq806x/generic

will produce the sorted list of devices defined in the following format:

device_id device_name

Devices may have alternative names, the script will dump each
alternative name in the same line of device_id.

Following the pattern:

device_id "PRIMARY DEVICE NAME" "ALT0 DEVICE NAME" "ALT1 DEVICE NAME" ...

Example:

tplink_ad7200 "TP-Link AD7200 v1/v2" "TP-Link Talon AD7200 v1/v2"

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
scripts/dump-target-info.pl