ignore profiles with custom kernel configs in the image builder itself
authorFelix Fietkau <nbd@openwrt.org>
Thu, 22 Feb 2007 04:03:35 +0000 (04:03 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Thu, 22 Feb 2007 04:03:35 +0000 (04:03 +0000)
SVN-Revision: 6342

scripts/metadata.pl
target/imagebuilder/files/Makefile

index 4a05628a54fac1c76ba7ef2a0b2ac330c3e79379..063524a67b39dcc8233d914b78695073bbe1dc6b 100755 (executable)
@@ -149,9 +149,10 @@ sub gen_target_mk() {
   define Profile/$conf\_$profile->{id}
     ID:=$profile->{id}
     NAME:=$profile->{name}
-    PACKAGES:=".join(" ", @{$profile->{packages}})."
-  endef";
-  $profiles_eval .= "
+    PACKAGES:=".join(" ", @{$profile->{packages}})."\n";
+                       $profile->{kconfig} and $profiles_def .= "    KCONFIG:=1\n";
+                       $profiles_def .= "  endef";
+                       $profiles_eval .= "
 \$(eval \$(call AddProfile,$conf\_$profile->{id}))"
                }
                print "
index b36e2f2e31235308813a0ed781b8099a818b8ed5..8b386a33c6c6e49f89bb4f7a5569e66f1db4d445 100644 (file)
@@ -34,6 +34,7 @@ IPKG:= \
 define Profile/Default
   ID:=
   NAME:=
+  KCONFIG:=
   PACKAGES:=
 endef
 
@@ -46,8 +47,10 @@ define AddProfile
     endif
        $(ID)_NAME:=$(NAME)
        $(ID)_PACKAGES:=$(PACKAGES)
-    PROFILE_LIST += \
+    ifneq ($(KCONFIG),)
+      PROFILE_LIST += \
                echo '$(ID):'; [ -z '$(NAME)' ] || echo '       $(NAME)'; echo '        Packages: $(PACKAGES)';
+    endif
   endif
 endef