浏览代码

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

SVN-Revision: 6341
Felix Fietkau 18 年之前
父节点
当前提交
ccd12544f6
共有 3 个文件被更改,包括 6 次插入0 次删除
  1. 2 0
      scripts/metadata.pl
  2. 3 0
      target/Config.in
  3. 1 0
      target/imagebuilder/Config.in

+ 2 - 0
scripts/metadata.pl

@@ -53,6 +53,7 @@ sub parse_target_metadata() {
 			}
 			}
 			$profile->{desc} = $desc;
 			$profile->{desc} = $desc;
 		};
 		};
+		/^Target-Profile-Kconfig:/ and $profile->{kconfig} = 1;
 	}
 	}
 	foreach my $target (@target) {
 	foreach my $target (@target) {
 		@{$target->{profiles}} > 0 or $target->{profiles} = [
 		@{$target->{profiles}} > 0 or $target->{profiles} = [
@@ -298,6 +299,7 @@ config LINUX_$target->{conf}_$profile->{id}
 	bool "$profile->{name}"
 	bool "$profile->{name}"
 	depends LINUX_$target->{conf}
 	depends LINUX_$target->{conf}
 EOF
 EOF
+			$profile->{kconfig} and print "\tselect PROFILE_KCONFIG\n";
 			my %pkgs;
 			my %pkgs;
 			foreach my $pkg (@{$target->{packages}}, @{$profile->{packages}}) {
 			foreach my $pkg (@{$target->{packages}}, @{$profile->{packages}}) {
 				$pkgs{$pkg} = 1;
 				$pkgs{$pkg} = 1;

+ 3 - 0
target/Config.in

@@ -35,6 +35,9 @@ config USES_JFFS2
 config USES_EXT2
 config USES_EXT2
 	bool
 	bool
 
 
+config PROFILE_KCONFIG 
+	bool
+
 # Architecture selection
 # Architecture selection
 
 
 config i386
 config i386

+ 1 - 0
target/imagebuilder/Config.in

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