diff options
author | WANG Rui <wangrui@loongson.cn> | 2024-05-14 12:24:18 +0800 |
---|---|---|
committer | Huacai Chen <chenhuacai@loongson.cn> | 2024-05-14 12:24:18 +0800 |
commit | 8f8d74ee110c02137f5b78ca0a2bd6c10331f267 (patch) | |
tree | bd054b235ed1282ee0b2ee9fc0da8240ad57bcde /rust | |
parent | d6af2c76399f98444a5b4de96baf4b362d9f102b (diff) | |
download | linux-8f8d74ee110c02137f5b78ca0a2bd6c10331f267.tar.gz linux-8f8d74ee110c02137f5b78ca0a2bd6c10331f267.tar.bz2 linux-8f8d74ee110c02137f5b78ca0a2bd6c10331f267.zip |
LoongArch: rust: Switch to use built-in rustc target
This commit switches to use the LoongArch's built-in rustc target
'loongarch64-unknown-none-softfloat'. The Rust samples have been tested.
Acked-by: Miguel Ojeda <ojeda@kernel.org>
Tested-by: Miguel Ojeda <ojeda@kernel.org>
Signed-off-by: WANG Rui <wangrui@loongson.cn>
Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
Diffstat (limited to 'rust')
-rw-r--r-- | rust/Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rust/Makefile b/rust/Makefile index 86a125c4243c..a1eab64140ad 100644 --- a/rust/Makefile +++ b/rust/Makefile @@ -436,7 +436,7 @@ $(obj)/core.o: private rustc_objcopy = $(foreach sym,$(redirect-intrinsics),--re $(obj)/core.o: private rustc_target_flags = $(core-cfgs) $(obj)/core.o: $(RUST_LIB_SRC)/core/src/lib.rs FORCE +$(call if_changed_dep,rustc_library) -ifneq ($(or $(CONFIG_X86_64),$(CONFIG_LOONGARCH)),) +ifdef CONFIG_X86_64 $(obj)/core.o: scripts/target.json endif |