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 10:00:19 +0000 (11:00 +0100)
commitc7b6cfac40ce1b5e8fb0d9e5ce2c56e089abfadb
tree10493b9f21398b26d62394d5838519b26d0b7135
parent6cb1cb1b13fc767b4c488538220283600a3b2eec
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>
(cherry picked from commit 943c153cdd695904b9b7fe44800fc3546644973e)
scripts/dump-target-info.pl