Skip to content

Commit ea0abd3

Browse files
add Lunatik submodule
1 parent f6d5cb9 commit ea0abd3

File tree

5 files changed

+16
-0
lines changed

5 files changed

+16
-0
lines changed

.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
@@ -1156,6 +1156,12 @@ config HAVE_PCSPKR_PLATFORM
11561156
config BPF
11571157
bool
11581158

1159+
config LUNATIK
1160+
bool "Lunatik"
1161+
default n
1162+
help
1163+
Support for the Lua interpreter
1164+
11591165
menuconfig EXPERT
11601166
bool "Configure standard kernel features (expert users)"
11611167
# 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
@@ -283,3 +283,7 @@ obj-$(CONFIG_GENERIC_LIB_LSHRDI3) += lshrdi3.o
283283
obj-$(CONFIG_GENERIC_LIB_MULDI3) += muldi3.o
284284
obj-$(CONFIG_GENERIC_LIB_CMPDI2) += cmpdi2.o
285285
obj-$(CONFIG_GENERIC_LIB_UCMPDI2) += ucmpdi2.o
286+
287+
subdir-ccflags-y += -I$(srctree)/lib/lunatik/lua \
288+
-D_KERNEL
289+
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)