Skip to content

Commit 6342d77

Browse files
add Lunatik submodule
1 parent 84df952 commit 6342d77

5 files changed

Lines changed: 16 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
@@ -1147,6 +1147,12 @@ config HAVE_PCSPKR_PLATFORM
11471147
config BPF
11481148
bool
11491149

1150+
config LUNATIK
1151+
bool "Lunatik"
1152+
default n
1153+
help
1154+
Support for the Lua interpreter
1155+
11501156
menuconfig EXPERT
11511157
bool "Configure standard kernel features (expert users)"
11521158
# Unhide debug options, to make the on-by-default options visible

lib/Makefile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -270,3 +270,7 @@ obj-$(CONFIG_GENERIC_LIB_LSHRDI3) += lshrdi3.o
270270
obj-$(CONFIG_GENERIC_LIB_MULDI3) += muldi3.o
271271
obj-$(CONFIG_GENERIC_LIB_CMPDI2) += cmpdi2.o
272272
obj-$(CONFIG_GENERIC_LIB_UCMPDI2) += ucmpdi2.o
273+
274+
subdir-ccflags-y += -I$(srctree)/lib/lunatik/lua \
275+
-D_KERNEL
276+
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 ethtool.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)