[Buildroot] selftests/sgx

Peter Seiderer ps.report at gmx.net
Sun May 8 21:38:09 UTC 2022


Hello Jarkko,

On Sat, 07 May 2022 23:03:57 +0300, Jarkko Sakkinen <jarkko.sakkinen at iki.fi> wrote:

> Hi,
> 
> When specifying "BR2_PACKAGE_LINUX_TOOLS_SELFTESTS=y", for some reason
> tools/testing/selftests/sgx/ build results, i.e. "sgx:test_sgx", does
> not get included to the rootfs image, nor is it listed in 
> kselftest-list.txt.
> 
> If I manually compile and install selftests, it does get included. Any
> ideas what could be wrong?

For which architecture do you (cross) compile (what is your target architecture)?

According to e.g. [1]:

[...]
  7 CAN_BUILD_X86_64 := $(shell ../x86/check_cc.sh $(CC) \
  8   
[...]
 19 TEST_CUSTOM_PROGS := $(OUTPUT)/test_sgx
 20 
 21 ifeq ($(CAN_BUILD_X86_64), 1)
 22 all: $(TEST_CUSTOM_PROGS) $(OUTPUT)/test_encl.elf
 23 endif
[...]

test_sgx is only compiled for x86_64 (and/or CAN_BUILD_X86_64 is true)...

Regards,
Peter

[1] https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/tree/tools/testing/selftests/sgx/Makefile?h=v5.17.5


> 
> BR, Jarkko
> _______________________________________________
> buildroot mailing list
> buildroot at buildroot.org
> https://lists.buildroot.org/mailman/listinfo/buildroot




More information about the buildroot mailing list