Config.in 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. config BR2_PACKAGE_KVM_UNIT_TESTS_ARCH_SUPPORTS
  2. bool
  3. # On ARM, it needs virtualization extensions and little endian CPUs
  4. default y if (BR2_arm || BR2_aarch64) && \
  5. (BR2_cortex_a7 || BR2_cortex_a12 || \
  6. BR2_cortex_a15 || BR2_cortex_a15_a7 || \
  7. BR2_cortex_a17 || BR2_cortex_a17_a7 || \
  8. BR2_cortex_a55 || BR2_cortex_a75 || \
  9. BR2_cortex_a75_a55 || BR2_cortex_a76 || \
  10. BR2_cortex_a76_a55)
  11. default y if BR2_i386 || BR2_x86_64
  12. default y if BR2_powerpc64 || BR2_powerpc64le
  13. default y if BR2_s390x
  14. config BR2_PACKAGE_KVM_UNIT_TESTS
  15. bool "kvm-unit-tests"
  16. depends on BR2_PACKAGE_KVM_UNIT_TESTS_ARCH_SUPPORTS
  17. # on i386 and x86-64, __builtin_reachable is used, so we need
  18. # gcc 4.5 at least. on i386, we use the target gcc, while on
  19. # x86-64 we use the host gcc (see .mk file for details)
  20. depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_5 || !BR2_i386
  21. depends on BR2_HOSTARCH = "x86_64" || !BR2_x86_64
  22. select BR2_HOSTARCH_NEEDS_IA32_COMPILER if BR2_x86_64
  23. help
  24. kvm-unit-tests is a project as old as KVM. As its name
  25. suggests, it's purpose is to provide unit tests for KVM. The
  26. unit tests are tiny guest operating systems that generally
  27. execute only tens of lines of C and assembler test code in
  28. order to obtain its PASS/FAIL result. Unit tests provide KVM
  29. and virt hardware functional testing by targeting the
  30. features through minimal implementations of their use per
  31. the hardware specification. The simplicity of unit tests
  32. make them easy to verify they are correct, easy to maintain,
  33. and easy to use in timing measurements. Unit tests are also
  34. often used for quick and dirty bug reproducers. The
  35. reproducers may then be kept as regression tests. It's
  36. strongly encouraged that patches implementing new KVM
  37. features are submitted with accompanying unit tests.
  38. http://www.linux-kvm.org/page/KVM-unit-tests
  39. comment "kvm-unit-tests needs a toolchain w/ gcc >= 4.5"
  40. depends on BR2_i386
  41. depends on !BR2_TOOLCHAIN_GCC_AT_LEAST_4_5