summaryrefslogtreecommitdiff
path: root/scripts/target-metadata.pl
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2016-09-24 18:25:25 +0200
committerMatthias Schiffer <mschiffer@universe-factory.net>2016-09-24 18:25:25 +0200
commite9165793409ceccaeef6674c691b875a83fcb97f (patch)
treef2a7c83775ed5f2e23a208792d639cf3fdc11a09 /scripts/target-metadata.pl
parent1c09849f6cf1b8bd94819ca11910ce444c3d3019 (diff)
downloadmtk-20170518-e9165793409ceccaeef6674c691b875a83fcb97f.zip
mtk-20170518-e9165793409ceccaeef6674c691b875a83fcb97f.tar.gz
mtk-20170518-e9165793409ceccaeef6674c691b875a83fcb97f.tar.bz2
image: allow specifying additional packages for device-specific rootfs
Add a new option to each device in multi-profile mode, allowing to provide a list of packages to add or remove. In case of added packages, the user must take care that these are selected to be built. Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
Diffstat (limited to 'scripts/target-metadata.pl')
-rwxr-xr-xscripts/target-metadata.pl13
1 files changed, 12 insertions, 1 deletions
diff --git a/scripts/target-metadata.pl b/scripts/target-metadata.pl
index a723916..07160dc 100755
--- a/scripts/target-metadata.pl
+++ b/scripts/target-metadata.pl
@@ -263,7 +263,7 @@ EOF
foreach my $profile (@{$target->{profiles}}) {
next unless $profile->{id} =~ /^DEVICE_/;
print <<EOF;
-config TARGET_DEVICE_$target->{conf}_$profile->{id}
+menuconfig TARGET_DEVICE_$target->{conf}_$profile->{id}
bool "$profile->{name}"
depends on TARGET_$target->{conf}
default y if TARGET_ALL_PROFILES
@@ -274,6 +274,17 @@ EOF
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
}
}