Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/Cog' into FapSessionId
Browse files Browse the repository at this point in the history
  • Loading branch information
akgrant committed Dec 17, 2018
2 parents 4803e8d + 27bd4c1 commit d4e32c5
Show file tree
Hide file tree
Showing 5 changed files with 70 additions and 6 deletions.
28 changes: 28 additions & 0 deletions build.linux64ARMv8/squeak.stack.spur/build.assert/mvm
@@ -0,0 +1,28 @@
#!/usr/bin/env bash
set -e
# assert Stack Spur VM with VM profiler and threaded heartbeat
INSTALLDIR=assert/sqstkspur64linuxhtRPi
OPT="-g3 -O1 -fwrapv -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DDEBUGVM=0"

if [ $# -ge 1 ]; then
INSTALLDIR="$1"; shift
fi
echo -n "clean? "
read a
case $a in
n|no|N|NO) echo "ok but this isn't safe!!";;
*) rm -f config.h; test -f Makefile && make reallyclean
esac
test -f plugins.int || (test -f ../plugins.int && cp -p ../plugins.int . || cp -p ../../plugins.int .)
test -f plugins.ext || (test -f ../plugins.ext && cp -p ../plugins.ext . || cp -p ../../plugins.ext .)
test -f config.h || ../../../platforms/unix/config/configure \
--with-vmversion=5.0 \
--with-src=spurstack64src --disable-cogit \
--without-vm-display-fbdev --without-npsqueak \
TARGET_ARCH="-march=armv8-a" \
CFLAGS="$OPT -D__ARM_ARCH_8A__ -D__arm__ -D__arm64__"
rm -f vm/sqUnixMain.o # nuke version info
rm -rf ../../../products/$INSTALLDIR
# prefer make install prefix=`readlink -f \`pwd\`/../../../products/$INSTALLDIR`
# but older linux readlinks lack the -f flag
make install-squeak install-plugins prefix=`(cd ../../../;pwd)`/products/$INSTALLDIR 2>&1 | tee LOG
28 changes: 28 additions & 0 deletions build.linux64ARMv8/squeak.stack.spur/build.debug/mvm
@@ -0,0 +1,28 @@
#!/usr/bin/env bash
set -e
# debug Stack Spur VM with VM profiler and threaded heartbeat
INSTALLDIR=sqstkspur64linuxhtRPi
OPT="-g3 -O0 -fwrapv -DDEBUGVM=1"

if [ $# -ge 1 ]; then
INSTALLDIR="$1"; shift
fi
echo -n "clean? "
read a
case $a in
n|no|N|NO) echo "ok but this isn't safe!!";;
*) rm -f config.h; test -f Makefile && make reallyclean
esac
test -f plugins.int || (test -f ../plugins.int && cp -p ../plugins.int . || cp -p ../../plugins.int .)
test -f plugins.ext || (test -f ../plugins.ext && cp -p ../plugins.ext . || cp -p ../../plugins.ext .)
test -f config.h || ../../../platforms/unix/config/configure \
--with-vmversion=5.0 \
--with-src=spurstack64src --disable-cogit \
--without-vm-display-fbdev --without-npsqueak \
TARGET_ARCH="-march=armv8-a" \
CFLAGS="$OPT -D__ARM_ARCH_8A__ -D__arm__ -D__arm64__"
rm -f vm/sqUnixMain.o # nuke version info
rm -rf ../../../products/$INSTALLDIR
# prefer make install prefix=`readlink -f \`pwd\`/../../../products/$INSTALLDIR`
# but older linux readlinks lack the -f flag
make install-squeak install-plugins prefix=`(cd ../../../;pwd)`/products/$INSTALLDIR 2>&1 | tee LOG
2 changes: 1 addition & 1 deletion build.linux64ARMv8/squeak.stack.spur/build/mvm
Expand Up @@ -2,7 +2,7 @@
set -e
# Stack Spur VM with VM profiler and threaded heartbeat
INSTALLDIR=sqstkspur64linuxht
OPT="-g -O1 -fwrapv -DNDEBUG -DDEBUGVM=0"
OPT="-g -O2 -fwrapv -DNDEBUG -DDEBUGVM=0"

