Config.in 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. # criu only builds on certain architectures
  2. config BR2_PACKAGE_CRIU_ARCH_SUPPORTS
  3. bool
  4. default y if BR2_ARM_CPU_ARMV6
  5. default y if BR2_ARM_CPU_ARMV7A
  6. default y if BR2_ARM_CPU_ARMV7M
  7. default y if BR2_ARM_CPU_ARMV8A && !BR2_aarch64_be
  8. default y if BR2_aarch64
  9. default y if BR2_x86_64
  10. default y if BR2_powerpc64le # Only support powerpc64 with LE
  11. # CRIU has "some" support for s390 but it is not included due to
  12. # BE/LE endian issues.
  13. depends on BR2_USE_MMU # libcap
  14. depends on BR2_PACKAGE_HOST_PROTOBUF_ARCH_SUPPORTS # protobuf-c
  15. depends on BR2_PACKAGE_PROTOBUF_ARCH_SUPPORTS
  16. depends on BR2_PACKAGE_LIBBSD_ARCH_SUPPORTS
  17. config BR2_PACKAGE_CRIU
  18. bool "criu"
  19. depends on BR2_PACKAGE_CRIU_ARCH_SUPPORTS
  20. depends on BR2_HOST_GCC_AT_LEAST_7 # protobuf-c
  21. depends on BR2_TOOLCHAIN_GCC_AT_LEAST_8 # -march=armv7-a+fp
  22. depends on BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_18 # rseq.h
  23. depends on !BR2_TOOLCHAIN_USES_UCLIBC # no aio.h
  24. depends on !BR2_STATIC_LIBS # protobuf, libbsd
  25. depends on BR2_INSTALL_LIBSTDCPP # protobuf
  26. depends on BR2_TOOLCHAIN_HAS_THREADS # protobuf, libnl
  27. depends on BR2_USE_WCHAR # libbsd
  28. select BR2_PACKAGE_HOST_PYTHON3
  29. select BR2_PACKAGE_HOST_PYTHON3_SSL
  30. select BR2_PACKAGE_PROTOBUF
  31. select BR2_PACKAGE_PROTOBUF_C
  32. select BR2_PACKAGE_LIBAIO
  33. select BR2_PACKAGE_LIBBSD
  34. select BR2_PACKAGE_LIBCAP
  35. select BR2_PACKAGE_LIBNET
  36. select BR2_PACKAGE_LIBNL
  37. select BR2_PACKAGE_PYTHON3
  38. help
  39. Checkpoint/Restore In Userspace (CRIU), is a software
  40. tool for the Linux operating system to make it possible
  41. to freeze a running application and checkpoint it to
  42. persistent storage as a collection of files.
  43. https://criu.org/Main_Page
  44. comment "criu needs a glibc or musl toolchain w/ threads, host gcc >= 7, gcc >= 8, headers >= 4.18, C++, dynamic library, wchar"
  45. depends on BR2_PACKAGE_CRIU_ARCH_SUPPORTS
  46. depends on !BR2_TOOLCHAIN_GCC_AT_LEAST_8 || !BR2_TOOLCHAIN_HAS_THREADS \
  47. || !BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_18 \
  48. || BR2_TOOLCHAIN_USES_UCLIBC || !BR2_INSTALL_LIBSTDCPP \
  49. || BR2_STATIC_LIBS || !BR2_USE_WCHAR \
  50. || !BR2_HOST_GCC_AT_LEAST_7