[meta-java] icedtea7-native: use openjdk build helper functions

Submitted by Richard Leitner on July 10, 2019, 7:31 a.m. | Patch ID: 162930

Details

Message ID 20190710073130.21801-1-richard.leitner@skidata.com
State Under Review
Delegated to: Richard Leitner
Headers show

Commit Message

Richard Leitner July 10, 2019, 7:31 a.m.
Replace target arch selection switch with functions from the openjdk
build helper.

Signed-off-by: Richard Leitner <richard.leitner@skidata.com>
---
 recipes-core/icedtea/icedtea7-native.inc | 14 ++------------
 1 file changed, 2 insertions(+), 12 deletions(-)

Patch hide | download patch | download mbox

diff --git a/recipes-core/icedtea/icedtea7-native.inc b/recipes-core/icedtea/icedtea7-native.inc
index b578cb2..c7c3bd6 100644
--- a/recipes-core/icedtea/icedtea7-native.inc
+++ b/recipes-core/icedtea/icedtea7-native.inc
@@ -94,18 +94,8 @@  JDK_DIR = "icedtea7-native"
 JDK_INSTALL_DIR = "${D}/${libdir_jvm}/${JDK_DIR}"
 
 do_configure_prepend() {
-        case "${TRANSLATED_TARGET_ARCH}" in
-                x86-64)
-                        libarch=amd64
-                ;;
-                i386|i486|i586|i686)
-                        libarch=x86
-                ;;
-                *)
-                        arch=${TARGET_ARCH}
-                        libarch=${TARGET_ARCH}
-                ;;
-        esac
+	arch="${@openjdk_build_helper_get_icedtea_arch(d)}"
+	libarch="${@openjdk_build_helper_get_icedtea_arch(d)}"
 
 	# Automatically copy everything that starts with "icedtea" and ends with
 	# ".patch" into the patches directory.