build: fix language dependency handling

Turn language selection into a tristate, this allows building language
packages without having them included in the image.

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
This commit is contained in:
Jo-Philipp Wich 2015-01-10 14:20:18 +01:00
parent c97011fd97
commit a36807b942

View file

@ -98,7 +98,7 @@ ifeq ($(PKG_NAME),luci-base)
menu "Translations"$(foreach lang,$(LUCI_LANGUAGES), menu "Translations"$(foreach lang,$(LUCI_LANGUAGES),
config LUCI_LANG_$(lang) config LUCI_LANG_$(lang)
bool "$(shell echo '$(LUCI_LANG.$(lang))' | sed -e 's/^.* (\(.*\))$$/\1/') ($(lang))") tristate "$(shell echo '$(LUCI_LANG.$(lang))' | sed -e 's/^.* (\(.*\))$$/\1/') ($(lang))")
endmenu endmenu
endef endef
@ -179,6 +179,7 @@ define LuciTranslation
CATEGORY:=LuCI CATEGORY:=LuCI
TITLE:=$(PKG_NAME) - $(1) translation TITLE:=$(PKG_NAME) - $(1) translation
HIDDEN:=1 HIDDEN:=1
DEFAULT:=m if ALL||LUCI_LANG_$(1)
endef endef
define Package/luci-i18n-$(LUCI_BASENAME)-$(1)/install define Package/luci-i18n-$(LUCI_BASENAME)-$(1)/install