mirror of
https://github.com/openwrt/openwrt.git
synced 2024-11-25 02:43:46 +08:00
IB: fix generating .profile.mk for profiles without metadata
Fixes d6fa04a437
("IB: include SUPPORTED_DEVICES in 'make info' output")
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
This commit is contained in:
parent
1e8bb50b93
commit
7204736076
@ -423,7 +423,7 @@ 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) {
|
||||
if (defined($profile->{supported_devices}) and @{$profile->{supported_devices}} > 0) {
|
||||
print $profile->{id}.'_SUPPORTED_DEVICES:='.join(' ', @{$profile->{supported_devices}})."\n";
|
||||
}
|
||||
print $profile->{id}.'_PACKAGES:='.join(' ', @{$profile->{packages}})."\n";
|
||||
|
Loading…
Reference in New Issue
Block a user