[PATCH v1 35/44] selftests: sdxi: add build scaffold
From: Wei Huang
Date: Thu Nov 19 2026 - 15:31:34 EST
Add the SDXI selftest directory and the initial build scaffold. Test
programs are added later by the patches that introduce individual test
sources.
Co-developed-by: Wei Huang <wei.huang2@xxxxxxx>
Signed-off-by: Wei Huang <wei.huang2@xxxxxxx>
Signed-off-by: Nathan Lynch <nathan.lynch@xxxxxxx>
---
tools/testing/selftests/Makefile | 1 +
tools/testing/selftests/sdxi/Makefile | 5 +++++
tools/testing/selftests/sdxi/config | 2 ++
3 files changed, 8 insertions(+)
create mode 100644 tools/testing/selftests/sdxi/Makefile
create mode 100644 tools/testing/selftests/sdxi/config
diff --git a/tools/testing/selftests/Makefile b/tools/testing/selftests/Makefile
index 07c3719f8b04..fcc361c97224 100644
--- a/tools/testing/selftests/Makefile
+++ b/tools/testing/selftests/Makefile
@@ -122,6 +122,7 @@ TARGETS += rtc
TARGETS += rust
TARGETS += sched_ext
TARGETS += seccomp
+TARGETS += sdxi
TARGETS += sgx
TARGETS += signal
TARGETS += size
diff --git a/tools/testing/selftests/sdxi/Makefile b/tools/testing/selftests/sdxi/Makefile
new file mode 100644
index 000000000000..107a9bd08f04
--- /dev/null
+++ b/tools/testing/selftests/sdxi/Makefile
@@ -0,0 +1,5 @@
+werror := -Werror
+CFLAGS += -std=gnu17 -Og -Wall -Wextra $(werror) $(TOOLS_INCLUDES) $(KHDR_INCLUDES)
+CPPFLAGS += -I../../../include/ -Ilib/
+
+include ../lib.mk
diff --git a/tools/testing/selftests/sdxi/config b/tools/testing/selftests/sdxi/config
new file mode 100644
index 000000000000..ac044d4da732
--- /dev/null
+++ b/tools/testing/selftests/sdxi/config
@@ -0,0 +1,2 @@
+CONFIG_SDXI_PCI=m
+CONFIG_SDXI_AMD_QOS=m
--
2.56.1