Skip to content

Commit 4d82fa2

Browse files
add Lunatik submodule
1 parent f462465 commit 4d82fa2

5 files changed

Lines changed: 15 additions & 0 deletions

File tree

.gitmodules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[submodule "lib/lunatik"]
2+
path = lib/lunatik
3+
url = https://github.com/luainkernel/lunatik.git

init/Kconfig

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1307,6 +1307,12 @@ config HAVE_PCSPKR_PLATFORM
13071307
config BPF
13081308
bool
13091309

1310+
config LUNATIK
1311+
bool "Lunatik"
1312+
default n
1313+
help
1314+
Support for the Lua interpreter
1315+
13101316
menuconfig EXPERT
13111317
bool "Configure standard kernel features (expert users)"
13121318
# Unhide debug options, to make the on-by-default options visible

lib/Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -300,3 +300,6 @@ obj-$(CONFIG_OBJAGG) += objagg.o
300300

301301
# KUnit tests
302302
obj-$(CONFIG_LIST_KUNIT_TEST) += list-test.o
303+
subdir-ccflags-y += -I$(srctree)/lib/lunatik/lua \
304+
-D_KERNEL
305+
obj-$(CONFIG_LUNATIK) += lunatik/

lib/lunatik

Submodule lunatik added at fb7ef47

net/core/Makefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ obj-y := sock.o request_sock.o skbuff.o datagram.o stream.o scm.o \
88

99
obj-$(CONFIG_SYSCTL) += sysctl_net_core.o
1010

11+
CFLAGS_dev.o = -Ilib/lunatik/lua/ -D_KERNEL
12+
CFLAGS_filter.o = -Ilib/lunatik/lua/ -D_KERNEL
1113
obj-y += dev.o dev_addr_lists.o dst.o netevent.o \
1214
neighbour.o rtnetlink.o utils.o link_watch.o filter.o \
1315
sock_diag.o dev_ioctl.o tso.o sock_reuseport.o \

0 commit comments

Comments
 (0)