[Buildroot] [PATCH v4 1/1] ljsyscall: new package

Mike Zick minimod at morethan.org
Thu Jan 30 14:07:02 UTC 2014


On Thu, 30 Jan 2014 08:34:05 -0500
Danomi Manchego <danomimanchego123 at gmail.com> wrote:

> François,
> 
> On Thu, Jan 30, 2014 at 6:46 AM, François Perrad
> <francois.perrad at gadz.org> wrote:
> >> +LJSYSCALL_TARGET_DIR =
> >> $(TARGET_DIR)/usr/share/luajit-$(LUAJIT_VERSION)  
> >
> > Danomi,
> >
> > I think that the right destination is :
> >     LJSYSCALL_TARGET_DIR =
> > $(TARGET_DIR)/usr/share/lua/$(LUAINTERPRETER_ABIVER)
> >
> > 1) ljsyscall is designed for LuaJIT and PUC Lua + luaffi  
> 
> Looking through the README.md sections that mention Lua, it seems like
> the ability to work with non-LuaJIT is not a priority.  E.g., "It now
> runs again with luaffi under standard Lua 5.2 (and probably 5.1,
> untested)."  ("Runs again" makes it sound like it worked for while,
> lost compatibility, and maybe works again - does not inspire
> confidence.)  Besides, buildroot does not [currently] have luaffi.  So
> I don't think the Lua case is currently an option for a
> buildroot-generated system.
> 

Ah, but it easily could.

I have used Lua Alien with 5.1 -
http://alien.luaforge.net/

Which requires libffi -
https://sourceware.org/libffi/

My particular use-case was to interface with binary blobs.

I have not built them with Buildroot, but outside of Buildroot.
So I do not have a BR patch handy to add them.

They required a bit of tweaking library pathnames to support 
a multi-lib (desktop) layout but it should be possible to deal 
with them inside of BR.

Mike



More information about the buildroot mailing list