disable the image builder in menuconfig for profiles with custom kernel configs
disable the image builder in menuconfig for profiles with custom kernel configs

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@6341 3c298f89-4303-0410-b956-a3cf2f4a3e73

--- 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;

--- a/target/Config.in
+++ b/target/Config.in
@@ -33,6 +33,9 @@
 	bool
 
 config USES_EXT2
+	bool
+
+config PROFILE_KCONFIG 
 	bool
 
 # Architecture selection

--- a/target/imagebuilder/Config.in
+++ b/target/imagebuilder/Config.in
@@ -1,6 +1,7 @@
 config IB
 	bool "Build the OpenWrt Image Builder"
 	depends !TARGET_ROOTFS_INITRAMFS
+	depends !PROFILE_KCONFIG
 	default y if ALL
 	help
 	  This is essentially a stripped-down version of the buildroot

comments