-
-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathrsconstruct.toml
More file actions
86 lines (65 loc) · 3.51 KB
/
Copy pathrsconstruct.toml
File metadata and controls
86 lines (65 loc) · 3.51 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
# rsconstruct build configuration for this repository.
# ─── analyzers ───────────────────────────────────────────────────────────────
[analyzer.tera]
[analyzer.python]
# ─── templating ──────────────────────────────────────────────────────────────
# Convention: tera configs are Lua (config/*.lua). Every dep_auto entry
# listed here must exist: rsconstruct rejects a missing one at config load.
# Repos still on config/*.py keep a dep_inputs override in their local
# overlay until converted.
[processor.tera]
dep_auto = [
"config/project.lua",
"config/personal.lua",
"config/version.lua",
]
src_dirs = ["tera.templates"]
# ─── python ──────────────────────────────────────────────────────────────────
[processor.ruff]
src_dirs = ["scripts", "config"]
[processor.pylint]
src_dirs = ["scripts", "config"]
[processor.mypy]
src_dirs = ["scripts", "config"]
[processor.luacheck]
src_dirs = ["config"]
# ─── toml / yaml / json ──────────────────────────────────────────────────────
[processor.taplo]
src_dirs = ["."]
# ─── repo-specific configuration ────────────────────────────────────────────
# The Makefile drove Kbuild for the C parts, compiled the C++ parts with g++
# using flags derived from the kernel's, and relinked the module to include
# them. src/Kbuild now carries the module description with the C++ objects
# as prebuilt members, and scripts/build_kcpp.py compiles them and runs
# Kbuild, which does the linking itself. Sources live in src/; the build
# runs in a temporary directory and only its results, kcpp.ko and flags.cfg,
# are copied to out/. The Makefile's insmod/rmmod/log targets were
# operational helpers, not build steps.
[processor.explicit.kcpp]
command = "scripts/build_kcpp.py"
inputs = ["src/Kbuild", "scripts/build_kcpp.py", "scripts/process_flags.py"]
input_globs = ["src/*.c", "src/*.cc", "src/*.h"]
output_files = ["out/kcpp.ko", "out/flags.cfg"]
# the module is compiled against kernel headers; on a CI runner that has no
# headers for its own kernel the generic package supplies a build tree
[dependencies]
system = ["linux-headers-generic"]
# the Makefile also ran the kernel's checkpatch.pl over the C sources
[processor.checkpatch]
src_dirs = ["src"]
src_extensions = [".c"]
# lint the GitHub Actions workflow files with actionlint
[processor.actionlint]
src_dirs = [".github/workflows"]
# ─── markdown ────────────────────────────────────────────────────────────────
[processor.rumdl]
src_dirs = ["doc"]
src_files = ["README.md"]
# ─── c / c++ ─────────────────────────────────────────────────────────────────
[processor.cppcheck]
src_dirs = ["src"]
args = [
"--error-exitcode=1",
"--enable=warning,style,performance,portability",
"--inline-suppr",
]