build: avoid including profiles/*.mk

Generate the active profile name in menuconfig context

Signed-off-by: Felix Fietkau <nbd@nbd.name>
This commit is contained in:
Felix Fietkau
2016-05-11 20:13:58 +02:00
parent b0cf769008
commit 4a31037a34
2 changed files with 15 additions and 6 deletions

View File

@@ -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