OpenWrt package feed for luainkernel
The feed is comprised by the following packages:
- lunatik
- lua5.4, as a dependency for executing Lunatik user-space utilities
In order to use this feed into an OpenWrt build, add the following line to your feeds.conf.default:
src-git luainkernel https://github.com/luainkernel/openwrt_feed.git;lunatik-4.3After that, update and install the feed:
./scripts/feeds update luainkernel
./scripts/feeds install -a -p luainkernelNote
Refer to OpenWrt Feeds for more information about how feeds work.
Important
Starting on Lunatik 4.0, Lua 5.4 is required for build configuration on the build machine. Make sure to have it installed.
For example, on Debian/Ubuntu machines, run sudo apt-get install lua5.4.
Setup the target platform configuration as usual but make sure to select kmod-lunatik under the following path:
Kernel modules --->
Lunatik --->
<*> kmod-lunatik................. Lunatik Lua-in-kernel runtime (core)
<*> kmod-lunatik-byteorder....... Lunatik byteorder bindings
<*> kmod-lunatik-completion...... Lunatik completion bindings
...Note
Each binding is a separate kmod-lunatik-<name> package under the same Lunatik submenu. Select only the bindings you need; kmod-lunatik (the core runtime) is required by all of them.
In order to build an image, execute:
make -j$(nproc)Important
For builds on WSL, make sure to follow Build system setup WSL.
Once a full image build is complete, Lunatik may be recompiled by executing the following command:
make package/feeds/luainkernel/lunatik/compile