File tree 2 files changed +33
-3
lines changed
2 files changed +33
-3
lines changed Original file line number Diff line number Diff line change @@ -48,6 +48,10 @@ KCFLAGS
48
48
-------
49
49
Additional options to the C compiler (for built-in and modules).
50
50
51
+ KRUSTFLAGS
52
+ ----------
53
+ Additional options to the Rust compiler (for built-in and modules).
54
+
51
55
CFLAGS_KERNEL
52
56
-------------
53
57
Additional options for $(CC) when used to compile
@@ -57,9 +61,14 @@ CFLAGS_MODULE
57
61
-------------
58
62
Additional module specific options to use for $(CC).
59
63
60
- KRUSTFLAGS
61
- ----------
62
- Additional options to the Rust compiler (for built-in and modules).
64
+ RUSTFLAGS_KERNEL
65
+ ----------------
66
+ Additional options for $(RUSTC) when used to compile
67
+ code that is compiled as built-in.
68
+
69
+ RUSTFLAGS_MODULE
70
+ ----------------
71
+ Additional module specific options to use for $(RUSTC).
63
72
64
73
LDFLAGS_MODULE
65
74
--------------
Original file line number Diff line number Diff line change @@ -1179,6 +1179,14 @@ When kbuild executes, the following steps are followed (roughly):
1179
1179
The first example utilises the trick that a config option expands
1180
1180
to 'y' when selected.
1181
1181
1182
+ KBUILD_RUSTFLAGS
1183
+ $(RUSTC) compiler flags
1184
+
1185
+ Default value - see top level Makefile
1186
+ Append or modify as required per architecture.
1187
+
1188
+ Often, the KBUILD_RUSTFLAGS variable depends on the configuration.
1189
+
1182
1190
KBUILD_AFLAGS_KERNEL
1183
1191
Assembler options specific for built-in
1184
1192
@@ -1206,6 +1214,19 @@ When kbuild executes, the following steps are followed (roughly):
1206
1214
are used for $(CC).
1207
1215
From commandline CFLAGS_MODULE shall be used (see kbuild.rst).
1208
1216
1217
+ KBUILD_RUSTFLAGS_KERNEL
1218
+ $(RUSTC) options specific for built-in
1219
+
1220
+ $(KBUILD_RUSTFLAGS_KERNEL) contains extra Rust compiler flags used to
1221
+ compile resident kernel code.
1222
+
1223
+ KBUILD_RUSTFLAGS_MODULE
1224
+ Options for $(RUSTC) when building modules
1225
+
1226
+ $(KBUILD_RUSTFLAGS_MODULE) is used to add arch-specific options that
1227
+ are used for $(RUSTC).
1228
+ From commandline RUSTFLAGS_MODULE shall be used (see kbuild.rst).
1229
+
1209
1230
KBUILD_LDFLAGS_MODULE
1210
1231
Options for $(LD) when linking modules
1211
1232
You can’t perform that action at this time.
0 commit comments