disable the image builder in menuconfig for profiles with custom kernel configs
[openwrt.org/openwrt.git] / scripts / metadata.pl
blob:a/scripts/metadata.pl -> blob:b/scripts/metadata.pl
--- a/scripts/metadata.pl
+++ b/scripts/metadata.pl
@@ -53,6 +53,7 @@
 			}
 			$profile->{desc} = $desc;
 		};
+		/^Target-Profile-Kconfig:/ and $profile->{kconfig} = 1;
 	}
 	foreach my $target (@target) {
 		@{$target->{profiles}} > 0 or $target->{profiles} = [
@@ -298,6 +299,7 @@
 	bool "$profile->{name}"
 	depends LINUX_$target->{conf}
 EOF
+			$profile->{kconfig} and print "\tselect PROFILE_KCONFIG\n";
 			my %pkgs;
 			foreach my $pkg (@{$target->{packages}}, @{$profile->{packages}}) {
 				$pkgs{$pkg} = 1;

comments