Config.in 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178
  1. config BR2_PACKAGE_HOST_OPENJDK_BIN_ARCH_SUPPORTS
  2. bool
  3. default y if BR2_HOSTARCH = "x86_64"
  4. default y if BR2_HOSTARCH = "aarch64"
  5. # Taken from make/autoconf/platform.m4
  6. config BR2_PACKAGE_OPENJDK_ARCH_SUPPORTS
  7. bool
  8. default y if BR2_aarch64
  9. default y if BR2_arc && !(BR2_arc750d || BR2_arc770d)
  10. default y if BR2_arm
  11. default y if BR2_i386 || BR2_x86_64
  12. default y if BR2_m68k
  13. default y if BR2_powerpc || BR2_powerpc64 || BR2_powerpc64le
  14. default y if BR2_sh
  15. config BR2_PACKAGE_OPENJDK
  16. bool "openjdk"
  17. depends on BR2_PACKAGE_HOST_OPENJDK_BIN_ARCH_SUPPORTS
  18. depends on BR2_PACKAGE_OPENJDK_ARCH_SUPPORTS
  19. depends on !BR2_SOFT_FLOAT
  20. depends on !BR2_STATIC_LIBS # glibc
  21. depends on BR2_INSTALL_LIBSTDCPP # cups
  22. depends on BR2_TOOLCHAIN_HAS_THREADS # alsa-lib, cups, libusb
  23. depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_9 # libusb, C++14 for OpenJDK17
  24. # Strictly needed only for OpenJDK17, but to keep dependencies
  25. # simple with ARC supported only with OpenJDK17, we make this
  26. # dependency apply to OpenJDK as a whole.
  27. depends on BR2_HOST_GCC_AT_LEAST_4_9 # C++14
  28. depends on BR2_TOOLCHAIN_USES_GLIBC
  29. depends on BR2_USE_MMU # cups
  30. depends on BR2_PACKAGE_XORG7
  31. select BR2_PACKAGE_ALSA_LIB
  32. select BR2_PACKAGE_ALSA_LIB_MIXER
  33. select BR2_PACKAGE_ALSA_LIB_PCM
  34. select BR2_PACKAGE_ALSA_LIB_RAWMIDI
  35. select BR2_PACKAGE_ALSA_LIB_SEQ
  36. select BR2_PACKAGE_CUPS
  37. select BR2_PACKAGE_FONTCONFIG
  38. select BR2_PACKAGE_GIFLIB
  39. select BR2_PACKAGE_JPEG
  40. select BR2_PACKAGE_LCMS2
  41. select BR2_PACKAGE_LIBPNG
  42. select BR2_PACKAGE_LIBUSB
  43. select BR2_PACKAGE_XLIB_LIBXRANDR
  44. select BR2_PACKAGE_XLIB_LIBXRENDER
  45. select BR2_PACKAGE_XLIB_LIBXT
  46. select BR2_PACKAGE_XLIB_LIBXTST
  47. select BR2_PACKAGE_ZLIB
  48. help
  49. OpenJDK is a free and open-source implementation of the
  50. Java Platform.
  51. http://openjdk.java.net/
  52. if BR2_PACKAGE_OPENJDK
  53. choice
  54. prompt "openjdk version"
  55. default BR2_PACKAGE_OPENJDK_VERSION_17 if BR2_OPENJDK_VERSION_LTS # legacy
  56. default BR2_PACKAGE_OPENJDK_VERSION_21 if BR2_OPENJDK_VERSION_LATEST # legacy
  57. default BR2_PACKAGE_OPENJDK_VERSION_21
  58. help
  59. Select the version of OpenJDK you wish to use.
  60. config BR2_PACKAGE_OPENJDK_VERSION_17
  61. bool "OpenJDK 17"
  62. config BR2_PACKAGE_OPENJDK_VERSION_21
  63. bool "OpenJDK 21"
  64. endchoice
  65. config BR2_PACKAGE_OPENJDK_FULL_JDK
  66. bool "Build the full JDK"
  67. help
  68. Install the full JDK instead of just the run time.
  69. The full JDK includes several packages used for debugging and
  70. development. Some useful tools included with the JDK are:
  71. - javaws
  72. Command line tool for launching Java Web Start and setting
  73. various options.
  74. - jcmd:
  75. JVM Diagnostic Commands tool: Sends diagnostic command
  76. requests to a running Java Virtual Machine.
  77. - jinfo
  78. Configuration Info for Java: Prints configuration
  79. information for a given process or core file or a remote
  80. debug server.
  81. - jmap
  82. Memory Map for Java: Prints shared object memory maps or
  83. heap memory details of a given process or core file or a
  84. remote debug server.
  85. - jsadebugd
  86. Serviceability Agent Debug Daemon for Java: Attaches to a
  87. process or core file and acts as a debug server.
  88. - jstack
  89. Stack Trace for Java - Prints a stack trace of threads for
  90. a given process or core file or remote debug server.
  91. - jstat
  92. JVM Statistics Monitoring Tool: Attaches to an
  93. instrumented HotSpot Java virtual machine and collects and
  94. logs performance statistics as specified by the command
  95. line options.
  96. - jstatd
  97. JVM jstat Daemon - Launches an RMI server application that
  98. monitors for the creation and termination of instrumented
  99. HotSpot Java virtual machines and provides an interface to
  100. allow remote monitoring tools to attach to Java virtual
  101. machines running on the local system.
  102. Note:
  103. While the JDK also comes with several tools which can be used
  104. for developing java applications on a target, Buildroot does
  105. not support development on a target. Building the full JDK is
  106. supported for debugging purposes only.
  107. Selecting this option increases the file system by
  108. approximately 110M.
  109. choice
  110. prompt "openjdk variant"
  111. default BR2_PACKAGE_OPENJDK_JVM_VARIANT_SERVER if !(BR2_powerpc || BR2_arc)
  112. default BR2_PACKAGE_OPENJDK_JVM_VARIANT_ZERO if BR2_powerpc
  113. default BR2_PACKAGE_OPENJDK_JVM_VARIANT_ZERO if BR2_arc
  114. config BR2_PACKAGE_OPENJDK_JVM_VARIANT_CLIENT
  115. bool "client"
  116. depends on !(BR2_powerpc || BR2_arc)
  117. help
  118. Quick loading, but slower run-time performance.
  119. config BR2_PACKAGE_OPENJDK_JVM_VARIANT_SERVER
  120. bool "server"
  121. depends on !(BR2_powerpc || BR2_arc)
  122. help
  123. Slower loading, but faster run-time performance.
  124. config BR2_PACKAGE_OPENJDK_JVM_VARIANT_ZERO
  125. bool "zero"
  126. select BR2_PACKAGE_LIBFFI
  127. help
  128. A non-assembler variant with wide arch support, however
  129. performance is less than client/server.
  130. http://openjdk.java.net/projects/zero
  131. endchoice
  132. endif
  133. comment "openjdk needs X.Org"
  134. depends on BR2_PACKAGE_OPENJDK_ARCH_SUPPORTS
  135. depends on BR2_PACKAGE_HOST_OPENJDK_BIN_ARCH_SUPPORTS
  136. depends on BR2_USE_MMU
  137. depends on !BR2_PACKAGE_XORG7
  138. comment "openjdk needs glibc, and a toolchain w/ wchar, dynamic library, threads, C++, gcc >= 4.9, host gcc >= 4.9"
  139. depends on BR2_USE_MMU
  140. depends on BR2_PACKAGE_OPENJDK_ARCH_SUPPORTS
  141. depends on BR2_PACKAGE_HOST_OPENJDK_BIN_ARCH_SUPPORTS
  142. depends on BR2_STATIC_LIBS || !BR2_INSTALL_LIBSTDCPP || \
  143. !BR2_TOOLCHAIN_HAS_THREADS || \
  144. !BR2_TOOLCHAIN_USES_GLIBC || \
  145. !BR2_TOOLCHAIN_GCC_AT_LEAST_4_9 || \
  146. !BR2_HOST_GCC_AT_LEAST_4_9
  147. comment "openjdk does not support soft float configurations"
  148. depends on BR2_PACKAGE_OPENJDK_ARCH_SUPPORTS
  149. depends on BR2_PACKAGE_HOST_OPENJDK_BIN_ARCH_SUPPORTS
  150. depends on BR2_USE_MMU
  151. depends on BR2_SOFT_FLOAT