X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/3b03b65e9943df105d6e7d7e0524687c59868f80..a91b3a746d48069d4db5b94d1d59eaa2759b5f28:/scripts/metadata.pl diff --git a/scripts/metadata.pl b/scripts/metadata.pl index 4a05628a5..063524a67 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 "