-
-
Notifications
You must be signed in to change notification settings - Fork 603
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This patch modifies existing openjdk8-from-host module to make it work on aarch64 Linux host. Signed-off-by: Waldemar Kozaczuk <[email protected]> Message-Id: <[email protected]>
- Loading branch information
Showing
2 changed files
with
27 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,20 @@ | ||
.PHONY: module clean | ||
|
||
include ../common.gmk | ||
ifneq ($(arch),$(host_arch)) | ||
$(error Cannot provide JDK when cross-compiling) | ||
endif | ||
|
||
SRC = $(shell readlink -f ../..) | ||
|
||
javac_exe_path = $(shell realpath $$(which javac)) | ||
javac_bin_path = $(shell dirname $(javac_exe_path)) | ||
java_jdk_path = $(shell dirname $(javac_bin_path)) | ||
|
||
very-quiet = $(if $V, $1, @$1) | ||
libsunec_path = $(shell find $(java_jdk_path) -name libsunec.so) | ||
|
||
module: | ||
$(call very-quiet, $(SRC)/scripts/manifest_from_host.sh $(java_jdk_path)/jre/lib/amd64/libsunec.so > usr.manifest) | ||
$(call very-quiet, $(SRC)/scripts/manifest_from_host.sh $(libsunec_path) > usr.manifest) | ||
$(call very-quiet, $(SRC)/scripts/manifest_from_host.sh -li libfreeblpriv3.so >> usr.manifest) | ||
|
||
clean: | ||
rm -rf usr.manifest | ||
rm -f usr.manifest |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters