package/openjdk: use AArch64 optimizations
authorAdam Duskett <Aduskett@gmail.com>
Fri, 15 Mar 2019 20:52:32 +0000 (16:52 -0400)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Sun, 17 Mar 2019 12:50:50 +0000 (13:50 +0100)
Signed-off-by: Adam Duskett <Aduskett@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
package/openjdk/openjdk.mk

index 2730d014d856fbabf02c213058c7882d297f4a98..cf98dd73e14ca4b6ea828109cd27b2c50ec455e9 100644 (file)
@@ -85,6 +85,11 @@ OPENJDK_CONF_OPTS = \
        --with-version-build="$(OPENJDK_VERSION_MAJOR)" \
        --with-version-string="$(OPENJDK_VERSION_MAJOR)"
 
+# If building for AArch64, use the provided CPU port.
+ifeq ($(BR2_aarch64),y)
+OPENJDK_CONF_OPTS += --with-cpu-port=aarch64 --with-abi-profile=aarch64
+endif
+
 ifeq ($(BR2_CCACHE),y)
 OPENJDK_CONF_OPTS += \
        --enable-ccache \