diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 00000000000000..0bb86d779f31f9 --- /dev/null +++ b/.gitmodules @@ -0,0 +1,6 @@ +[submodule "lib/luadata"] + path = lib/luadata + url = https://github.com/lneto/luadata.git +[submodule "lib/lunatik"] + path = lib/lunatik + url = https://github.com/luainkernel/lunatik.git diff --git a/include/linux/luadata/binary.h b/include/linux/luadata/binary.h new file mode 120000 index 00000000000000..b7fab7485e3bc2 --- /dev/null +++ b/include/linux/luadata/binary.h @@ -0,0 +1 @@ +../../../lib/luadata/binary.h \ No newline at end of file diff --git a/include/linux/luadata/data.h b/include/linux/luadata/data.h new file mode 120000 index 00000000000000..971ad315ffe50c --- /dev/null +++ b/include/linux/luadata/data.h @@ -0,0 +1 @@ +../../../lib/luadata/data.h \ No newline at end of file diff --git a/include/linux/luadata/handle.h b/include/linux/luadata/handle.h new file mode 120000 index 00000000000000..90a3757b67cd0b --- /dev/null +++ b/include/linux/luadata/handle.h @@ -0,0 +1 @@ +../../../lib/luadata/handle.h \ No newline at end of file diff --git a/include/linux/luadata/layout.h b/include/linux/luadata/layout.h new file mode 120000 index 00000000000000..9942972d905c90 --- /dev/null +++ b/include/linux/luadata/layout.h @@ -0,0 +1 @@ +../../../lib/luadata/layout.h \ No newline at end of file diff --git a/include/linux/luadata/luadata.h b/include/linux/luadata/luadata.h new file mode 120000 index 00000000000000..42fec96b5b4d74 --- /dev/null +++ b/include/linux/luadata/luadata.h @@ -0,0 +1 @@ +../../../lib/luadata/luadata.h \ No newline at end of file diff --git a/include/linux/luadata/luautil.h b/include/linux/luadata/luautil.h new file mode 120000 index 00000000000000..4c7a4ca0f487d0 --- /dev/null +++ b/include/linux/luadata/luautil.h @@ -0,0 +1 @@ +../../../lib/luadata/luautil.h \ No newline at end of file diff --git a/include/linux/lunatik/arch/arm/asm.h b/include/linux/lunatik/arch/arm/asm.h new file mode 120000 index 00000000000000..f70ea4aed31eb9 --- /dev/null +++ b/include/linux/lunatik/arch/arm/asm.h @@ -0,0 +1 @@ +../../../../../lib/lunatik/arch/arm/asm.h \ No newline at end of file diff --git a/include/linux/lunatik/arch/arm/cdefs.h b/include/linux/lunatik/arch/arm/cdefs.h new file mode 120000 index 00000000000000..5a36b840247277 --- /dev/null +++ b/include/linux/lunatik/arch/arm/cdefs.h @@ -0,0 +1 @@ +../../../../../lib/lunatik/arch/arm/cdefs.h \ No newline at end of file diff --git a/include/linux/lunatik/arch/arm64/asm.h b/include/linux/lunatik/arch/arm64/asm.h new file mode 120000 index 00000000000000..512d93901fcb21 --- /dev/null +++ b/include/linux/lunatik/arch/arm64/asm.h @@ -0,0 +1 @@ +../../../../../lib/lunatik/arch/arm64/asm.h \ No newline at end of file diff --git a/include/linux/lunatik/arch/mips/asm.h b/include/linux/lunatik/arch/mips/asm.h new file mode 120000 index 00000000000000..873bf484250d15 --- /dev/null +++ b/include/linux/lunatik/arch/mips/asm.h @@ -0,0 +1 @@ +../../../../../lib/lunatik/arch/mips/asm.h \ No newline at end of file diff --git a/include/linux/lunatik/arch/mips/regdef.h b/include/linux/lunatik/arch/mips/regdef.h new file mode 120000 index 00000000000000..cd3b3b4ac0cf19 --- /dev/null +++ b/include/linux/lunatik/arch/mips/regdef.h @@ -0,0 +1 @@ +../../../../../lib/lunatik/arch/mips/regdef.h \ No newline at end of file diff --git a/include/linux/lunatik/lapi.h b/include/linux/lunatik/lapi.h new file mode 120000 index 00000000000000..542d44d2c286b3 --- /dev/null +++ b/include/linux/lunatik/lapi.h @@ -0,0 +1 @@ +../../../lib/lunatik/lua/lapi.h \ No newline at end of file diff --git a/include/linux/lunatik/lauxlib.h b/include/linux/lunatik/lauxlib.h new file mode 120000 index 00000000000000..ec916122f55348 --- /dev/null +++ b/include/linux/lunatik/lauxlib.h @@ -0,0 +1 @@ +../../../lib/lunatik/lua/lauxlib.h \ No newline at end of file diff --git a/include/linux/lunatik/lcode.h b/include/linux/lunatik/lcode.h new file mode 120000 index 00000000000000..35afe2e52ddb24 --- /dev/null +++ b/include/linux/lunatik/lcode.h @@ -0,0 +1 @@ +../../../lib/lunatik/lua/lcode.h \ No newline at end of file diff --git a/include/linux/lunatik/lctype.h b/include/linux/lunatik/lctype.h new file mode 120000 index 00000000000000..da7fa2f70a934c --- /dev/null +++ b/include/linux/lunatik/lctype.h @@ -0,0 +1 @@ +../../../lib/lunatik/lua/lctype.h \ No newline at end of file diff --git a/include/linux/lunatik/ldebug.h b/include/linux/lunatik/ldebug.h new file mode 120000 index 00000000000000..07f354fbfeb2be --- /dev/null +++ b/include/linux/lunatik/ldebug.h @@ -0,0 +1 @@ +../../../lib/lunatik/lua/ldebug.h \ No newline at end of file diff --git a/include/linux/lunatik/ldo.h b/include/linux/lunatik/ldo.h new file mode 120000 index 00000000000000..4aad69a58c8a13 --- /dev/null +++ b/include/linux/lunatik/ldo.h @@ -0,0 +1 @@ +../../../lib/lunatik/lua/ldo.h \ No newline at end of file diff --git a/include/linux/lunatik/lfunc.h b/include/linux/lunatik/lfunc.h new file mode 120000 index 00000000000000..6ac01a2bec3c65 --- /dev/null +++ b/include/linux/lunatik/lfunc.h @@ -0,0 +1 @@ +../../../lib/lunatik/lua/lfunc.h \ No newline at end of file diff --git a/include/linux/lunatik/lgc.h b/include/linux/lunatik/lgc.h new file mode 120000 index 00000000000000..8b29aeedfa88f1 --- /dev/null +++ b/include/linux/lunatik/lgc.h @@ -0,0 +1 @@ +../../../lib/lunatik/lua/lgc.h \ No newline at end of file diff --git a/include/linux/lunatik/llex.h b/include/linux/lunatik/llex.h new file mode 120000 index 00000000000000..3088b99d922105 --- /dev/null +++ b/include/linux/lunatik/llex.h @@ -0,0 +1 @@ +../../../lib/lunatik/lua/llex.h \ No newline at end of file diff --git a/include/linux/lunatik/llimits.h b/include/linux/lunatik/llimits.h new file mode 120000 index 00000000000000..feb035df1f2df2 --- /dev/null +++ b/include/linux/lunatik/llimits.h @@ -0,0 +1 @@ +../../../lib/lunatik/lua/llimits.h \ No newline at end of file diff --git a/include/linux/lunatik/lmem.h b/include/linux/lunatik/lmem.h new file mode 120000 index 00000000000000..9b5077e853d10e --- /dev/null +++ b/include/linux/lunatik/lmem.h @@ -0,0 +1 @@ +../../../lib/lunatik/lua/lmem.h \ No newline at end of file diff --git a/include/linux/lunatik/lobject.h b/include/linux/lunatik/lobject.h new file mode 120000 index 00000000000000..7f2e74474103c0 --- /dev/null +++ b/include/linux/lunatik/lobject.h @@ -0,0 +1 @@ +../../../lib/lunatik/lua/lobject.h \ No newline at end of file diff --git a/include/linux/lunatik/lopcodes.h b/include/linux/lunatik/lopcodes.h new file mode 120000 index 00000000000000..3fc0ce21684b1e --- /dev/null +++ b/include/linux/lunatik/lopcodes.h @@ -0,0 +1 @@ +../../../lib/lunatik/lua/lopcodes.h \ No newline at end of file diff --git a/include/linux/lunatik/lparser.h b/include/linux/lunatik/lparser.h new file mode 120000 index 00000000000000..642d9641367ba2 --- /dev/null +++ b/include/linux/lunatik/lparser.h @@ -0,0 +1 @@ +../../../lib/lunatik/lua/lparser.h \ No newline at end of file diff --git a/include/linux/lunatik/lprefix.h b/include/linux/lunatik/lprefix.h new file mode 120000 index 00000000000000..5c79dd409ff4db --- /dev/null +++ b/include/linux/lunatik/lprefix.h @@ -0,0 +1 @@ +../../../lib/lunatik/lua/lprefix.h \ No newline at end of file diff --git a/include/linux/lunatik/lstate.h b/include/linux/lunatik/lstate.h new file mode 120000 index 00000000000000..69d2ce549c7697 --- /dev/null +++ b/include/linux/lunatik/lstate.h @@ -0,0 +1 @@ +../../../lib/lunatik/lua/lstate.h \ No newline at end of file diff --git a/include/linux/lunatik/lstring.h b/include/linux/lunatik/lstring.h new file mode 120000 index 00000000000000..ed4c58f322d8a2 --- /dev/null +++ b/include/linux/lunatik/lstring.h @@ -0,0 +1 @@ +../../../lib/lunatik/lua/lstring.h \ No newline at end of file diff --git a/include/linux/lunatik/ltable.h b/include/linux/lunatik/ltable.h new file mode 120000 index 00000000000000..84e5633233fecf --- /dev/null +++ b/include/linux/lunatik/ltable.h @@ -0,0 +1 @@ +../../../lib/lunatik/lua/ltable.h \ No newline at end of file diff --git a/include/linux/lunatik/ltests.h b/include/linux/lunatik/ltests.h new file mode 120000 index 00000000000000..8c054cccc43c2e --- /dev/null +++ b/include/linux/lunatik/ltests.h @@ -0,0 +1 @@ +../../../lib/lunatik/lua/ltests.h \ No newline at end of file diff --git a/include/linux/lunatik/ltm.h b/include/linux/lunatik/ltm.h new file mode 120000 index 00000000000000..e381a7faadc4e2 --- /dev/null +++ b/include/linux/lunatik/ltm.h @@ -0,0 +1 @@ +../../../lib/lunatik/lua/ltm.h \ No newline at end of file diff --git a/include/linux/lunatik/lua.h b/include/linux/lunatik/lua.h new file mode 120000 index 00000000000000..0ad59f148fdc23 --- /dev/null +++ b/include/linux/lunatik/lua.h @@ -0,0 +1 @@ +../../../lib/lunatik/lua/lua.h \ No newline at end of file diff --git a/include/linux/lunatik/luaconf.h b/include/linux/lunatik/luaconf.h new file mode 120000 index 00000000000000..e40a59a7720398 --- /dev/null +++ b/include/linux/lunatik/luaconf.h @@ -0,0 +1 @@ +../../../lib/lunatik/lua/luaconf.h \ No newline at end of file diff --git a/include/linux/lunatik/lualib.h b/include/linux/lunatik/lualib.h new file mode 120000 index 00000000000000..16c9a9507a4b66 --- /dev/null +++ b/include/linux/lunatik/lualib.h @@ -0,0 +1 @@ +../../../lib/lunatik/lua/lualib.h \ No newline at end of file diff --git a/include/linux/lunatik/lundump.h b/include/linux/lunatik/lundump.h new file mode 120000 index 00000000000000..c18559cf2c7f2d --- /dev/null +++ b/include/linux/lunatik/lundump.h @@ -0,0 +1 @@ +../../../lib/lunatik/lua/lundump.h \ No newline at end of file diff --git a/include/linux/lunatik/lvm.h b/include/linux/lunatik/lvm.h new file mode 120000 index 00000000000000..c5782992c79d3b --- /dev/null +++ b/include/linux/lunatik/lvm.h @@ -0,0 +1 @@ +../../../lib/lunatik/lua/lvm.h \ No newline at end of file diff --git a/include/linux/lunatik/lzio.h b/include/linux/lunatik/lzio.h new file mode 120000 index 00000000000000..89d6fe110c296c --- /dev/null +++ b/include/linux/lunatik/lzio.h @@ -0,0 +1 @@ +../../../lib/lunatik/lua/lzio.h \ No newline at end of file diff --git a/include/linux/lunatik/util/int_lib.h b/include/linux/lunatik/util/int_lib.h new file mode 120000 index 00000000000000..aa6ac0ff6e81f5 --- /dev/null +++ b/include/linux/lunatik/util/int_lib.h @@ -0,0 +1 @@ +../../../../lib/lunatik/util/int_lib.h \ No newline at end of file diff --git a/lib/Makefile b/lib/Makefile index fb7697031a797f..56ea3f88136f18 100644 --- a/lib/Makefile +++ b/lib/Makefile @@ -228,6 +228,11 @@ $(foreach file, $(libfdt_files), \ $(eval CFLAGS_$(file) = -I $(srctree)/scripts/dtc/libfdt)) lib-$(CONFIG_LIBFDT) += $(libfdt_files) +subdir-ccflags-y += -I$(srctree)/lib/luadata/ -I$(srctree)/include/linux/lunatik/ \ + -D_KERNEL +obj-$(CONFIG_LUNATIK) += lunatik/ +obj-$(CONFIG_LUADATA) += luadata/ + obj-$(CONFIG_RBTREE_TEST) += rbtree_test.o obj-$(CONFIG_INTERVAL_TREE_TEST) += interval_tree_test.o diff --git a/lib/luadata b/lib/luadata new file mode 160000 index 00000000000000..bd51c03b9a1801 --- /dev/null +++ b/lib/luadata @@ -0,0 +1 @@ +Subproject commit bd51c03b9a1801b572911df02b17b29d02d7ba68 diff --git a/lib/lunatik b/lib/lunatik new file mode 160000 index 00000000000000..ca4448b7258390 --- /dev/null +++ b/lib/lunatik @@ -0,0 +1 @@ +Subproject commit ca4448b72583905b6373cce2b42580ed37eb0dc5