* [Buildroot] [V2 1/2] ljsyscall: remove dependency on some architecture
@ 2015-03-21 12:01 Francois Perrad
2015-03-21 12:01 ` [Buildroot] [V2 2/2] ljlinenoise: " Francois Perrad
2015-03-23 18:17 ` [Buildroot] [V2 1/2] ljsyscall: " Thomas Petazzoni
0 siblings, 2 replies; 3+ messages in thread
From: Francois Perrad @ 2015-03-21 12:01 UTC (permalink / raw)
To: buildroot
ljsyscall is available for all arch supported by LuaJIT.
refactor LJSYSCALL_ARCH : dispatch all arch.
Signed-off-by: Francois Perrad <francois.perrad@gadz.org>
---
package/ljsyscall/Config.in | 4 +---
package/ljsyscall/ljsyscall.mk | 7 ++++++-
2 files changed, 7 insertions(+), 4 deletions(-)
diff --git a/package/ljsyscall/Config.in b/package/ljsyscall/Config.in
index dcbd521..149e71d 100644
--- a/package/ljsyscall/Config.in
+++ b/package/ljsyscall/Config.in
@@ -2,13 +2,11 @@ config BR2_PACKAGE_LJSYSCALL
bool "ljsyscall"
# ljsyscall is specifically for LuaJIT, not Lua.
depends on BR2_PACKAGE_LUAJIT
- # ljsyscall is only available for some target architectures
- depends on BR2_i386 || BR2_x86_64 || BR2_powerpc || BR2_arm || BR2_armeb
help
An FFI implementation of the Linux and NetBSD kernel ABIs for LuaJIT.
http://github.com/justincormack/ljsyscall
comment "ljsyscall needs LuaJIT"
- depends on !BR2_PACKAGE_LUAJIT && (BR2_i386 || BR2_x86_64 || BR2_powerpc || BR2_arm || BR2_armeb)
+ depends on !BR2_PACKAGE_LUAJIT
diff --git a/package/ljsyscall/ljsyscall.mk b/package/ljsyscall/ljsyscall.mk
index a17da3f..1c6c2c1 100644
--- a/package/ljsyscall/ljsyscall.mk
+++ b/package/ljsyscall/ljsyscall.mk
@@ -9,13 +9,18 @@ LJSYSCALL_SITE = $(call github,justincormack,ljsyscall,$(LJSYSCALL_VERSION))
LJSYSCALL_LICENSE = MIT
LJSYSCALL_LICENSE_FILES = COPYRIGHT
+# dispatch all architectures of LuaJIT
ifeq ($(BR2_i386),y)
LJSYSCALL_ARCH = x86
else ifeq ($(BR2_x86_64),y)
LJSYSCALL_ARCH = x64
else ifeq ($(BR2_powerpc),y)
LJSYSCALL_ARCH = ppc
-else ifeq ($(LJSYSCALL_ARCH),)
+else ifeq ($(BR2_arm)$(BR2_armeb),y)
+LJSYSCALL_ARCH = arm
+else ifeq ($(BR2_mips)$(BR2_mipsel),y)
+LJSYSCALL_ARCH = mips
+else
LJSYSCALL_ARCH = $(BR2_ARCH)
endif
--
2.1.0
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [Buildroot] [V2 2/2] ljlinenoise: remove dependency on some architecture
2015-03-21 12:01 [Buildroot] [V2 1/2] ljsyscall: remove dependency on some architecture Francois Perrad
@ 2015-03-21 12:01 ` Francois Perrad
2015-03-23 18:17 ` [Buildroot] [V2 1/2] ljsyscall: " Thomas Petazzoni
1 sibling, 0 replies; 3+ messages in thread
From: Francois Perrad @ 2015-03-21 12:01 UTC (permalink / raw)
To: buildroot
ljsyscall is available for all arch supported by LuaJIT.
Signed-off-by: Francois Perrad <francois.perrad@gadz.org>
---
package/ljlinenoise/Config.in | 3 ---
1 file changed, 3 deletions(-)
diff --git a/package/ljlinenoise/Config.in b/package/ljlinenoise/Config.in
index 17be1be..be83bdb 100644
--- a/package/ljlinenoise/Config.in
+++ b/package/ljlinenoise/Config.in
@@ -4,8 +4,6 @@ config BR2_PACKAGE_LJLINENOISE
select BR2_PACKAGE_LJSYSCALL
# ljsyscall is specifically for LuaJIT, not Lua.
depends on BR2_PACKAGE_LUAJIT
- # ljsyscall is only available for some target architectures
- depends on BR2_i386 || BR2_x86_64 || BR2_powerpc || BR2_arm || BR2_armeb
help
ljlinenoise is a pure LuaJIT port of linenoise,
a small alternative to readline and libedit.
@@ -14,4 +12,3 @@ config BR2_PACKAGE_LJLINENOISE
comment "ljlinenoise needs LuaJIT"
depends on !BR2_PACKAGE_LUAJIT
- depends on BR2_i386 || BR2_x86_64 || BR2_powerpc || BR2_arm || BR2_armeb
--
2.1.0
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [Buildroot] [V2 1/2] ljsyscall: remove dependency on some architecture
2015-03-21 12:01 [Buildroot] [V2 1/2] ljsyscall: remove dependency on some architecture Francois Perrad
2015-03-21 12:01 ` [Buildroot] [V2 2/2] ljlinenoise: " Francois Perrad
@ 2015-03-23 18:17 ` Thomas Petazzoni
1 sibling, 0 replies; 3+ messages in thread
From: Thomas Petazzoni @ 2015-03-23 18:17 UTC (permalink / raw)
To: buildroot
Dear Francois Perrad,
On Sat, 21 Mar 2015 13:01:37 +0100, Francois Perrad wrote:
> ljsyscall is available for all arch supported by LuaJIT.
> refactor LJSYSCALL_ARCH : dispatch all arch.
>
> Signed-off-by: Francois Perrad <francois.perrad@gadz.org>
Thanks, both patches applied.
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2015-03-23 18:17 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-03-21 12:01 [Buildroot] [V2 1/2] ljsyscall: remove dependency on some architecture Francois Perrad
2015-03-21 12:01 ` [Buildroot] [V2 2/2] ljlinenoise: " Francois Perrad
2015-03-23 18:17 ` [Buildroot] [V2 1/2] ljsyscall: " Thomas Petazzoni
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox