File tree Expand file tree Collapse file tree 4 files changed +10
-9
lines changed Expand file tree Collapse file tree 4 files changed +10
-9
lines changed Original file line number Diff line number Diff line change @@ -404,12 +404,12 @@ jobs:
404
404
rm ${{ env.BUILD_DIR }}samples/rust/rust_minimal.o
405
405
406
406
make ${{ env.MAKE_ARCH }} ${{ env.MAKE_CROSS_COMPILE }} ${{ env.MAKE_LLVM_IAS }} ${{ env.MAKE_TOOLCHAIN }} ${{ env.MAKE_OUTPUT }} ${{ env.MAKE_SYSROOT }} -j3 samples/rust/rust_minimal.o
407
- make ${{ env.MAKE_ARCH }} ${{ env.MAKE_CROSS_COMPILE }} ${{ env.MAKE_LLVM_IAS }} ${{ env.MAKE_TOOLCHAIN }} ${{ env.MAKE_OUTPUT }} ${{ env.MAKE_SYSROOT }} -j3 samples/rust/rust_minimal.i
407
+ make ${{ env.MAKE_ARCH }} ${{ env.MAKE_CROSS_COMPILE }} ${{ env.MAKE_LLVM_IAS }} ${{ env.MAKE_TOOLCHAIN }} ${{ env.MAKE_OUTPUT }} ${{ env.MAKE_SYSROOT }} -j3 samples/rust/rust_minimal.rsi
408
408
make ${{ env.MAKE_ARCH }} ${{ env.MAKE_CROSS_COMPILE }} ${{ env.MAKE_LLVM_IAS }} ${{ env.MAKE_TOOLCHAIN }} ${{ env.MAKE_OUTPUT }} ${{ env.MAKE_SYSROOT }} -j3 samples/rust/rust_minimal.s
409
409
make ${{ env.MAKE_ARCH }} ${{ env.MAKE_CROSS_COMPILE }} ${{ env.MAKE_LLVM_IAS }} ${{ env.MAKE_TOOLCHAIN }} ${{ env.MAKE_OUTPUT }} ${{ env.MAKE_SYSROOT }} -j3 samples/rust/rust_minimal.ll
410
410
411
411
file ${{ env.BUILD_DIR }}samples/rust/rust_minimal.o | grep -F 'ELF'
412
- grep -F '#![feature(prelude_import)]' ${{ env.BUILD_DIR }}samples/rust/rust_minimal.i
412
+ grep -F '#![feature(prelude_import)]' ${{ env.BUILD_DIR }}samples/rust/rust_minimal.rsi
413
413
grep -F '.text' ${{ env.BUILD_DIR }}samples/rust/rust_minimal.s
414
414
grep -F '; ModuleID' ${{ env.BUILD_DIR }}samples/rust/rust_minimal.ll
415
415
Original file line number Diff line number Diff line change 38
38
* .o. *
39
39
* .patch
40
40
* .rmeta
41
+ * .rsi
41
42
* .s
42
43
* .so
43
44
* .so.dbg
Original file line number Diff line number Diff line change @@ -283,7 +283,7 @@ no-compiler-targets := $(no-dot-config-targets) install dtbs_install \
283
283
headers_install modules_install kernelrelease image_name
284
284
no-sync-config-targets := $(no-dot-config-targets ) %install kernelrelease \
285
285
image_name
286
- single-targets := %.a %.i %.ko %.lds %.ll %.lst %.mod %.o %.s %.symtypes %/
286
+ single-targets := %.a %.i %.rsi %. ko %.lds %.ll %.lst %.mod %.o %.s %.symtypes %/
287
287
288
288
config-build :=
289
289
mixed-build :=
@@ -1724,7 +1724,7 @@ help:
1724
1724
@echo ' rust-analyzer - Generate rust-project.json rust-analyzer support file'
1725
1725
@echo ' (requires kernel .config)'
1726
1726
@echo ' dir/file.[os] - Build specified target only'
1727
- @echo ' dir/file.i - Build macro expanded source, similar to C preprocessing'
1727
+ @echo ' dir/file.rsi - Build macro expanded source, similar to C preprocessing'
1728
1728
@echo ' (run with RUSTFMT=n to skip reformatting if needed)'
1729
1729
@echo ' dir/file.ll - Build the LLVM assembly file'
1730
1730
@echo ' '
@@ -2013,7 +2013,7 @@ $(clean-dirs):
2013
2013
clean : $(clean-dirs )
2014
2014
$(call cmd,rmfiles)
2015
2015
@find $(or $(KBUILD_EXTMOD ) , .) $(RCS_FIND_IGNORE ) \
2016
- \( -name ' *.[aios]' -o -name ' *.ko' -o -name ' .*.cmd' \
2016
+ \( -name ' *.[aios]' -o -name ' *.rsi ' -o -name ' *. ko' -o -name ' .*.cmd' \
2017
2017
-o -name ' *.ko.*' \
2018
2018
-o -name ' *.dtb' -o -name ' *.dtbo' -o -name ' *.dtb.S' -o -name ' *.dt.yaml' \
2019
2019
-o -name ' *.dwo' -o -name ' *.lst' \
Original file line number Diff line number Diff line change @@ -306,14 +306,14 @@ quiet_cmd_rustc_o_rs = $(RUSTC_OR_CLIPPY_QUIET) $(quiet_modtag) $@
306
306
$(obj)/%.o: $(src)/%.rs FORCE
307
307
$(call if_changed_dep,rustc_o_rs)
308
308
309
- quiet_cmd_rustc_i_rs = $(RUSTC_OR_CLIPPY_QUIET) $(quiet_modtag) $@
310
- cmd_rustc_i_rs = \
309
+ quiet_cmd_rustc_rsi_rs = $(RUSTC_OR_CLIPPY_QUIET) $(quiet_modtag) $@
310
+ cmd_rustc_rsi_rs = \
311
311
$(rust_common_cmd) --emit=dep-info -Zunpretty=expanded $< >$@; \
312
312
command -v $(RUSTFMT) >/dev/null && $(RUSTFMT) $@; \
313
313
$(rust_handle_depfile)
314
314
315
- $(obj)/%.i : $(src)/%.rs FORCE
316
- $(call if_changed_dep,rustc_i_rs )
315
+ $(obj)/%.rsi : $(src)/%.rs FORCE
316
+ $(call if_changed_dep,rustc_rsi_rs )
317
317
318
318
quiet_cmd_rustc_s_rs = $(RUSTC_OR_CLIPPY_QUIET) $(quiet_modtag) $@
319
319
cmd_rustc_s_rs = \
You can’t perform that action at this time.
0 commit comments