[Vm-dev] [commit][3294] Add a script to build debuggable ARM sim libraries.

commits at squeakvm.org commits at squeakvm.org
Thu Mar 26 18:52:54 UTC 2015


Revision: 3294
Author:   eliot
Date:     2015-03-26 11:52:48 -0700 (Thu, 26 Mar 2015)
Log Message:
-----------
Add a script to build debuggable ARM sim libraries.
Make those makeit scripts for plugins install in all the right places.

Modified Paths:
--------------
    branches/Cog/build.macos32x86/newspeak.cog.spur/UnixOSProcessPlugin/makeit
    branches/Cog/build.macos32x86/newspeak.cog.v3/UnixOSProcessPlugin/makeit
    branches/Cog/build.macos32x86/newspeak.stack.spur/UnixOSProcessPlugin/makeit
    branches/Cog/build.macos32x86/squeak.cog.spur/BochsIA32Plugin/makeit
    branches/Cog/build.macos32x86/squeak.cog.spur/GdbARMPlugin/makeit
    branches/Cog/build.macos32x86/squeak.cog.spur/UnixOSProcessPlugin/makeit
    branches/Cog/build.macos32x86/squeak.cog.v3/BochsIA32Plugin/makeit
    branches/Cog/build.macos32x86/squeak.cog.v3/GdbARMPlugin/makeit
    branches/Cog/build.macos32x86/squeak.cog.v3/UnixOSProcessPlugin/makeit
    branches/Cog/build.macos32x86/squeak.sista.spur/UnixOSProcessPlugin/makeit
    branches/Cog/build.macos32x86/squeak.sista.v3/UnixOSProcessPlugin/makeit
    branches/Cog/build.macos32x86/squeak.stack.spur/UnixOSProcessPlugin/makeit
    branches/Cog/build.macos32x86/squeak.stack.v3/UnixOSProcessPlugin/makeit
    branches/Cog/processors/ARM/mac/BUILDarmsim.sh

Added Paths:
-----------
    branches/Cog/processors/ARM/mac/BUILDarmsim-dbg.sh

Modified: branches/Cog/build.macos32x86/newspeak.cog.spur/UnixOSProcessPlugin/makeit
===================================================================
--- branches/Cog/build.macos32x86/newspeak.cog.spur/UnixOSProcessPlugin/makeit	2015-03-26 05:37:40 UTC (rev 3293)
+++ branches/Cog/build.macos32x86/newspeak.cog.spur/UnixOSProcessPlugin/makeit	2015-03-26 18:52:48 UTC (rev 3294)
@@ -9,7 +9,7 @@
 		cp -R build/Debug/UnixOSProcessPlugin.bundle "../$d/Contents/Resources"
 	fi
 done
-for d in Fast.app "Qwaq VM.app"
+for d in Fast.app "Qwaq VM.app" Squeak.app Croquet.app
 do
 	if [ -d "../$d" ]; then
 		echo installed Release UnixOSProcessPlugin in ../$d

Modified: branches/Cog/build.macos32x86/newspeak.cog.v3/UnixOSProcessPlugin/makeit
===================================================================
--- branches/Cog/build.macos32x86/newspeak.cog.v3/UnixOSProcessPlugin/makeit	2015-03-26 05:37:40 UTC (rev 3293)
+++ branches/Cog/build.macos32x86/newspeak.cog.v3/UnixOSProcessPlugin/makeit	2015-03-26 18:52:48 UTC (rev 3294)
@@ -9,7 +9,7 @@
 		cp -R build/Debug/UnixOSProcessPlugin.bundle "../$d/Contents/Resources"
 	fi
 done
-for d in Fast.app "Qwaq VM.app"
+for d in Fast.app "Qwaq VM.app" Squeak.app Croquet.app
 do
 	if [ -d "../$d" ]; then
 		echo installed Release UnixOSProcessPlugin in ../$d

