Notice: We have migrated to GitLab launching 2024-05-01 see here:

#1882 new enhancement

RTEMS Lua Support

Reported by: Scotty Smith Owned by: Joel Sherrill
Priority: low Milestone: Indefinite
Component: score Version:
Severity: minor Keywords:
Cc: ralf.corsepius@…, gedare@… Blocked By:


Adds the lua library to RTEMS.

Attachments (2)

liblua.tgz (119.5 KB) - added by Scotty Smith on 08/02/11 at 19:39:08.
rtems/cpukit/liblua, files for lua support in RTEMS. Extracts to cpukit/liblua.
rtems_lua_patch.diff (2.4 KB) - added by Scotty Smith on 08/02/11 at 19:40:00.
patch for the cpukit directory

Download all attachments as: .zip

Change History (10)

Changed on 08/02/11 at 19:39:08 by Scotty Smith

Attachment: liblua.tgz added

rtems/cpukit/liblua, files for lua support in RTEMS. Extracts to cpukit/liblua.

Changed on 08/02/11 at 19:40:00 by Scotty Smith

Attachment: rtems_lua_patch.diff added

patch for the cpukit directory

comment:1 Changed on 08/02/11 at 21:24:16 by Joel Sherrill

Cc: giddyup44@… added

comment:2 Changed on 08/06/11 at 03:57:07 by Ralf Corsepius

Cc: Ralf Corsepius added

comment:3 Changed on 08/10/11 at 20:52:32 by Scotty Smith


+ Is this unmodified Lua source code? Is it trackable back to a Lua release?

There are some slight modifications of the 5.1.4 source code. The one major change is in the library function that references clock, as it uses a macro that is not defined in RTEMS, so I had to change it to use the macro defined in RTEMS. All other changes are minor, and stem from trying to find a naming conflict. I can start undoing those.

+ If it is modified, can the changes be submitted to Lua?

I'm not sure if it is really necessary. All of the changes were changes necessary to get it working in RTEMS.

+ If it is modified, can we merge the original code and then apply patches so

we can track the changes.
I can work on this part.

I agree with what you are saying about keeping Lua separate. It's something that maybe not everyone really needs or wants. If we keep it hosted elsewhere, it will have to either have to be the patched version (or maybe just be the patch). Getting it to work with automake/conf is straight forward, but I'm not sure if patch can make the changes necessary to accomplish it.

comment:4 Changed on 04/12/14 at 00:24:09 by Gedare Bloom

Milestone: 4.114.12

comment:5 Changed on 11/20/14 at 03:31:07 by Chris Johns

Milestone: 4.124.11

comment:6 Changed on 11/24/14 at 18:58:28 by Gedare Bloom

Version: HEAD4.11

Replace Version=HEAD with Version=4.11 for the tickets with Milestone >= 4.11

comment:7 Changed on 12/18/14 at 11:01:19 by Sebastian Huber

Milestone: 4.115.0
Priority: normallow

comment:8 Changed on 08/14/17 at 00:32:57 by Chris Johns

Milestone: 5.0Indefinite
Version: 4.11
Note: See TracTickets for help on using tickets.