From d6fa04a437033d4bdfa1b0d90a4786bfe492f749 Mon Sep 17 00:00:00 2001 From: Daniel Golle Date: Mon, 11 Mar 2019 05:32:29 +0100 Subject: IB: include SUPPORTED_DEVICES in 'make info' output Signed-off-by: Daniel Golle --- scripts/metadata.pm | 2 ++ scripts/target-metadata.pl | 3 +++ 2 files changed, 5 insertions(+) (limited to 'scripts') diff --git a/scripts/metadata.pm b/scripts/metadata.pm index d9804f8dc3..a338b8caad 100644 --- a/scripts/metadata.pm +++ b/scripts/metadata.pm @@ -140,6 +140,7 @@ sub parse_target_metadata($) { id => $1, name => $1, has_image_metadata => 0, + supported_devices => [], priority => 999, packages => [] }; @@ -148,6 +149,7 @@ sub parse_target_metadata($) { }; /^Target-Profile-Name:\s*(.+)\s*$/ and $profile->{name} = $1; /^Target-Profile-hasImageMetadata:\s*(\d+)\s*$/ and $profile->{has_image_metadata} = $1; + /^Target-Profile-SupportedDevices:\s*(.+)\s*$/ and $profile->{supported_devices} = [ split(/\s+/, $1) ]; /^Target-Profile-Priority:\s*(\d+)\s*$/ and do { $profile->{priority} = $1; $target->{sort} = 1; diff --git a/scripts/target-metadata.pl b/scripts/target-metadata.pl index 2f045eb379..4e4bc73d91 100755 --- a/scripts/target-metadata.pl +++ b/scripts/target-metadata.pl @@ -423,6 +423,9 @@ sub gen_profile_mk() { foreach my $profile (@{$cur->{profiles}}) { print $profile->{id}.'_NAME:='.$profile->{name}."\n"; print $profile->{id}.'_HAS_IMAGE_METADATA:='.$profile->{has_image_metadata}."\n"; + if (@{$profile->{supported_devices}} > 0) { + print $profile->{id}.'_SUPPORTED_DEVICES:='.join(' ', @{$profile->{supported_devices}})."\n"; + } print $profile->{id}.'_PACKAGES:='.join(' ', @{$profile->{packages}})."\n"; } } -- cgit v1.2.3