Modified: branches/Cog/build.macos32x86/newspeak.stack.spur/UnixOSProcessPlugin/makeit
===================================================================
--- branches/Cog/build.macos32x86/newspeak.stack.spur/UnixOSProcessPlugin/makeit	2015-03-26 05:37:40 UTC (rev 3293)
+++ branches/Cog/build.macos32x86/newspeak.stack.spur/UnixOSProcessPlugin/makeit	2015-03-26 18:52:48 UTC (rev 3294)
@@ -9,7 +9,7 @@
 		cp -R build/Debug/UnixOSProcessPlugin.bundle "../$d/Contents/Resources"
 	fi
 done
-for d in Fast.app "Qwaq VM.app"
+for d in Fast.app "Qwaq VM.app" Squeak.app Croquet.app
 do
 	if [ -d "../$d" ]; then
 		echo installed Release UnixOSProcessPlugin in ../$d

Modified: branches/Cog/build.macos32x86/squeak.cog.spur/BochsIA32Plugin/makeit
===================================================================
--- branches/Cog/build.macos32x86/squeak.cog.spur/BochsIA32Plugin/makeit	2015-03-26 05:37:40 UTC (rev 3293)
+++ branches/Cog/build.macos32x86/squeak.cog.spur/BochsIA32Plugin/makeit	2015-03-26 18:52:48 UTC (rev 3294)
@@ -9,7 +9,7 @@
 		cp -R build/Debug/BochsIA32Plugin.bundle "../$d/Contents/Resources"
 	fi
 done
-for d in Fast.app Croquet.app
+for d in Fast.app Croquet.app Squeak.app
 do
 	if [ -d "../$d" ]; then
 		echo installed Release BochsIA32Plugin in ../$d

Modified: branches/Cog/build.macos32x86/squeak.cog.spur/GdbARMPlugin/makeit
===================================================================
--- branches/Cog/build.macos32x86/squeak.cog.spur/GdbARMPlugin/makeit	2015-03-26 05:37:40 UTC (rev 3293)
+++ branches/Cog/build.macos32x86/squeak.cog.spur/GdbARMPlugin/makeit	2015-03-26 18:52:48 UTC (rev 3294)
@@ -9,7 +9,7 @@
 		cp -R build/Debug/GdbARMPlugin.bundle "../$d/Contents/Resources"
 	fi
 done
-for d in Fast.app Croquet.app
+for d in Fast.app Croquet.app Squeak.app
 do
 	if [ -d "../$d" ]; then
 		echo installed Release GdbARMPlugin in ../$d

Modified: branches/Cog/build.macos32x86/squeak.cog.spur/UnixOSProcessPlugin/makeit
===================================================================
--- branches/Cog/build.macos32x86/squeak.cog.spur/UnixOSProcessPlugin/makeit	2015-03-26 05:37:40 UTC (rev 3293)
+++ branches/Cog/build.macos32x86/squeak.cog.spur/UnixOSProcessPlugin/makeit	2015-03-26 18:52:48 UTC (rev 3294)
@@ -9,7 +9,7 @@
 		cp -R build/Debug/UnixOSProcessPlugin.bundle "../$d/Contents/Resources"
 	fi
 done
-for d in Fast.app "Qwaq VM.app"
+for d in Fast.app "Qwaq VM.app" Croquet.app Squeak.app
 do
 	if [ -d "../$d" ]; then
 		echo installed Release UnixOSProcessPlugin in ../$d

Modified: branches/Cog/build.macos32x86/squeak.cog.v3/BochsIA32Plugin/makeit
===================================================================
--- branches/Cog/build.macos32x86/squeak.cog.v3/BochsIA32Plugin/makeit	2015-03-26 05:37:40 UTC (rev 3293)
+++ branches/Cog/build.macos32x86/squeak.cog.v3/BochsIA32Plugin/makeit	2015-03-26 18:52:48 UTC (rev 3294)
@@ -9,7 +9,7 @@
 		cp -R build/Debug/BochsIA32Plugin.bundle "../$d/Contents/Resources"
 	fi
 done
-for d in Fast.app Croquet.app
+for d in Fast.app Croquet.app Squeak.app
 do
 	if [ -d "../$d" ]; then
 		echo installed Release BochsIA32Plugin in ../$d

