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:
parent
b0cf769008
commit
4a31037a34
2 changed files with 15 additions and 6 deletions
|
@ -84,9 +84,6 @@ define Profile
|
||||||
echo "$$$$$$$$$(call shvar,Profile/$(1)/Description)"; \
|
echo "$$$$$$$$$(call shvar,Profile/$(1)/Description)"; \
|
||||||
echo "@@"; \
|
echo "@@"; \
|
||||||
echo;
|
echo;
|
||||||
ifeq ($(CONFIG_TARGET_$(call target_conf,$(BOARD)_$(if $(SUBTARGET),$(SUBTARGET)_))$(1)),y)
|
|
||||||
PROFILE=$(1)
|
|
||||||
endif
|
|
||||||
endef
|
endef
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
@ -101,10 +98,10 @@ else
|
||||||
endef
|
endef
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
PROFILE:=$(call qstrip,$(CONFIG_TARGET_PROFILE))
|
||||||
|
|
||||||
ifeq ($(TARGET_BUILD),1)
|
ifeq ($(TARGET_BUILD),1)
|
||||||
$(eval $(call IncludeProfiles))
|
ifneq ($(DUMP),)
|
||||||
else
|
|
||||||
ifeq ($(DUMP),)
|
|
||||||
$(eval $(call IncludeProfiles))
|
$(eval $(call IncludeProfiles))
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
|
@ -337,6 +337,18 @@ EOF
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
print <<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
|
config TARGET_ARCH_PACKAGES
|
||||||
string
|
string
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue