Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move all flavors of CogVM sources to src/vm.*; move all build.* flavors to building/* #573

Merged
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
5d32f6d
Removes all generated source files of the VM (not the plugins).
marceltaeumel Jul 13, 2021
0ebb846
re-add all VM sources at the new location
marceltaeumel Jul 13, 2021
2f5b8b9
In build files, replaces occurrences of "/src/vm" with "/src/vm.32bit…
marceltaeumel Jul 14, 2021
a76345f
For Window and macOS, updates makefiles to point to new src directories.
marceltaeumel Jul 14, 2021
6eeb720
In linux 32-bit v3 build files, make vm version and source path consi…
marceltaeumel Jul 14, 2021
388a49b
In all remaining linux build mvm files, updates "--with-src" variable…
marceltaeumel Jul 14, 2021
409aa5c
Updates remaining occurrences of old-style source paths (e.g. spur64s…
marceltaeumel Jul 15, 2021
95f1068
CogVM source as per VMMaker.oscog-eem.2985
marceltaeumel Jul 15, 2021
69eff5a
Updates autoconf files to use the new source folder, which does not n…
marceltaeumel Jul 15, 2021
991776b
Updates src paths in cmake (minheadless only). Also minor cleanup.
marceltaeumel Jul 16, 2021
88db62f
I missed a spot. Not sure why .clang_complete is in here at all.
marceltaeumel Jul 16, 2021
0adda86
Move all build directories into "building", dropping the prefix "buil…
marceltaeumel Jul 16, 2021
8b7b4ae
Replaces "build." with "building/".
marceltaeumel Jul 16, 2021
275ed38
In all build files because of extra "buildings" indirection", fix "..…
marceltaeumel Jul 16, 2021
864026c
In all build files because of the "building" indirection, change all …
marceltaeumel Jul 16, 2021
19da7e8
For Windows builds, fixes PLUGINSRCDIR, which needs to be "../../../s…
marceltaeumel Jul 16, 2021
4e5bf58
For all Pharo build files, fixes the regression of "../../third-party…
marceltaeumel Jul 17, 2021
255b3d2
CogVM source as per VMMaker.oscog-eem.2987
marceltaeumel Jul 17, 2021
0ac5379
Merge remote-tracking branch 'remotes/origin/Cog' into marceltaeumel/…
marceltaeumel Jul 17, 2021
6439590
In all build files because of extra "buildings" indirection", fix "..…
marceltaeumel Jul 17, 2021
55a077b
For unix, fixes regression in generated Makefiles.
marceltaeumel Jul 19, 2021
5c69415
In all build files because of extra "buildings" indirection, fixes re…
marceltaeumel Jul 20, 2021
9f3da93
Restore execute permission on all shell scripts.
marceltaeumel Jul 21, 2021
6b164bd
Merge remote-tracking branch 'origin/marceltaeumel/src-cleanup' into …
marceltaeumel Jul 21, 2021
de84852
CogVM source as per VMMaker.oscog-eem.2989
marceltaeumel Jul 21, 2021
c488ac4
Merge remote-tracking branch 'remotes/upstream/Cog' into marceltaeume…
marceltaeumel Jul 21, 2021
f1c0a95
CogVM source as per VMMaker.oscog-eem.3047
marceltaeumel Aug 24, 2021
5796836
Merge remote-tracking branch 'remotes/upstream/Cog' into marceltaeume…
marceltaeumel Aug 24, 2021
947428b
Recover fixes for mvm error codes for Linux builds.
marceltaeumel Aug 24, 2021
3c19b33
Recover fix for ARMv6 builds, which removes "-m32" flag
marceltaeumel Aug 24, 2021
c179bcf
Adapt build script to new "building/" path
marceltaeumel Aug 24, 2021
252a015
Recover fix for building third-party libs in lowcode flavors on 32-bi…
marceltaeumel Aug 24, 2021
af91d2c
Fixes path issue to mvm script for building third-party libs for Phar…
marceltaeumel Aug 24, 2021
16b1a12
No code generation for CogMIPSELCompiler since 46d713f (via VMMaker.o…
marceltaeumel Aug 24, 2021
532f466
Fix paths for recent addition of processor simulation on linux64ARMv8…
marceltaeumel Aug 24, 2021
9ddf252
Fix mkmf path check. Fix typo. All "vm-" plugins wrongfully had the v…
marceltaeumel Aug 24, 2021
e592966
Fixes remaining ARMv6 builds. I overlooked some -m32 flags.
marceltaeumel Aug 24, 2021
30fd4dc
For ARMv6 builds, restores execution flag of asasm binary.
marceltaeumel Aug 24, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
18 changes: 9 additions & 9 deletions building/linux32ARMv6/HowToBuild
Expand Up @@ -115,11 +115,11 @@ Each build directory contains three files
mvm
plugins.int
plugins.ext
The mvm script runs ../platforms/unix/config/configure with the relevant
The mvm script runs ../../platforms/unix/config/configure with the relevant
options, runs make, and then make install to create a VM directory tree in
../products, ../products/assert or ../products/debug as appropriate.
../../products, ../../products/assert or ../../products/debug as appropriate.
plugins.int and plugins.ext determine the set of plugins to be taken from
the supplied plugins directory (which defaults to ../src/plugins), and which
the supplied plugins directory (which defaults to ../../src/plugins), and which
are to be linked into the VM (plugins.int) or compiled as external shared
objects to be dynamically linked at run-time (plugins.ext).

Expand All @@ -135,7 +135,7 @@ provides the 32-bit compiler and the ia32-libs provides the 32-bit libraries.
You'll also have to add the -m32 switch to all gcc & g++ invocations. The
easiest way to do this is to add CC="gcc -m32" & CXX="g++ -m32" to the configure
script:
../../platforms/unix/config/configure CC="gcc -m32" CXX="g++ -m32" --without-npsqueak CFLAGS="-g -O2 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -DNDEBUG -DITIMER_HEARTBEAT=1 -DNO_VM_PROFILE=1 -DCOGMTVM=0 -DDEBUGVM=0" LIBS=-lpthread
../../../platforms/unix/config/configure CC="gcc -m32" CXX="g++ -m32" --without-npsqueak CFLAGS="-g -O2 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -DNDEBUG -DITIMER_HEARTBEAT=1 -DNO_VM_PROFILE=1 -DCOGMTVM=0 -DDEBUGVM=0" LIBS=-lpthread
To run a 32-bit VM on a 64-bit OS, you'll also need the 32-bit libraries
provided by the ia32-libs package.

Expand Down Expand Up @@ -163,18 +163,18 @@ Squeak build system above autoconf to the Cog sources. One can choose the vm
source files, plugin source files, and optimization level to compile a VM of
your choice. To find the full set of options via

../platforms/unix/config/configure --help
../../platforms/unix/config/configure --help

You can see the use of configure in the various mvm scripts in each build
directory.

e.g.
../../platforms/unix/config/configure --without-npsqueak CFLAGS="-g -O2 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -DNDEBUG -DITIMER_HEARTBEAT=1 -DNO_VM_PROFILE=1 -DCOGMTVM=0 -DDEBUGVM=0" LIBS=-lpthread
../../../platforms/unix/config/configure --without-npsqueak CFLAGS="-g -O2 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -DNDEBUG -DITIMER_HEARTBEAT=1 -DNO_VM_PROFILE=1 -DCOGMTVM=0 -DDEBUGVM=0" LIBS=-lpthread
make install prefix=WhereYouWantTheVmToGo

N.B. If you're on a 64-bit linux read 3e below!!
N.B. On Ubuntu *do not* supply "LIBS=-lpthread -luuid", i.e. use
../platforms/unix/config/configure --without-npsqueak CFLAGS="-g -O2 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -DNDEBUG -DITIMER_HEARTBEAT=1 -DNO_VM_PROFILE=1 -DCOGMTVM=0 -DDEBUGVM=0"
../../platforms/unix/config/configure --without-npsqueak CFLAGS="-g -O2 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -DNDEBUG -DITIMER_HEARTBEAT=1 -DNO_VM_PROFILE=1 -DCOGMTVM=0 -DDEBUGVM=0"


N.B. The plugin set is defined by plugins.ext and plugins.int in the build dir.
Expand Down Expand Up @@ -202,7 +202,7 @@ There are issues with gcc version > 4.2.1. Any of the following flags may break
-fcaller-saves

So turn them off. e.g.
../../platforms/unix/config/configure --without-npsqueak CFLAGS="-g -O2 -fno-caller-saves -fno-partial-inlining -fno-tree-pre -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -DNDEBUG -DNO_VM_PROFILE=1 -DCOGMTVM=0 -DDEBUGVM=0" LIBS="-lpthread -luuid"
../../../platforms/unix/config/configure --without-npsqueak CFLAGS="-g -O2 -fno-caller-saves -fno-partial-inlining -fno-tree-pre -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -DNDEBUG -DNO_VM_PROFILE=1 -DCOGMTVM=0 -DDEBUGVM=0" LIBS="-lpthread -luuid"
See http://smallissimo.blogspot.fr/2013/02/compiling-squeak-cog-virtual-machine-on.html

There appear to be issues with 3.4.x gcc version on RedHat. In particular
Expand All @@ -218,7 +218,7 @@ on Debian.

BitBlt optimizations on ARM
---------------------------
On ARM, BitBlt optimizations can be enbaled by including --enable-fast-bitblt as an option to ../platforms/unix/config/configure (default).
On ARM, BitBlt optimizations can be enbaled by including --enable-fast-bitblt as an option to ../../platforms/unix/config/configure (default).
This requires the use of the assembler asasm (cf. http://lists.squeakfoundation.org/pipermail/vm-dev/2013-May/012959.html and http://forum.world.st/commit-2774-add-instructions-for-enableFastBlt-on-arm-linux-td4704245.html).
However it is tricky to build from source and pre-packaged versions for Raspbian, Ubuntu, etc do not seem to be available. Therefore
asasm is included in Cog/building/linux32ARMv6/ as a pre-built binary. The Makefiles for BitBltPlugin and vm-display-X11 reference it directly.
Expand Down
2 changes: 1 addition & 1 deletion building/linux32ARMv6/makeallmakefiles
Expand Up @@ -4,7 +4,7 @@ trap 'exit 2' HUP INT PIPE TERM
for td in *.v3 *.spur; do
for d in $td/build*; do
if test -d "$d"; then
(cd ./$d;../../../platforms/unix/config/mkmf)
(cd ./$d;../../../../platforms/unix/config/mkmf)
else
echo no $d directory found
fi
Expand Down
12 changes: 6 additions & 6 deletions building/linux32ARMv6/newspeak.cog.spur/build.assert/mvm
Expand Up @@ -8,7 +8,7 @@ if [ $# -ge 1 ]; then
INSTALLDIR="$1"; shift
fi

if ../../../scripts/checkSCCSversion ; then exit 1; fi
if ../../../../scripts/checkSCCSversion ; then exit 1; fi
echo -n "clean? "
read a
case $a in
Expand All @@ -17,15 +17,15 @@ n|no|N|NO) echo "ok but this isn't safe!!";;
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 --without-npsqueak \
test -f config.h || ../../../../platforms/unix/config/configure --without-npsqueak \
--without-vm-display-fbdev --with-vmversion=5.0 \
--with-src=src/newspeak.vm.32bit.cog.spur \
--without-vm-display-fbdev --without-npsqueak --enable-fast-bitblt \
TARGET_ARCH="-march=armv6 -mfpu=vfp -mfloat-abi=hard" \
CFLAGS="$OPT -DI_REALLY_DONT_CARE_HOW_UNSAFE_THIS_IS -DCOGMTVM=0"
rm -f vm/sqUnixMain.o # nuke version info
rm -rf ../../../products/$INSTALLDIR
# prefer make install prefix=`readlink -f \`pwd\`/../../../products/$INSTALLDIR`
rm -rf ../../../../products/$INSTALLDIR
# prefer make install prefix=`readlink -f \`pwd\`/../../../../products/$INSTALLDIR`
# but older linux readlinks lack the -f flag and Raspbian lacks `readlinks`
make -j4 install-squeak install-plugins prefix=`(cd ../../../;pwd)`/products/$INSTALLDIR 2>&1 | tee LOG
../../editnewspeakinstall.sh ../../../products/$INSTALLDIR "$@"
make -j4 install-squeak install-plugins prefix=`(cd ../../../../;pwd)`/products/$INSTALLDIR 2>&1 | tee LOG
../../editnewspeakinstall.sh ../../../../products/$INSTALLDIR "$@"
12 changes: 6 additions & 6 deletions building/linux32ARMv6/newspeak.cog.spur/build.debug/mvm
Expand Up @@ -8,7 +8,7 @@ if [ $# -ge 1 ]; then
INSTALLDIR="$1"; shift
fi

if ../../../scripts/checkSCCSversion ; then exit 1; fi
if ../../../../scripts/checkSCCSversion ; then exit 1; fi
echo -n "clean? "
read a
case $a in
Expand All @@ -17,15 +17,15 @@ n|no|N|NO) echo "ok but this isn't safe!!";;
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 --without-npsqueak \
test -f config.h || ../../../../platforms/unix/config/configure --without-npsqueak \
--without-vm-display-fbdev --with-vmversion=5.0 \
--with-src=src/newspeak.vm.32bit.cog.spur \
--without-vm-display-fbdev --without-npsqueak --enable-fast-bitblt \
TARGET_ARCH="-march=armv6 -mfpu=vfp -mfloat-abi=hard" \
CFLAGS="$OPT -DI_REALLY_DONT_CARE_HOW_UNSAFE_THIS_IS -DCOGMTVM=0"
rm -f vm/sqUnixMain.o # nuke version info
rm -rf ../../../products/$INSTALLDIR
# prefer make install prefix=`readlink -f \`pwd\`/../../../products/$INSTALLDIR`
rm -rf ../../../../products/$INSTALLDIR
# prefer make install prefix=`readlink -f \`pwd\`/../../../../products/$INSTALLDIR`
# but older linux readlinks lack the -f flag and Raspbian lacks `readlinks`
make -j4 install-squeak install-plugins prefix=`(cd ../../../;pwd)`/products/$INSTALLDIR 2>&1 | tee LOG
../../editnewspeakinstall.sh ../../../products/$INSTALLDIR "$@"
make -j4 install-squeak install-plugins prefix=`(cd ../../../../;pwd)`/products/$INSTALLDIR 2>&1 | tee LOG
../../editnewspeakinstall.sh ../../../../products/$INSTALLDIR "$@"
12 changes: 6 additions & 6 deletions building/linux32ARMv6/newspeak.cog.spur/build/mvm
Expand Up @@ -8,7 +8,7 @@ if [ $# -ge 1 ]; then
INSTALLDIR="$1"; shift
fi

if ../../../scripts/checkSCCSversion ; then exit 1; fi
if ../../../../scripts/checkSCCSversion ; then exit 1; fi
echo -n "clean? "
read a
case $a in
Expand All @@ -17,15 +17,15 @@ n|no|N|NO) echo "ok but this isn't safe!!";;
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 --without-npsqueak \
test -f config.h || ../../../../platforms/unix/config/configure --without-npsqueak \
--without-vm-display-fbdev --with-vmversion=5.0 \
--with-src=src/newspeak.vm.32bit.cog.spur \
--without-vm-display-fbdev --without-npsqueak --enable-fast-bitblt \
TARGET_ARCH="-march=armv6 -mfpu=vfp -mfloat-abi=hard" \
CFLAGS="$OPT -DI_REALLY_DONT_CARE_HOW_UNSAFE_THIS_IS -DCOGMTVM=0"
rm -f vm/sqUnixMain.o # nuke version info
rm -rf ../../../products/$INSTALLDIR
# prefer make install prefix=`readlink -f \`pwd\`/../../../products/$INSTALLDIR`
rm -rf ../../../../products/$INSTALLDIR
# prefer make install prefix=`readlink -f \`pwd\`/../../../../products/$INSTALLDIR`
# but older linux readlinks lack the -f flag and Raspbian lacks `readlinks`
make -j4 install-squeak install-plugins prefix=`(cd ../../../;pwd)`/products/$INSTALLDIR 2>&1 | tee LOG
../../editnewspeakinstall.sh ../../../products/$INSTALLDIR "$@"
make -j4 install-squeak install-plugins prefix=`(cd ../../../../;pwd)`/products/$INSTALLDIR 2>&1 | tee LOG
../../editnewspeakinstall.sh ../../../../products/$INSTALLDIR "$@"
12 changes: 6 additions & 6 deletions building/linux32ARMv6/newspeak.stack.spur/build.assert/mvm
Expand Up @@ -8,7 +8,7 @@ if [ $# -ge 1 ]; then
INSTALLDIR="$1"; shift
fi

if ../../../scripts/checkSCCSversion ; then exit 1; fi
if ../../../../scripts/checkSCCSversion ; then exit 1; fi
echo -n "clean? "
read a
case $a in
Expand All @@ -17,15 +17,15 @@ n|no|N|NO) echo "ok but this isn't safe!!";;
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 \
test -f config.h || ../../../../platforms/unix/config/configure \
--with-vmversion=5.0 \
--with-src=src/newspeak.vm.32bit.stack.spur --disable-cogit \
--without-vm-display-fbdev --without-npsqueak --enable-fast-bitblt \
TARGET_ARCH="-march=armv6 -mfpu=vfp -mfloat-abi=hard" \
CFLAGS="$OPT"
rm -f vm/sqUnixMain.o # nuke version info
rm -rf ../../../products/$INSTALLDIR
# prefer make install prefix=`readlink -f \`pwd\`/../../../products/$INSTALLDIR`
rm -rf ../../../../products/$INSTALLDIR
# prefer make install prefix=`readlink -f \`pwd\`/../../../../products/$INSTALLDIR`
# but older linux readlinks lack the -f flag and Raspbian lacks `readlinks`
make -j4 install-squeak install-plugins prefix=`(cd ../../../;pwd)`/products/$INSTALLDIR 2>&1 | tee LOG
../../editnewspeakinstall.sh ../../../products/$INSTALLDIR "$@"
make -j4 install-squeak install-plugins prefix=`(cd ../../../../;pwd)`/products/$INSTALLDIR 2>&1 | tee LOG
../../editnewspeakinstall.sh ../../../../products/$INSTALLDIR "$@"
12 changes: 6 additions & 6 deletions building/linux32ARMv6/newspeak.stack.spur/build.debug/mvm
Expand Up @@ -8,7 +8,7 @@ if [ $# -ge 1 ]; then
INSTALLDIR="$1"; shift
fi

if ../../../scripts/checkSCCSversion ; then exit 1; fi
if ../../../../scripts/checkSCCSversion ; then exit 1; fi
echo -n "clean? "
read a
case $a in
Expand All @@ -17,15 +17,15 @@ n|no|N|NO) echo "ok but this isn't safe!!";;
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 \
test -f config.h || ../../../../platforms/unix/config/configure \
--with-vmversion=5.0 \
--with-src=src/newspeak.vm.32bit.stack.spur --disable-cogit \
--without-vm-display-fbdev --without-npsqueak --enable-fast-bitblt \
TARGET_ARCH="-march=armv6 -mfpu=vfp -mfloat-abi=hard" \
CFLAGS="$OPT"
rm -f vm/sqUnixMain.o # nuke version info
rm -rf ../../../products/$INSTALLDIR
# prefer make install prefix=`readlink -f \`pwd\`/../../../products/$INSTALLDIR`
rm -rf ../../../../products/$INSTALLDIR
# prefer make install prefix=`readlink -f \`pwd\`/../../../../products/$INSTALLDIR`
# but older linux readlinks lack the -f flag and Raspbian lacks `readlinks`
make -j4 install-squeak install-plugins prefix=`(cd ../../../;pwd)`/products/$INSTALLDIR 2>&1 | tee LOG
../../editnewspeakinstall.sh ../../../products/$INSTALLDIR "$@"
make -j4 install-squeak install-plugins prefix=`(cd ../../../../;pwd)`/products/$INSTALLDIR 2>&1 | tee LOG
../../editnewspeakinstall.sh ../../../../products/$INSTALLDIR "$@"
12 changes: 6 additions & 6 deletions building/linux32ARMv6/newspeak.stack.spur/build/mvm
Expand Up @@ -8,7 +8,7 @@ if [ $# -ge 1 ]; then
INSTALLDIR="$1"; shift
fi

if ../../../scripts/checkSCCSversion ; then exit 1; fi
if ../../../../scripts/checkSCCSversion ; then exit 1; fi
echo -n "clean? "
read a
case $a in
Expand All @@ -17,15 +17,15 @@ n|no|N|NO) echo "ok but this isn't safe!!";;
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 \
test -f config.h || ../../../../platforms/unix/config/configure \
--with-vmversion=5.0 \
--with-src=src/newspeak.vm.32bit.stack.spur --disable-cogit \
--without-vm-display-fbdev --without-npsqueak --enable-fast-bitblt \
TARGET_ARCH="-march=armv6 -mfpu=vfp -mfloat-abi=hard" \
CFLAGS="$OPT"
rm -f vm/sqUnixMain.o # nuke version info
rm -rf ../../../products/$INSTALLDIR
# prefer make install prefix=`readlink -f \`pwd\`/../../../products/$INSTALLDIR`
rm -rf ../../../../products/$INSTALLDIR
# prefer make install prefix=`readlink -f \`pwd\`/../../../../products/$INSTALLDIR`
# but older linux readlinks lack the -f flag and Raspbian lacks `readlinks`
make -j4 install-squeak install-plugins prefix=`(cd ../../../;pwd)`/products/$INSTALLDIR 2>&1 | tee LOG
../../editnewspeakinstall.sh ../../../products/$INSTALLDIR "$@"
make -j4 install-squeak install-plugins prefix=`(cd ../../../../;pwd)`/products/$INSTALLDIR 2>&1 | tee LOG
../../editnewspeakinstall.sh ../../../../products/$INSTALLDIR "$@"
12 changes: 6 additions & 6 deletions building/linux32ARMv6/pharo.cog.spur/build.assert/mvm
Expand Up @@ -8,7 +8,7 @@ if [ $# -ge 1 ]; then
INSTALLDIR="$1"; shift
fi

if ../../../scripts/checkSCCSversion ; then exit 1; fi
if ../../../../scripts/checkSCCSversion ; then exit 1; fi
echo -n "clean? "
read a
case $a in
Expand All @@ -17,7 +17,7 @@ n|no|N|NO) echo "ok but this isn't safe!!";;
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 \
test -f config.h || ../../../../platforms/unix/config/configure \
--without-npsqueak \
--without-vm-display-fbdev \
--with-vmversion=5.0 \
Expand All @@ -28,8 +28,8 @@ test -f config.h || ../../../platforms/unix/config/configure \
CFLAGS="$OPT -DI_REALLY_DONT_CARE_HOW_UNSAFE_THIS_IS -DUSE_MIDI_ALSA -DCOGMTVM=0" \
LIBS=" -Wl,-rpath,'\$\$ORIGIN'"
rm -f vm/sqUnixMain.o # nuke version info
rm -rf ../../../products/$INSTALLDIR
# prefer make install prefix=`readlink -f \`pwd\`/../../../products/$INSTALLDIR`
rm -rf ../../../../products/$INSTALLDIR
# prefer make install prefix=`readlink -f \`pwd\`/../../../../products/$INSTALLDIR`
# but older linux readlinks lack the -f flag and Raspbian lacks `readlinks`
make -j4 install-squeak install-plugins prefix=`(cd ../../../;pwd)`/products/$INSTALLDIR 2>&1 | tee LOG
../../editpharoinstall.sh ../../../products/$INSTALLDIR "$@"
make -j4 install-squeak install-plugins prefix=`(cd ../../../../;pwd)`/products/$INSTALLDIR 2>&1 | tee LOG
../../editpharoinstall.sh ../../../../products/$INSTALLDIR "$@"
12 changes: 6 additions & 6 deletions building/linux32ARMv6/pharo.cog.spur/build.debug/mvm
Expand Up @@ -8,7 +8,7 @@ if [ $# -ge 1 ]; then
INSTALLDIR="$1"; shift
fi

if ../../../scripts/checkSCCSversion ; then exit 1; fi
if ../../../../scripts/checkSCCSversion ; then exit 1; fi
echo -n "clean? "
read a
case $a in
Expand All @@ -17,7 +17,7 @@ n|no|N|NO) echo "ok but this isn't safe!!";;
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 \
test -f config.h || ../../../../platforms/unix/config/configure \
--without-npsqueak \
--without-vm-display-fbdev \
--with-vmversion=5.0 \
Expand All @@ -28,8 +28,8 @@ test -f config.h || ../../../platforms/unix/config/configure \
CFLAGS="$OPT -DI_REALLY_DONT_CARE_HOW_UNSAFE_THIS_IS -DUSE_MIDI_ALSA -DCOGMTVM=0" \
LIBS=" -Wl,-rpath,'\$\$ORIGIN'"
rm -f vm/sqUnixMain.o # nuke version info
rm -rf ../../../products/$INSTALLDIR
# prefer make install prefix=`readlink -f \`pwd\`/../../../products/$INSTALLDIR`
rm -rf ../../../../products/$INSTALLDIR
# prefer make install prefix=`readlink -f \`pwd\`/../../../../products/$INSTALLDIR`
# but older linux readlinks lack the -f flag and Raspbian lacks `readlinks`
make -j4 install-squeak install-plugins prefix=`(cd ../../../;pwd)`/products/$INSTALLDIR 2>&1 | tee LOG
../../editpharoinstall.sh ../../../products/$INSTALLDIR "$@"
make -j4 install-squeak install-plugins prefix=`(cd ../../../../;pwd)`/products/$INSTALLDIR 2>&1 | tee LOG
../../editpharoinstall.sh ../../../../products/$INSTALLDIR "$@"
20 changes: 10 additions & 10 deletions building/linux32ARMv6/pharo.cog.spur/build/mvm
Expand Up @@ -18,24 +18,24 @@ if [ $# -ge 1 ]; then
INSTALLDIR="$1"; shift
fi

if ../../../scripts/checkSCCSversion ; then exit 1; fi
if ../../../../scripts/checkSCCSversion ; then exit 1; fi
echo -n "clean? "
read a
case $a in
n|no|N|NO) echo "ok but this isn't safe!!";;
*) test -f Makefile && make reallyclean
# for lib in ${THIRDPARTYLIBS}; do
# ../../third-party/mvm ${lib} clean
# ../../../third-party/mvm ${lib} clean
# done
esac
test -f plugins.int || (test -f ../plugins.int && cp -p ../plugins.int . || cp -p ../../plugins.int .)
test -f plugins.ext || (test -f ../$EXTERNALPLUGINS && cp -p ../plugins.ext ./plugins.ext || cp -p ../../$EXTERNALPLUGINS ./plugins.ext)

for lib in ${THIRDPARTYLIBS}; do
../../third-party/mvm ${lib}
../../../third-party/mvm ${lib}
done

test -f config.h || ../../../platforms/unix/config/configure \
test -f config.h || ../../../../platforms/unix/config/configure \
--without-npsqueak \
--without-vm-display-fbdev \
--with-vmversion=5.0 \
Expand All @@ -46,13 +46,13 @@ test -f config.h || ../../../platforms/unix/config/configure \
CFLAGS="$OPT -DI_REALLY_DONT_CARE_HOW_UNSAFE_THIS_IS -DUSE_MIDI_ALSA -DCOGMTVM=0" \
LIBS=" -Wl,-rpath,'\$\$ORIGIN'"
rm -f vm/sqUnixMain.o # nuke version info
rm -rf ../../../products/$INSTALLDIR
# prefer make install prefix=`readlink -f \`pwd\`/../../../products/$INSTALLDIR`
rm -rf ../../../../products/$INSTALLDIR
# prefer make install prefix=`readlink -f \`pwd\`/../../../../products/$INSTALLDIR`
# but older linux readlinks lack the -f flag and Raspbian lacks `readlinks`
make -j4 install-squeak install-plugins prefix=`(cd ../../../;pwd)`/products/$INSTALLDIR 2>&1 | tee LOG
productDir=`find ../../../products/$INSTALLDIR -name "5.0*"`
make -j4 install-squeak install-plugins prefix=`(cd ../../../../;pwd)`/products/$INSTALLDIR 2>&1 | tee LOG
productDir=`find ../../../../products/$INSTALLDIR -name "5.0*"`
productDir=`(cd $productDir;pwd)`
for lib in ${THIRDPARTYLIBS}; do
../../third-party/mvm ${lib} install $productDir
../../../third-party/mvm ${lib} install $productDir
done
../../editpharoinstall.sh ../../../products/$INSTALLDIR "$@"
../../editpharoinstall.sh ../../../../products/$INSTALLDIR "$@"