1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 22:57:44 +00:00

Ports: Add OpenJDK port

Port of OpenJDK 17.0.2, zero VM only.

More work needed to get the full hotspot VM up and running :^)

Co-Authored-By: Andrew Kaster <akaster@serenityos.org>
This commit is contained in:
Timur Sultanov 2022-06-11 14:22:22 -06:00 committed by Andreas Kling
parent 6eb9ebec5f
commit 1f886f94bd
11 changed files with 4308 additions and 0 deletions

View file

@ -0,0 +1,51 @@
# Patches for OpenJDK on SerenityOS
## `0001-make-Add-Serenity-support-masquerading-as-BSD-when-n.patch`
make: Add Serenity support, masquerading as BSD when necessary
## `0002-make-Build-with-c-20-when-targeting-serenity.patch`
make: Build with c++20 when targeting serenity
## `0003-make-Remove-CUPS-dependency.patch`
make: Remove CUPS dependency
## `0004-hotspot-Add-workarounds-for-BSD-differences-from-ser.patch`
hotspot: Add workarounds for BSD differences from serenity
For the most part, we can pretend to be *BSD.
However, for some methods, we need to convince hotspot that we're macOS,
and others need serenity-specific ifdefs due to the lack of sysctl in
serenity.
## `0005-hotspot-Update-non-BSD-native-modules-for-Serenity.patch`
hotspot: Update non-BSD native modules for Serenity
## `0006-Add-serenity-specific-modules-to-java.base-and-jdk.a.patch`
Add serenity-specific modules to java.base and jdk.attach
It would be nice to re-direct the build to the same files *BSD use, but
for now we've got our own copy
## `0007-java.base-Update-native-modules-to-support-Serenity.patch`
java.base: Update native modules to support Serenity
## `0008-java.base-Enable-java.lang.Process-on-serenity.patch`
java.base: Enable java.lang.Process on serenity