summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHadrien Boutteville <hadrien.boutteville@gmail.com>2014-03-30 03:38:01 (GMT)
committer Thomas Petazzoni <thomas.petazzoni@free-electrons.com>2014-03-30 09:47:32 (GMT)
commitbbfc41cdc2b9295aa7d380009e266fcb71f90b18 (patch)
treed18bc392417c61eaafe0de51750231a1c0b33ba6
parentb1ec31a4dd2b7bd8959bdbc6d44e2cf2b56f8363 (diff)
downloadbuildroot-bbfc41cdc2b9295aa7d380009e266fcb71f90b18.tar.gz
buildroot-bbfc41cdc2b9295aa7d380009e266fcb71f90b18.tar.bz2
libubox: Lua binding needs mmu and fix coding style
Fixes http://autobuild.buildroot.net/results/4e1/4e112e4463fef7ad8757259b222fab10fbd09d0d/ The Lua binding option of libubox uses fork() so it needs the MMU. By the way, correction of coding style as stated in the buildroot manual. Signed-off-by: Hadrien Boutteville <hadrien.boutteville@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
-rw-r--r--package/libubox/libubox.mk10
1 files changed, 6 insertions, 4 deletions
diff --git a/package/libubox/libubox.mk b/package/libubox/libubox.mk
index 22efc9a..b552227 100644
--- a/package/libubox/libubox.mk
+++ b/package/libubox/libubox.mk
@@ -10,12 +10,14 @@ LIBUBOX_LICENSE = LGPLv2.1, GPLv2, BSD-3c, MIT
LIBUBOX_INSTALL_STAGING = YES
LIBUBOX_DEPENDENCIES = host-pkgconf $(if $(BR2_PACKAGE_JSON_C),json-c)
+ifeq ($(BR2_USE_MMU),y) # fork()
ifeq ($(BR2_PACKAGE_LUA_5_1),y)
- LIBUBOX_DEPENDENCIES += lua
- LIBUBOX_CONF_OPT += -DLUAPATH=$(STAGING_DIR)/usr/lib/lua/5.1 \
- -DLUA_CFLAGS=-I$(STAGING_DIR)/usr/include
+LIBUBOX_DEPENDENCIES += lua
+LIBUBOX_CONF_OPT += -DLUAPATH=$(STAGING_DIR)/usr/lib/lua/5.1 \
+ -DLUA_CFLAGS=-I$(STAGING_DIR)/usr/include
else
- LIBUBOX_CONF_OPT += -DBUILD_LUA:BOOL=OFF
+LIBUBOX_CONF_OPT += -DBUILD_LUA:BOOL=OFF
endif
+endif # MMU
$(eval $(cmake-package))