Modified: branches/Cog/build.macos32x86/squeak.cog.v3/GdbARMPlugin/makeit
===================================================================
--- branches/Cog/build.macos32x86/squeak.cog.v3/GdbARMPlugin/makeit	2015-03-26 05:37:40 UTC (rev 3293)
+++ branches/Cog/build.macos32x86/squeak.cog.v3/GdbARMPlugin/makeit	2015-03-26 18:52:48 UTC (rev 3294)
@@ -9,7 +9,7 @@
 		cp -R build/Debug/GdbARMPlugin.bundle "../$d/Contents/Resources"
 	fi
 done
-for d in Fast.app Croquet.app
+for d in Fast.app Croquet.app Squeak.app
 do
 	if [ -d "../$d" ]; then
 		echo installed Release GdbARMPlugin in ../$d

Modified: branches/Cog/build.macos32x86/squeak.cog.v3/UnixOSProcessPlugin/makeit
===================================================================
--- branches/Cog/build.macos32x86/squeak.cog.v3/UnixOSProcessPlugin/makeit	2015-03-26 05:37:40 UTC (rev 3293)
+++ branches/Cog/build.macos32x86/squeak.cog.v3/UnixOSProcessPlugin/makeit	2015-03-26 18:52:48 UTC (rev 3294)
@@ -9,7 +9,7 @@
 		cp -R build/Debug/UnixOSProcessPlugin.bundle "../$d/Contents/Resources"
 	fi
 done
-for d in Fast.app "Qwaq VM.app"
+for d in Fast.app "Qwaq VM.app" Croquet.app Squeak.app
 do
 	if [ -d "../$d" ]; then
 		echo installed Release UnixOSProcessPlugin in ../$d

Modified: branches/Cog/build.macos32x86/squeak.sista.spur/UnixOSProcessPlugin/makeit
===================================================================
--- branches/Cog/build.macos32x86/squeak.sista.spur/UnixOSProcessPlugin/makeit	2015-03-26 05:37:40 UTC (rev 3293)
+++ branches/Cog/build.macos32x86/squeak.sista.spur/UnixOSProcessPlugin/makeit	2015-03-26 18:52:48 UTC (rev 3294)
@@ -9,7 +9,7 @@
 		cp -R build/Debug/UnixOSProcessPlugin.bundle "../$d/Contents/Resources"
 	fi
 done
-for d in Fast.app "Qwaq VM.app"
+for d in Fast.app "Qwaq VM.app" Croquet.app Squeak.app
 do
 	if [ -d "../$d" ]; then
 		echo installed Release UnixOSProcessPlugin in ../$d

Modified: branches/Cog/build.macos32x86/squeak.sista.v3/UnixOSProcessPlugin/makeit
===================================================================
--- branches/Cog/build.macos32x86/squeak.sista.v3/UnixOSProcessPlugin/makeit	2015-03-26 05:37:40 UTC (rev 3293)
+++ branches/Cog/build.macos32x86/squeak.sista.v3/UnixOSProcessPlugin/makeit	2015-03-26 18:52:48 UTC (rev 3294)
@@ -9,7 +9,7 @@
 		cp -R build/Debug/UnixOSProcessPlugin.bundle "../$d/Contents/Resources"
 	fi
 done
-for d in Fast.app "Qwaq VM.app"
+for d in Fast.app "Qwaq VM.app" Croquet.app Squeak.app
 do
 	if [ -d "../$d" ]; then
 		echo installed Release UnixOSProcessPlugin in ../$d

Modified: branches/Cog/build.macos32x86/squeak.stack.spur/UnixOSProcessPlugin/makeit
===================================================================
--- branches/Cog/build.macos32x86/squeak.stack.spur/UnixOSProcessPlugin/makeit	2015-03-26 05:37:40 UTC (rev 3293)
+++ branches/Cog/build.macos32x86/squeak.stack.spur/UnixOSProcessPlugin/makeit	2015-03-26 18:52:48 UTC (rev 3294)
@@ -9,7 +9,7 @@
 		cp -R build/Debug/UnixOSProcessPlugin.bundle "../$d/Contents/Resources"
 	fi
 done
