Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/1] libubox: Lua binding needs mmu and fix coding style
@ 2014-03-30  3:38 Hadrien Boutteville
  2014-03-30  9:48 ` Thomas Petazzoni
  0 siblings, 1 reply; 2+ messages in thread
From: Hadrien Boutteville @ 2014-03-30  3:38 UTC (permalink / raw)
  To: buildroot

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>
---
 package/libubox/libubox.mk | 10 ++++++----
 1 file 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))

^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-03-30  9:48 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-03-30  3:38 [Buildroot] [PATCH 1/1] libubox: Lua binding needs mmu and fix coding style Hadrien Boutteville
2014-03-30  9:48 ` Thomas Petazzoni

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox