Skip to content

Commit 0ac18ee

Browse files
committed
[Linux] Add armhf build.
Some modules are disabled due to incompatibilities: - raycast (embree), we should fix detection in module config.py. - etcpak, this likely also require at least aarch64 instructions to build. - denoise (oneDNN), also needs fix in config.py (x86_64 only). - theora (are we keeping this?).
1 parent d5ba16c commit 0ac18ee

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

build-linux/build.sh

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ set -e
77
export SCONS="scons -j${NUM_CORES} verbose=yes warnings=no progress=no"
88
export OPTIONS="production=yes"
99
export OPTIONS_MONO="module_mono_enabled=yes mono_static=yes"
10+
export OPTIONS_ARMHF="arch=armhf module_raycast_enabled=no module_etcpak_enabled=no module_denoise_enabled=no module_theora_enabled=no"
1011
export MONO_PREFIX_X86_64="/root/mono-installs/desktop-linux-x86_64-release"
1112
export MONO_PREFIX_X86="/root/mono-installs/desktop-linux-x86-release"
1213
export TERM=xterm
@@ -46,6 +47,20 @@ if [ "${CLASSICAL}" == "1" ]; then
4647
mkdir -p /root/out/x86/templates
4748
cp -rvp bin/* /root/out/x86/templates
4849
rm -rf bin
50+
51+
export PATH="${GODOT_SDK_LINUX_ARMHF}/bin:${BASE_PATH}"
52+
53+
$SCONS platform=x11 $OPTIONS $OPTIONS_ARMHF tools=yes target=release_debug
54+
mkdir -p /root/out/armhf/tools
55+
cp -rvp bin/* /root/out/armhf/tools
56+
rm -rf bin
57+
58+
$SCONS platform=x11 $OPTIONS $OPTIONS_ARMHF tools=no target=release_debug
59+
$SCONS platform=x11 $OPTIONS $OPTIONS_ARMHF tools=no target=release
60+
mkdir -p /root/out/armhf/templates
61+
cp -rvp bin/* /root/out/armhf/templates
62+
rm -rf bin
63+
4964
fi
5065

5166
# Mono

0 commit comments

Comments
 (0)