# --- T2-COPYRIGHT-NOTE-BEGIN --- # T2 SDE: package/*/graalvm/graalvm.conf # Copyright (C) 2022 The T2 SDE Project # # This Copyright note is generated by scripts/Create-CopyPatch, # more information can be found in the files COPYING and README. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License version 2. # --- T2-COPYRIGHT-NOTE-END --- build() { # Extract mx tar -xf ../archdir/mx-*.tar.* eval var_append PATH ':' "$PWD/mx-*" export PATH # Create dummy Git repository # Note: this is needed for mx git init touch .dummy git add .dummy git config user.name "T2 Project" git config user.email "t2@t2-project.org" git commit -m "$pkg $ver" # Build GraalVM # Note: Sulong and Esperesso not enabled, because Sulong build fails export JAVA_HOME=$root/opt/java echo $PATH cd vm/ mx build cd .. } install() { # Install GraalVM mkdir -p $root/opt/java/graalvm cp -Rv vm/latest_graalvm_home/* $root/opt/java/graalvm/ # Install mx # Note: mx is needed to build additional GraalVM componenets mkdir -p $root/opt/java/graalvm/mx cp -Rv mx-*/* $root/opt/java/graalvm/mx/ } hook_add premake 2 build hook_add postmake 2 install makeopt= makeinstopt=