-for d in Fast.app "Qwaq VM.app"
+for d in Fast.app "Qwaq VM.app" Croquet.app Squeak.app
 do
 	if [ -d "../$d" ]; then
 		echo installed Release UnixOSProcessPlugin in ../$d

Modified: branches/Cog/build.macos32x86/squeak.stack.v3/UnixOSProcessPlugin/makeit
===================================================================
--- branches/Cog/build.macos32x86/squeak.stack.v3/UnixOSProcessPlugin/makeit	2015-03-26 05:37:40 UTC (rev 3293)
+++ branches/Cog/build.macos32x86/squeak.stack.v3/UnixOSProcessPlugin/makeit	2015-03-26 18:52:48 UTC (rev 3294)
@@ -9,7 +9,7 @@
 		cp -R build/Debug/UnixOSProcessPlugin.bundle "../$d/Contents/Resources"
 	fi
 done
-for d in Fast.app "Qwaq VM.app"
+for d in Fast.app "Qwaq VM.app" Croquet.app Squeak.app
 do
 	if [ -d "../$d" ]; then
 		echo installed Release UnixOSProcessPlugin in ../$d

Added: branches/Cog/processors/ARM/mac/BUILDarmsim-dbg.sh
===================================================================
--- branches/Cog/processors/ARM/mac/BUILDarmsim-dbg.sh	                        (rev 0)
+++ branches/Cog/processors/ARM/mac/BUILDarmsim-dbg.sh	2015-03-26 18:52:48 UTC (rev 3294)
@@ -0,0 +1,19 @@
+#!/bin/bash
+# This script builds debug versions of
+#	gdb-7.6/opcodes/libopcodes.a
+#	gdb-7.6/sim/arm/libsim.a
+
+test -d gdb-7.6 || svn export ../gdb-7.6
+
+ln -s ../../binutils-2.25/bfd/bfd.h gdb-7.6/bfd/bfd.h
+ln -s ../../binutils-2.25/bfd/config.h gdb-7.6/bfd/config.h
+libtool -V >gdb-7.6/bfd/libtool-soversion
+(cd gdb-7.6/opcodes # i.e. processors/ARM/gdb-7.6/opcodes
+./configure --target=arm-linux --build=i386-apple-darwin9 CFLAGS="-arch i386 -g -O0" LDFLAGS="-arch i386"
+make
+
+cd ../sim/common # i.e. processors/ARM/gdb-7.6/sim/common
+./configure --target=arm-linux --build=i386-apple-darwin9 CFLAGS="-arch i386 -g -O0" LDFLAGS="-arch i386"
+cd ../arm # i.e. processors/ARM/gdb-7.6/sim/arm
+./configure --target=arm-linux --build=i386-apple-darwin9 CFLAGS="-arch i386 -g -O0" LDFLAGS="-arch i386"
+make)


Property changes on: branches/Cog/processors/ARM/mac/BUILDarmsim-dbg.sh
___________________________________________________________________
Added: svn:executable
   + *

Modified: branches/Cog/processors/ARM/mac/BUILDarmsim.sh
===================================================================
--- branches/Cog/processors/ARM/mac/BUILDarmsim.sh	2015-03-26 05:37:40 UTC (rev 3293)
+++ branches/Cog/processors/ARM/mac/BUILDarmsim.sh	2015-03-26 18:52:48 UTC (rev 3294)
@@ -8,14 +8,6 @@
 ln -s ../../binutils-2.25/bfd/bfd.h gdb-7.6/bfd/bfd.h
 ln -s ../../binutils-2.25/bfd/config.h gdb-7.6/bfd/config.h
 libtool -V >gdb-7.6/bfd/libtool-soversion
-if false; then
-ed - gdb-7.6/sim/arm/armos.c <<END
-/^ARMul_OSHandleSWI/
-s/^/core_/
-w
-q
-END
-fi
 (cd gdb-7.6/opcodes # i.e. processors/ARM/gdb-7.6/opcodes
 ./configure --target=arm-linux --build=i386-apple-darwin9 CFLAGS="-arch i386 -g -O2" LDFLAGS="-arch i386"
 make



More information about the Vm-dev mailing list