aboutsummaryrefslogtreecommitdiffstats
path: root/opt-linux-arm64-debian10/cmd.sh
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2019-11-30 06:41:41 +0100
committerSven Gothel <[email protected]>2019-11-30 06:41:41 +0100
commit5c3391e70e4aa2aead779f0512f481288ec8e4e8 (patch)
treef06b42aef9dd04907f0b50755fe5e25fe0d3093e /opt-linux-arm64-debian10/cmd.sh
parent18c6fd068df1058921e4c3b2cd0f10024fd09871 (diff)
Updating linux-aarch64 'sysroot' libs and adding linux-armv-armhf, both using Debian 10HEADmaster
Resulting folder are used for crosscompilation, e.g. see GlueGen's gluegen/make/scripts/make.gluegen.all.linux-aarch64-cross.sh where TARGET_PLATFORM_USRROOT points to opt-linux-arm64-debian10. Today's snapshot has been signed and hashed: https://jogamp.org/files/toolchain/20191130-linux-toolchain/
Diffstat (limited to 'opt-linux-arm64-debian10/cmd.sh')
-rw-r--r--opt-linux-arm64-debian10/cmd.sh19
1 files changed, 16 insertions, 3 deletions
diff --git a/opt-linux-arm64-debian10/cmd.sh b/opt-linux-arm64-debian10/cmd.sh
index 1fc798d..c98667c 100644
--- a/opt-linux-arm64-debian10/cmd.sh
+++ b/opt-linux-arm64-debian10/cmd.sh
@@ -1,11 +1,17 @@
#! /bin/bash
-DOWNLOAD=0
+DOWNLOAD=1
TDIR=`pwd`
rm -rf usr
rm -rf sysroot
+if [ $DOWNLOAD -eq 1 ] ; then
+ rm -rf packs
+fi
+
+mkdir -p packs
+mkdir -p sysroot
# x11proto-core-dev x11proto-input-dev x11proto-kb-dev x11proto-render-dev x11proto-xext-dev \
# nx-x11proto-core-dev nx-x11proto-input-dev nx-x11proto-kb-dev nx-x11proto-render-dev nx-x11proto-xext-dev \
@@ -13,6 +19,7 @@ rm -rf sysroot
for i in \
libudev1 libudev-dev \
libasound2 libasound2-dev libpulse0 libpulse-dev libpulse-mainloop-glib0 \
+ libdrm2 libdrm-dev libgbm1 libgbm-dev \
libx11-6 libx11-dev libxtst6 libxtst-dev libxext6 libxext-dev \
x11proto-dev x11proto-core-dev x11proto-input-dev x11proto-kb-dev x11proto-render-dev x11proto-xext-dev \
libxi6 libxi-dev libice6 libice-dev libxrender1 libxrender-dev libsm6 libsm-dev libxt6 libxt-dev \
@@ -20,16 +27,15 @@ for i in \
libgl1-mesa-glx libgl1-mesa-dev libglu1-mesa libglu1-mesa-dev \
libxcb1 libxcb1-dev libxau6 libxau-dev libxdmcp6 libxdmcp-dev libbsd0 libbsd-dev \
libfontconfig1 libfontconfig1-dev libfreetype6 libfreetype6-dev libpng16-16 libpng-dev zlib1g zlib1g-dev \
+ openjdk-11-jre-headless \
; \
do
if [ $DOWNLOAD -eq 1 ] ; then
- mkdir -p $TDIR/packs
cd $TDIR/packs
echo "searching for $i"
apt-get download $i
cd $TDIR
fi
- mkdir -p sysroot
for j in `find $TDIR/packs -name $i\*.deb` ; do
OK=1
echo "Found $j"
@@ -52,4 +58,11 @@ cp -a sysroot/usr/include/* usr/include/
mkdir -p usr/share
cp -a sysroot/usr/share/* usr/share/
+mkdir -p jre/lib/aarch64
+cp -a sysroot/usr/lib/jvm/java-11-openjdk-arm64/lib/libjava.so jre/lib/aarch64/
+cp -a sysroot/usr/lib/jvm/java-11-openjdk-arm64/lib/libjawt.so jre/lib/aarch64/
+cp -a sysroot/usr/lib/jvm/java-11-openjdk-arm64/lib/libawt*.so jre/lib/aarch64/
+cp -a sysroot/usr/lib/jvm/java-11-openjdk-arm64/lib/server jre/lib/aarch64/
+
rm -rf sysroot
+