diff options
author | Felix Fietkau <nbd@nbd.name> | 2016-05-11 20:13:58 +0200 |
---|---|---|
committer | Felix Fietkau <nbd@nbd.name> | 2016-05-11 20:14:00 +0200 |
commit | 4a31037a34167a41705de319cdf989a63519debb (patch) | |
tree | e6af96df9a1ed4125ca89313559e80f976cd70b0 /scripts/metadata.pl | |
parent | b0cf769008bc38f386c977f38f80de0fef098355 (diff) | |
download | mtk-20170518-4a31037a34167a41705de319cdf989a63519debb.zip mtk-20170518-4a31037a34167a41705de319cdf989a63519debb.tar.gz mtk-20170518-4a31037a34167a41705de319cdf989a63519debb.tar.bz2 |
build: avoid including profiles/*.mk
Generate the active profile name in menuconfig context
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Diffstat (limited to 'scripts/metadata.pl')
-rwxr-xr-x | scripts/metadata.pl | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/scripts/metadata.pl b/scripts/metadata.pl index f5afb1e..260d06d 100755 --- a/scripts/metadata.pl +++ b/scripts/metadata.pl @@ -337,6 +337,18 @@ EOF } } print <<EOF; +config TARGET_PROFILE + string +EOF + foreach my $target (@target) { + my $profiles = $target->{profiles}; + foreach my $profile (@$profiles) { + print "\tdefault \"$profile->{id}\" if TARGET_$target->{conf}_$profile->{id}\n"; + } + } + + print <<EOF; + config TARGET_ARCH_PACKAGES string |