build: add option to enable all profiles
authorFelix Fietkau <nbd@nbd.name>
Fri, 22 Jul 2016 12:29:32 +0000 (14:29 +0200)
committerFelix Fietkau <nbd@nbd.name>
Fri, 29 Jul 2016 08:18:26 +0000 (10:18 +0200)
Signed-off-by: Felix Fietkau <nbd@nbd.name>
scripts/target-metadata.pl

index 7dd782a6c2b2fa1e12ca972faf8d0f3bcc26818d..7e7d26bac93147f2652abd549509269b29362174 100755 (executable)
@@ -250,6 +250,9 @@ endchoice
 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"
 
@@ -262,6 +265,7 @@ EOF
 config TARGET_DEVICE_$target->{conf}_$profile->{id}
        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) {