[libj6] Move remaining j6 headers out of src/include

This means the kernel now depends on libj6. I've added the macro
definition __j6kernel when building for the kernel target, so I can
remove parts with #ifdefs.
This commit is contained in:
Justin C. Miller
2022-01-12 16:04:16 -08:00
parent 2ff7a0864b
commit 950360fddc
19 changed files with 31 additions and 14 deletions

View File

@@ -5,10 +5,15 @@ j6 = module("j6",
includes = [ "include" ],
sources = [
"init.cpp",
"include/j6/syscalls.h.cog",
"syscalls.s.cog",
])
from glob import glob
definitions = glob('definitions/**/*.def', recursive=True)
j6.add_input("include/j6/syscalls.h.cog", deps=definitions)
j6.add_input("syscalls.s.cog", deps=definitions)
j6.add_depends([
"include/j6/syscalls.h.cog",
"syscalls.s.cog",
], definitions)