if [ $# -ge 1 ]; then
INSTALLDIR="$1"; shift
Expand Down
8 changes: 6 additions & 2 deletions image/getGoodSpur64VM.sh
Expand Up @@ -12,6 +12,7 @@ else
LATESTRELEASE=`curl -s -L "https://bintray.com/opensmalltalk/notifications" | grep 'has released version' | head -1 | sed 's/^.*[0-9]">\([0-9][0-9]*\).*$/\1/'`
if [ -z "$LATESTRELEASE" ]; then
echo "cannot find latest release on https://bintray.com/opensmalltalk/notifications" 1>&2
echo "If you've built your own VM you can substitute that using the -vm myvm argument to this script." 1>&2
exit 1
fi
case $OS in
Expand All @@ -38,7 +39,8 @@ else
Linux) # This needs to be split by $CPU to work on RPi also
case $CPU in
x86_64) LATESTVM="squeak.cog.spur_linux64x64_$LATESTRELEASE.tar.gz";;
*) echo "Don't know what kind of 64-bit linux machine you're running. I have $CPU"
*) echo "Don't know what kind of 64-bit linux machine you're running. I have $CPU" 1>&2
echo "If you've built your own VM you can substitute that using the -vm myvm argument to this script." 1>&2
exit 1
esac
VM=sqlinux.$LATESTRELEASE
Expand All @@ -55,7 +57,9 @@ else
rm -f "$LATESTVM"
fi
VM=$VM/squeak;;
*) echo do not know how to download a VM for your system 1>&2; exit 1
*) echo do not know how to download a VM for your system 1>&2
echo "If you've built your own VM you can substitute that using the -vm myvm argument to this script." 1>&2
exit 1
esac
fi
echo latest 64-bit VM on $OS is $VM
10 changes: 7 additions & 3 deletions image/getGoodSpurVM.sh
Expand Up @@ -12,6 +12,7 @@ else
LATESTRELEASE=`curl -s -L "https://bintray.com/opensmalltalk/notifications" | grep 'has released version' | head -1 | sed 's/^.*[0-9]">\([0-9][0-9]*\).*$/\1/'`
if [ -z "$LATESTRELEASE" ]; then
echo "cannot find latest release on https://bintray.com/opensmalltalk/notifications" 1>&2
echo "If you've built your own VM you can substitute that using the -vm myvm argument to this script." 1>&2
exit 1
fi
case $OS in
Expand All @@ -37,8 +38,9 @@ else
Linux) # This needs to be split by $CPU to work on RPi also
case $CPU in
i386|x86_64) LATESTVM="squeak.cog.spur_linux32x86_$LATESTRELEASE.tar.gz";;
arm) LATESTVM="squeak.cog.spur_linux32ARMv6_$LATESTRELEASE.tar.gz";;
*) echo "Don't know what kind of machine you're running. I have $CPU"
arm|armv[56]*) LATESTVM="squeak.cog.spur_linux32ARMv6_$LATESTRELEASE.tar.gz";;
*) echo "Don't know what kind of machine you're running. I have $CPU" 1>&2
echo "If you've built your own VM you can substitute that using the -vm myvm argument to this script." 1>&2
exit 1
esac
VM=sqlinux.$LATESTRELEASE
Expand Down Expand Up @@ -72,7 +74,9 @@ else
rm -f $LATESTVM
fi
VM=sqwin.$LATESTRELEASE/SqueakConsole.exe;;
*) echo do not know how to download a VM for your system 1>&2; exit 1
*) echo "do not know how to download a VM for your system" 1>&2
echo "If you've built your own VM you can substitute that using the -vm myvm argument to this script." 1>&2
exit 1
esac
fi
echo latest 32-bit VM on $OS is $VM

0 comments on commit d4e32c5

Please sign in to comment.