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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user