projects
/
librecmc
/
librecmc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
image: allow specifying additional packages for device-specific rootfs
[librecmc/librecmc.git]
/
scripts
/
target-metadata.pl
diff --git
a/scripts/target-metadata.pl
b/scripts/target-metadata.pl
index 7dd782a6c2b2fa1e12ca972faf8d0f3bcc26818d..07160dc4ea2c890886a2401a0ba1b597b0337afb 100755
(executable)
--- a/
scripts/target-metadata.pl
+++ b/
scripts/target-metadata.pl
@@
-39,6
+39,7
@@
sub target_config_features(@) {
/low_mem/ and $ret .= "\tselect LOW_MEMORY_FOOTPRINT\n";
/small_flash/ and $ret .= "\tselect SMALL_FLASH\n";
/nand/ and $ret .= "\tselect NAND_SUPPORT\n";
/low_mem/ and $ret .= "\tselect LOW_MEMORY_FOOTPRINT\n";
/small_flash/ and $ret .= "\tselect SMALL_FLASH\n";
/nand/ and $ret .= "\tselect NAND_SUPPORT\n";
+ /virtio/ and $ret .= "\tselect VIRTIO_SUPPORT\n";
}
return $ret;
}
}
return $ret;
}
@@
-250,6
+251,9
@@
endchoice
menu "Target Devices"
depends on TARGET_MULTI_PROFILE
menu "Target Devices"
depends on TARGET_MULTI_PROFILE
+ config TARGET_ALL_PROFILES
+ bool "Enable all profiles by default"
+
config TARGET_PER_DEVICE_ROOTFS
bool "Use a per-device root filesystem that adds profile packages"
config TARGET_PER_DEVICE_ROOTFS
bool "Use a per-device root filesystem that adds profile packages"
@@
-259,9
+263,10
@@
EOF
foreach my $profile (@{$target->{profiles}}) {
next unless $profile->{id} =~ /^DEVICE_/;
print <<EOF;
foreach my $profile (@{$target->{profiles}}) {
next unless $profile->{id} =~ /^DEVICE_/;
print <<EOF;
-config TARGET_DEVICE_$target->{conf}_$profile->{id}
+
menu
config TARGET_DEVICE_$target->{conf}_$profile->{id}
bool "$profile->{name}"
depends on TARGET_$target->{conf}
bool "$profile->{name}"
depends on TARGET_$target->{conf}
+ default y if TARGET_ALL_PROFILES
EOF
my @pkglist = merge_package_lists($target->{packages}, $profile->{packages});
foreach my $pkg (@pkglist) {
EOF
my @pkglist = merge_package_lists($target->{packages}, $profile->{packages});
foreach my $pkg (@pkglist) {
@@
-269,6
+274,17
@@
EOF
print "\tselect MODULE_DEFAULT_$pkg if TARGET_PER_DEVICE_ROOTFS\n";
$defaults{$pkg} = 1;
}
print "\tselect MODULE_DEFAULT_$pkg if TARGET_PER_DEVICE_ROOTFS\n";
$defaults{$pkg} = 1;
}
+
+ print <<EOF;
+
+
+ config TARGET_DEVICE_PACKAGES_$target->{conf}_$profile->{id}
+ string "$profile->{name} additional packages"
+ default ""
+ depends on TARGET_PER_DEVICE_ROOTFS
+ depends on TARGET_DEVICE_$target->{conf}_$profile->{id}
+
+EOF
}
}
}
}