selftests/sgx: add test_encl.elf to TEST_GEN_FILES
Subsystems (3)
Jarkko Sakkinen
maintainerPATCH 1/1 selftests/sgx: add test_encl.elf to TEST_GEN_FILES
TEST_GEN_FILES contains files that are generated during compilation and are required to be included together with the test binaries, e.g. when performing:
make -C tools/testing/selftests install INSTALL_PATH=/some/other/path [*]
Add test_encl.elf to TEST_GEN_FILES because otherwise the installed test binary will fail to run.
[*] https://docs.kernel.org/dev-tools/kselftest.html
--- tools/testing/selftests/sgx/Makefile | 1 + 1 file changed, 1 insertion(+)
tools/testing/selftests/sgx/Makefile +1 -0
@@ -17,6 +17,7 @@ ENCL_CFLAGS := -Wall -Werror -static -nostdlib -nostartfiles -fPIC \ -fno-stack-protector -mrdrnd $(INCLUDES) TEST_CUSTOM_PROGS := $(OUTPUT)/test_sgx +TEST_GEN_FILES := $(OUTPUT)/test_encl.elf ifeq ($(CAN_BUILD_X86_64), 1) all: $(TEST_CUSTOM_PROGS) $(OUTPUT)/test_encl.elf
Signature · 1 line
2.36.1
Jarkko Sakkinen
maintainerQuoted 6 lines · Jarkko Sakkinen
TEST_GEN_FILEScontains files that are generated during compilation and are required to be included together with the test binaries, e.g. when performing:make -C
tools/testing/selftestsinstall INSTALL_PATH=/some/other/path [*]
Quoted 8 lines
Add test_encl.elf to
TEST_GEN_FILESbecause otherwise the installed test binary will fail to run.[*] https://docs.kernel.org/dev-tools/kselftest.html
Fixes 2adcba79e69d ("selftests/x86: Add a selftest for SGX")Signed-off-by Jarkko Sakkinen <[email protected]>
I found this while trying to create an image with BuldRoot containing the self-tests:
https://github.com/jarkkojs/buildroot-sgx
On SGX capable machine can be built and run in QEMU as
make sgx_x86_64_defconfig && make && output/image/run.sh
BR, Jarkko