Config.in 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. config BR2_PACKAGE_PHP_ARCH_SUPPORTS
  2. bool
  3. # see fiber_cpu in configure.ac
  4. default y if BR2_aarch64 || BR2_aarch64_be
  5. default y if BR2_arm || BR2_armeb
  6. default y if BR2_i386 || BR2_x86_64
  7. default y if BR2_mips || BR2_mipsel || BR2_mips64 || BR2_mips64el
  8. default y if BR2_powerpc || BR2_powerpc64 || BR2_powerpc64le
  9. default y if BR2_RISCV_64
  10. default y if BR2_s390x
  11. default y if BR2_TOOLCHAIN_HAS_UCONTEXT
  12. default y if BR2_PACKAGE_LIBUCONTEXT_ARCH_SUPPORTS
  13. config BR2_PACKAGE_PHP
  14. bool "php"
  15. depends on BR2_PACKAGE_PHP_ARCH_SUPPORTS
  16. # PHP uses -export-dynamic, which breaks with elf2flt with a
  17. # message like "ld.real: section .junk LMA [...,...] overlaps
  18. # section .text LMA [...,...]"
  19. depends on !BR2_BINFMT_FLAT
  20. depends on BR2_USE_WCHAR
  21. select BR2_PACKAGE_PHP_SAPI_CGI if \
  22. !BR2_PACKAGE_PHP_SAPI_APACHE && \
  23. !BR2_PACKAGE_PHP_SAPI_CLI && \
  24. !BR2_PACKAGE_PHP_SAPI_FPM && \
  25. BR2_USE_MMU
  26. select BR2_PACKAGE_PHP_SAPI_CLI if !BR2_USE_MMU
  27. select BR2_PACKAGE_PCRE2
  28. select BR2_PACKAGE_LIBUCONTEXT if \
  29. BR2_PACKAGE_LIBUCONTEXT_ARCH_SUPPORTS
  30. help
  31. PHP is a widely-used general-purpose scripting
  32. language that is especially suited for Web development
  33. and can be embedded into HTML.
  34. http://www.php.net
  35. if BR2_PACKAGE_PHP
  36. config BR2_PACKAGE_PHP_SAPI_APACHE
  37. bool "Apache interface"
  38. depends on BR2_PACKAGE_APACHE
  39. help
  40. Apache module
  41. config BR2_PACKAGE_PHP_SAPI_CGI
  42. bool "CGI interface"
  43. # CGI uses fork()
  44. depends on BR2_USE_MMU
  45. help
  46. Common Gateway Interface
  47. config BR2_PACKAGE_PHP_SAPI_CLI
  48. bool "CLI interface"
  49. help
  50. Command Line Interface
  51. config BR2_PACKAGE_PHP_SAPI_FPM
  52. bool "FPM interface"
  53. depends on BR2_USE_MMU
  54. # "Sparc v8 and predecessors are not and will not be supported"
  55. depends on !BR2_sparc
  56. help
  57. PHP-FPM (FastCGI Process Manager)
  58. source "package/php/Config.ext"
  59. endif
  60. comment "php needs a toolchain w/ wchar"
  61. depends on BR2_PACKAGE_PHP_ARCH_SUPPORTS
  62. depends on !BR2_BINFMT_FLAT
  63. depends on !BR2_USE_WCHAR