Commit 22f6c42
committed
config: add rust build configurations
Starting with the upcoming v6.1, mainline Linux has merged the
initial Rust infrastructure so this adds some configs for build
testing it together with some sample modules.
The kernel requires a specific version of rustc, so we add the
rustc-1.62 build environment which derives from clang-15, since
a C compiler is still required to build the kernel and the
supported kernel version is 15 (we might bump this later).
Obviously GCC can be used as well but for now testing all the
toolchain combinations does not add significant value. In the
future more toolchain combinations can be used as needed.
The official "rustup" toolchain installation method is used as
documented in the upstream kernel and because some distros like
Debian stable might not provide up to date toolchain and crates
to keep up with the mainline kernel.
Only the x86_64 architecture is supported by the kernel for now.
We also add the Rust-for-Linux kernel maintainer trees which
contain additional modules and bindings.
Signed-off-by: Adrian Ratiu <[email protected]>1 parent 61f7dc0 commit 22f6c42
2 files changed
Lines changed: 105 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
106 | 106 | | |
107 | 107 | | |
108 | 108 | | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
109 | 112 | | |
110 | 113 | | |
111 | 114 | | |
| |||
225 | 228 | | |
226 | 229 | | |
227 | 230 | | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
228 | 267 | | |
229 | 268 | | |
230 | 269 | | |
| |||
384 | 423 | | |
385 | 424 | | |
386 | 425 | | |
| 426 | + | |
| 427 | + | |
| 428 | + | |
| 429 | + | |
387 | 430 | | |
388 | 431 | | |
389 | 432 | | |
| |||
939 | 982 | | |
940 | 983 | | |
941 | 984 | | |
| 985 | + | |
| 986 | + | |
| 987 | + | |
| 988 | + | |
| 989 | + | |
| 990 | + | |
| 991 | + | |
| 992 | + | |
| 993 | + | |
| 994 | + | |
| 995 | + | |
| 996 | + | |
| 997 | + | |
| 998 | + | |
| 999 | + | |
| 1000 | + | |
| 1001 | + | |
| 1002 | + | |
| 1003 | + | |
| 1004 | + | |
942 | 1005 | | |
943 | 1006 | | |
944 | 1007 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 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 | + | |
0 commit comments