* Added switch for Production (compiled) / Debug (source) - Target to OpenWRT configuration menu
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
-# LUA_TARGET:=compile LUAC=$(BUILD_DIR_HOST)/lua/luac
LUA_TARGET:=source
PKG_SELECTED_MODULES:=
$(call Package/luci/install/template,$(1),libs/core)
endef
+define Package/luci-core/config
+ choice
+ prompt "Build Target"
+ default PACKAGE_luci-core_compile
+
+ config PACKAGE_luci-core_compile
+ bool "Production"
+
+ config PACKAGE_luci-core_source
+ bool "Debug"
+
+ endchoice
+endef
+
+ifneq ($(CONFIG_PACKAGE_luci-core_compile),)
+ LUA_TARGET:=compile
+endif
+
### Libraries ###
define Package/luci-cbi