From 4a31037a34167a41705de319cdf989a63519debb Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Wed, 11 May 2016 20:13:58 +0200 Subject: build: avoid including profiles/*.mk Generate the active profile name in menuconfig context Signed-off-by: Felix Fietkau --- scripts/metadata.pl | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'scripts') diff --git a/scripts/metadata.pl b/scripts/metadata.pl index f5afb1e47b..260d06d712 100755 --- a/scripts/metadata.pl +++ b/scripts/metadata.pl @@ -337,6 +337,18 @@ EOF } } print <{profiles}; + foreach my $profile (@$profiles) { + print "\tdefault \"$profile->{id}\" if TARGET_$target->{conf}_$profile->{id}\n"; + } + } + + print <