1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-07-07 14:55:28 +03:00

ignore profiles with custom kernel configs in the image builder itself

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@6342 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
nbd 2007-02-22 04:03:35 +00:00
parent 3b03b65e99
commit a91b3a746d
2 changed files with 8 additions and 4 deletions

View File

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

View File

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