diff options
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/metadata.pm | 2 | ||||
-rwxr-xr-x | scripts/target-metadata.pl | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/scripts/metadata.pm b/scripts/metadata.pm index 5300e293e7..d9804f8dc3 100644 --- a/scripts/metadata.pm +++ b/scripts/metadata.pm @@ -139,6 +139,7 @@ sub parse_target_metadata($) { $profile = { id => $1, name => $1, + has_image_metadata => 0, priority => 999, packages => [] }; @@ -146,6 +147,7 @@ sub parse_target_metadata($) { push @{$target->{profiles}}, $profile; }; /^Target-Profile-Name:\s*(.+)\s*$/ and $profile->{name} = $1; + /^Target-Profile-hasImageMetadata:\s*(\d+)\s*$/ and $profile->{has_image_metadata} = $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 ef0a34eb4f..2f045eb379 100755 --- a/scripts/target-metadata.pl +++ b/scripts/target-metadata.pl @@ -422,6 +422,7 @@ sub gen_profile_mk() { print "PROFILE_NAMES = ".join(" ", map { $_->{id} } @{$cur->{profiles}})."\n"; foreach my $profile (@{$cur->{profiles}}) { print $profile->{id}.'_NAME:='.$profile->{name}."\n"; + print $profile->{id}.'_HAS_IMAGE_METADATA:='.$profile->{has_image_metadata}."\n"; print $profile->{id}.'_PACKAGES:='.join(' ', @{$profile->{packages}})."\n"; } } |