e09c0444f7
The Lua binding option of libuci uses fork() so it needs the MMU. Finally, libuci fails to build with Lua 5.2 because it uses functions removed from this version. Fix it by activating the option only with Lua 5.1. [Thomas: use LIBUCI_ and not LIBUBOX_ otherwise the patch doesn't work.] Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
24 lines
643 B
Makefile
24 lines
643 B
Makefile
################################################################################
|
|
#
|
|
# libuci
|
|
#
|
|
################################################################################
|
|
|
|
LIBUCI_VERSION = 262fede3e8c8c08c1eb0d1be9bf102232fb86cb9
|
|
LIBUCI_SITE = git://nbd.name/uci.git
|
|
LIBUCI_LICENSE = LGPLv2.1
|
|
LIBUCI_INSTALL_STAGING = YES
|
|
LIBUCI_DEPENDENCIES = libubox
|
|
|
|
ifeq ($(BR2_USE_MMU),y) # fork()
|
|
ifeq ($(BR2_PACKAGE_LUA_5_1),y)
|
|
LIBUCI_DEPENDENCIES += lua
|
|
LIBUCI_CONF_OPT += -DLUAPATH=$(STAGING_DIR)/usr/lib/lua/5.1 \
|
|
-DLUA_CFLAGS=-I$(STAGING_DIR)/usr/include
|
|
else
|
|
LIBUCI_CONF_OPT += -DBUILD_LUA:BOOL=OFF
|
|
endif
|
|
endif # MMU
|
|
|
|
$(eval $(cmake-package))
|