enable arm build

This commit is contained in:
lif 2020-03-23 00:36:03 -07:00
parent 928c32260a
commit b98eea51e8
2 changed files with 15 additions and 0 deletions

4
configure vendored
View File

@ -985,6 +985,10 @@ elif test "$target_cpu" = "ppc" ; then
echo "TARGET_ARCH=ppc" >> $config_mak
echo "#define TARGET_ARCH \"ppc\"" >> $config_h
echo "#define TARGET_PPC 1" >> $config_h
elif test "$target_cpu" = "arm" ; then
echo "TARGET_ARCH=arm" >> $config_mak
echo "#define TARGET_ARCH \"arm\"" >> $config_h
echo "#define TARGET_ARM 1" >> $config_h
else
echo "Unsupported target CPU"
exit 1

View File

@ -117,6 +117,17 @@ if test "$ARCH" != "$TARGET_ARCH"; then
NPW_USE_XSHM="no"
fi
;;
arm)
if test "$ARCH" = "arm"; then
case "$OS" in
linux)
LOADER=`which linux32`
;;
esac
else
LOADER=`which qemu-arm`
NPW_USE_XSHM="no"
fi
esac
if test "$LOADER" = "none"; then
unset LOADER