[kvm-unit-tests PATCH] riscv: Fix sbi-deps expansion for older GNU Make
wu.fei9 at sanechips.com.cn
wu.fei9 at sanechips.com.cn
Fri Sep 5 00:43:12 PDT 2025
>From b8b66e40566bb89de57e45b08fc72446b26a7bfb Mon Sep 17 00:00:00 2001
From: Wu Fei <wu.fei9 at sanechips.com.cn>
Date: Fri, 5 Sep 2025 14:31:48 +0800
Subject: [PATCH] riscv: Fix sbi-deps expansion for older GNU Make
The prerequisite $$($$*-deps) cannot be expanded to $(TEST_DIR)/sbi-deps
in 4.2.1 Make, rename it to sbi-deps without the prefix path.
Signed-off-by: Wu Fei <wu.fei9 at sanechips.com.cn>
---
riscv/Makefile | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/riscv/Makefile b/riscv/Makefile
index beaeaefa..372c56b3 100644
--- a/riscv/Makefile
+++ b/riscv/Makefile
@@ -18,12 +18,12 @@ tests += $(TEST_DIR)/isa-dbltrp.$(exe)
all: $(tests)
-$(TEST_DIR)/sbi-deps += $(TEST_DIR)/sbi-asm.o
-$(TEST_DIR)/sbi-deps += $(TEST_DIR)/sbi-dbtr.o
-$(TEST_DIR)/sbi-deps += $(TEST_DIR)/sbi-fwft.o
-$(TEST_DIR)/sbi-deps += $(TEST_DIR)/sbi-sse.o
+sbi-deps += $(TEST_DIR)/sbi-asm.o
+sbi-deps += $(TEST_DIR)/sbi-dbtr.o
+sbi-deps += $(TEST_DIR)/sbi-fwft.o
+sbi-deps += $(TEST_DIR)/sbi-sse.o
-all_deps += $($(TEST_DIR)/sbi-deps)
+all_deps += $(sbi-deps)
# When built for EFI sieve needs extra memory, run with e.g. '-m 256' on QEMU
$(TEST_DIR)/sieve.$(exe): AUXFLAGS = 0x1
--
2.43.0
More information about the kvm-riscv
mailing list