* Reintroduced compiling support

* Added switch for Production (compiled) / Debug (source) - Target to OpenWRT configuration menu
This commit is contained in:
Steven Barth 2008-05-30 20:49:23 +00:00
parent d8ba05412c
commit 464f6ed456

View file

@ -16,7 +16,6 @@ PKG_SOURCE_VERSION:=$(PKG_REV)
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION) PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
# LUA_TARGET:=compile LUAC=$(BUILD_DIR_HOST)/lua/luac
LUA_TARGET:=source LUA_TARGET:=source
PKG_SELECTED_MODULES:= PKG_SELECTED_MODULES:=
@ -79,6 +78,24 @@ define Package/luci-core/install
$(call Package/luci/install/template,$(1),libs/core) $(call Package/luci/install/template,$(1),libs/core)
endef 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 ### ### Libraries ###
define Package/luci-cbi define Package/luci-cbi