jangala-dev / jangala-dev/lua-fibers

Create OpenWrt makefile

Open
#10 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

good first issue
Dominant language
Lua
Stars
1
Forks
0
PR merge metrics
No merged PRs in 30d

Description

**FEATURE REQUEST**

To easily integrate fibers into our work we should make an OpenWrt makefile for it. As a pure Lua package it should be relatively straightforward - there's lots of examples in our [jng_openwrt_packages](https://github.com/jangala-dev/jng_openwrt_pkgs/) repo (for example lua-lumen and lua-http).

To use LuaJIT all the packages needed are already in OpenWrt's repos/already have been ported. However, if we were to use plain Lua, we will need to port [cffi-lua](https://github.com/q66/cffi-lua). This is a C++ program so will need a slightly more complex makefile. It's worth looking to see how OpenWrt deals with [other Meson packages](https://github.com/search?q=repo%3Aopenwrt%2Fpackages+meson+makefile&type=code). Buiilding cffi-lua on the command line is quite simple, we do so in the devcontainer process in the [repo](https://github.com/jangala-dev/lua-fibers/blob/main/.devcontainer/postCreateCommand.sh)

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Compare the lua-lumen and lua-http examples in the jng_openwrt_packages repository, then inspect .devcontainer/postCreateCommand.sh for how cffi-lua is built. Check OpenWrt's handling of Meson packages and determine whether the package can use LuaJIT or needs the cffi-lua port; done means the OpenWrt makefile builds and integrates lua-fibers.

Written by the indexing model from the issue text.

Assessment

Tech stack
lua
Domain
build-system, embedded-iot
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.