ignore profiles with custom kernel configs in the image builder itself

SVN-Revision: 6342
This commit is contained in:
Felix Fietkau 2007-02-22 04:03:35 +00:00
parent ccd12544f6
commit 804bfa954d
2 changed files with 8 additions and 4 deletions

View file

@ -149,9 +149,10 @@ sub gen_target_mk() {
define Profile/$conf\_$profile->{id}
ID:=$profile->{id}
NAME:=$profile->{name}
PACKAGES:=".join(" ", @{$profile->{packages}})."
endef";
$profiles_eval .= "
PACKAGES:=".join(" ", @{$profile->{packages}})."\n";
$profile->{kconfig} and $profiles_def .= " KCONFIG:=1\n";
$profiles_def .= " endef";
$profiles_eval .= "
\$(eval \$(call AddProfile,$conf\_$profile->{id}))"
}
print "

View file

@ -34,6 +34,7 @@ IPKG:= \
define Profile/Default
ID:=
NAME:=
KCONFIG:=
PACKAGES:=
endef
@ -46,8 +47,10 @@ define AddProfile
endif
$(ID)_NAME:=$(NAME)
$(ID)_PACKAGES:=$(PACKAGES)
PROFILE_LIST += \
ifneq ($(KCONFIG),)
PROFILE_LIST += \
echo '$(ID):'; [ -z '$(NAME)' ] || echo ' $(NAME)'; echo ' Packages: $(PACKAGES)';
endif
endif
endef