Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/openwrt/luci.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2020-07-20 19:45:38 +0300
committerJo-Philipp Wich <jo@mein.io>2020-07-20 19:46:02 +0300
commitde2c0451f34fb22351a3cb34f8e6a1aa12f3a395 (patch)
tree0ab5a00d4bc430a976223b08cd6bb6e72ec6efba /luci.mk
parent848fa6effdeeb8d6205f5975039d04678fc7c113 (diff)
build: luci.mk: allow overriding menu category and section values
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'luci.mk')
-rw-r--r--luci.mk6
1 files changed, 4 insertions, 2 deletions
diff --git a/luci.mk b/luci.mk
index 2043ad4a62..be11cf99e0 100644
--- a/luci.mk
+++ b/luci.mk
@@ -10,6 +10,8 @@ LUCI_BASENAME?=$(patsubst luci-$(LUCI_TYPE)-%,%,$(LUCI_NAME))
LUCI_LANGUAGES:=$(sort $(filter-out templates,$(notdir $(wildcard ${CURDIR}/po/*))))
LUCI_DEFAULTS:=$(notdir $(wildcard ${CURDIR}/root/etc/uci-defaults/*))
LUCI_PKGARCH?=$(if $(realpath src/Makefile),,all)
+LUCI_SECTION?=luci
+LUCI_CATEGORY?=LuCI
# Language code titles
LUCI_LANG.ar=العربية (Arabic)
@@ -119,8 +121,8 @@ PKG_GITBRANCH?=$(if $(DUMP),x,$(strip $(shell \
include $(INCLUDE_DIR)/package.mk
define Package/$(PKG_NAME)
- SECTION:=luci
- CATEGORY:=LuCI
+ SECTION:=$(LUCI_SECTION)
+ CATEGORY:=$(LUCI_CATEGORY)
SUBMENU:=$(if $(LUCI_MENU.$(LUCI_TYPE)),$(LUCI_MENU.$(LUCI_TYPE)),$(LUCI_MENU.app))
TITLE:=$(if $(LUCI_TITLE),$(LUCI_TITLE),LuCI $(LUCI_NAME) $(LUCI_TYPE))
DEPENDS:=$(LUCI_DEPENDS)