Config.in.host 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. config BR2_PACKAGE_HOST_NODEJS_BIN_ARCH_SUPPORTS
  2. bool
  3. default y if BR2_HOSTARCH = "aarch64"
  4. default y if BR2_HOSTARCH = "arm"
  5. default y if BR2_HOSTARCH = "ppc64le"
  6. default y if BR2_HOSTARCH = "x86_64"
  7. comment "host nodejs needs a host gcc >= 8"
  8. depends on !BR2_PACKAGE_HOST_NODEJS_BIN_ARCH_SUPPORTS
  9. depends on !BR2_HOST_GCC_AT_LEAST_8
  10. config BR2_PACKAGE_HOST_NODEJS
  11. bool "host nodejs"
  12. depends on BR2_PACKAGE_HOST_NODEJS_BIN_ARCH_SUPPORTS || \
  13. BR2_HOST_GCC_AT_LEAST_8
  14. help
  15. Event-driven I/O server-side JavaScript environment based on
  16. V8.
  17. http://nodejs.org/
  18. if BR2_PACKAGE_HOST_NODEJS
  19. choice
  20. prompt "host nodejs variant"
  21. default BR2_PACKAGE_HOST_NODEJS_BIN if BR2_PACKAGE_HOST_NODEJS_BIN_ARCH_SUPPORTS
  22. default BR2_PACKAGE_HOST_NODEJS_SRC
  23. help
  24. Select a nodejs variant - built from source or
  25. pre-built.
  26. config BR2_PACKAGE_HOST_NODEJS_BIN
  27. bool "pre-built version"
  28. depends on BR2_PACKAGE_HOST_NODEJS_BIN_ARCH_SUPPORTS
  29. config BR2_PACKAGE_HOST_NODEJS_SRC
  30. bool "compile from source"
  31. depends on BR2_HOST_GCC_AT_LEAST_8
  32. select BR2_PACKAGE_HOST_PYTHON3
  33. select BR2_PACKAGE_HOST_PYTHON3_BZIP2
  34. select BR2_PACKAGE_HOST_PYTHON3_SSL
  35. comment "host nodejs from source needs a host gcc >= 8"
  36. depends on !BR2_HOST_GCC_AT_LEAST_8
  37. endchoice
  38. config BR2_PACKAGE_HOST_NODEJS_COREPACK
  39. bool "Corepack"
  40. help
  41. Enable Corepack with host nodejs.
  42. Corepack is a zero-runtime-dependency Node.js script that
  43. acts as a bridge between Node.js projects and the package
  44. managers they are intended to be used with during
  45. development. In practical terms, Corepack will let you use
  46. Yarn and pnpm without having to install them - just like
  47. what currently happens with npm, which is shipped by Node.js
  48. by default.
  49. endif
  50. config BR2_PACKAGE_PROVIDES_HOST_NODEJS
  51. string
  52. default "host-nodejs-src" if BR2_PACKAGE_HOST_NODEJS_SRC
  53. # default to host-nodejs-bin so it's used if nothing is set explicitly
  54. default "host-nodejs-bin" if !BR2_PACKAGE_HOST_NODEJS_SRC