summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xscripts/metadata.pl7
-rw-r--r--target/imagebuilder/files/Makefile5
2 files changed, 8 insertions, 4 deletions
diff --git a/scripts/metadata.pl b/scripts/metadata.pl
index 4a05628..063524a 100755
--- a/scripts/metadata.pl
+++ b/scripts/metadata.pl
@@ -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 "
diff --git a/target/imagebuilder/files/Makefile b/target/imagebuilder/files/Makefile
index b36e2f2..8b386a3 100644
--- a/target/imagebuilder/files/Makefile
+++ b/target/imagebuilder/files/Makefile
@@ -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