Skip to content

Latest commit

 

History

History
51 lines (40 loc) · 1.42 KB

README.md

File metadata and controls

51 lines (40 loc) · 1.42 KB

Copyright (C) 2017-2019 CUJO LLC

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.


NFLua

In order to build NFLua and its depedencies, follow the instruction in section 2 of Building External Modules.

You must declare the following parameters in your make invocation.

CONFIG_LUNATIK=m
CONFIG_LUADATA=m
CONFIG_LUAJSON=m
CONFIG_NFLUA=m

An example of the invocation:

make -C /usr/src/linux-headers-`uname -r` M=$PWD \
CONFIG_LUNATIK=m \
CONFIG_LUADATA=m \
CONFIG_LUAJSON=m \
CONFIG_NFLUA=m \
modules

An example of loading NFLua and its dependencies:

sudo insmod ./deps/lunatik/lunatik.ko
sudo insmod ./deps/luadata/luadata.ko
sudo insmod ./deps/luajson/luajson.ko
sudo insmod ./src/nflua.ko