[Scummvm-cvs-logs] SF.net SVN: scummvm:[39524] scummvm/trunk
marcus_c at users.sourceforge.net
marcus_c at users.sourceforge.net
Thu Mar 19 00:38:27 CET 2009
Revision: 39524
http://scummvm.svn.sourceforge.net/scummvm/?rev=39524&view=rev
Author: marcus_c
Date: 2009-03-18 23:38:25 +0000 (Wed, 18 Mar 2009)
Log Message:
-----------
Initial support for building the Dreamcast port using the configure
script. Dynamic modules are not supported just yet.
Modified Paths:
--------------
scummvm/trunk/configure
Added Paths:
-----------
scummvm/trunk/backends/platform/dc/dreamcast.mk
scummvm/trunk/backends/platform/dc/module.mk
Added: scummvm/trunk/backends/platform/dc/dreamcast.mk
===================================================================
--- scummvm/trunk/backends/platform/dc/dreamcast.mk (rev 0)
+++ scummvm/trunk/backends/platform/dc/dreamcast.mk 2009-03-18 23:38:25 UTC (rev 39524)
@@ -0,0 +1,15 @@
+# $URL$
+# $Id$
+
+ronindir = /usr/local/ronin
+
+CC := $(CXX)
+ASFLAGS := $(CXXFLAGS)
+
+SCUMMVM.BIN : scummvm.bin
+ scramble $< $@
+
+scummvm.bin : scummvm.elf
+ sh-elf-objcopy -S -R .stack -O binary $< $@
+
+
Property changes on: scummvm/trunk/backends/platform/dc/dreamcast.mk
___________________________________________________________________
Added: svn:mime-type
+ text/plain
Added: svn:keywords
+ Date Rev Author URL Id
Added: svn:eol-style
+ native
Added: scummvm/trunk/backends/platform/dc/module.mk
===================================================================
--- scummvm/trunk/backends/platform/dc/module.mk (rev 0)
+++ scummvm/trunk/backends/platform/dc/module.mk 2009-03-18 23:38:25 UTC (rev 39524)
@@ -0,0 +1,10 @@
+MODULE := backends/platform/dc
+
+MODULE_OBJS := dcmain.o time.o display.o audio.o input.o selector.o icon.o \
+ label.o vmsave.o softkbd.o dcloader.o cache.o dc-fs.o
+
+MODULE_DIRS += \
+ backends/platform/dc/
+
+# We don't use the rules.mk here on purpose
+OBJS := $(addprefix $(MODULE)/, $(MODULE_OBJS)) $(OBJS)
Property changes on: scummvm/trunk/backends/platform/dc/module.mk
___________________________________________________________________
Added: svn:mime-type
+ text/plain
Added: svn:keywords
+ Date Rev Author URL Id
Added: svn:eol-style
+ native
Modified: scummvm/trunk/configure
===================================================================
--- scummvm/trunk/configure 2009-03-18 23:17:54 UTC (rev 39523)
+++ scummvm/trunk/configure 2009-03-18 23:38:25 UTC (rev 39524)
@@ -847,6 +847,13 @@
_host_os=linux
_host_cpu=arm
;;
+dreamcast)
+ _host_os=dreamcast
+ _host_cpu=sh
+ _host_alias=sh-elf
+ CXXFLAGS="$CXXFLAGS -ml -m4-single-only"
+ LDFLAGS="$LDFLAGS -ml -m4-single-only"
+ ;;
*)
if test -z "$_host"; then
guessed_host=`$_srcdir/config.guess`
@@ -876,6 +883,9 @@
gp2x-linux)
EXEEXT=".gp2x"
;;
+dreamcast)
+ EXEEXT=".elf"
+ ;;
*)
EXEEXT=""
;;
@@ -967,7 +977,7 @@
#
if test "$_cxx_major" -ge "3" ; then
case $_host_os in
- mingw* | cygwin*)
+ mingw* | cygwin* | dreamcast)
CXXFLAGS="$CXXFLAGS -W -Wno-unused-parameter"
;;
*)
@@ -1112,6 +1122,9 @@
type_2_byte='short'
type_4_byte='long'
;;
+ dreamcast)
+ DEFINES="$DEFINES -D__DC__ -DNONSTANDARD_PORT"
+ ;;
# given this is a shell script assume some type of unix
*)
echo "WARNING: could not establish system type, assuming unix like"
@@ -1222,6 +1235,24 @@
_backend="iphone"
_build_hq_scalers="no"
;;
+ dreamcast)
+ echo "Cross-compiling to $_host, forcing endianness, alignment and type sizes"
+ DEFINES="$DEFINES -DDISABLE_DEFAULT_SAVEFILEMANAGER -DDISABLE_TEXT_CONSOLE -DDISABLE_COMMAND_LINE"
+ CXXFLAGS="$CXXFLAGS -O3 -Wno-multichar -funroll-loops -fschedule-insns2 -fomit-frame-pointer -fdelete-null-pointer-checks -fno-exceptions"
+ _endian=little
+ _need_memalign=yes
+ type_1_byte='char'
+ type_2_byte='short'
+ type_4_byte='int'
+ _backend="dc"
+ _build_scalers="no"
+ _build_hq_scalers="no"
+ _mad="yes"
+ _zlib="yes"
+ _ar="$_host_alias-ar cru"
+ _ranlib=$_host_alias-ranlib
+ add_line_to_config_mk 'include $(srcdir)/backends/platform/dc/dreamcast.mk'
+ ;;
*)
echo "Continuing with auto-detected values ... if you have problems, please add your target to configure."
;;
@@ -1706,6 +1737,12 @@
DEFINES="$DEFINES -DIPHONE_BACKEND"
MODULES="$MODULES backends/platform/iphone"
;;
+ dc)
+ INCLUDES="$INCLUDES "'-I$(srcdir)/backends/platform/dc -I$(ronindir)/include'
+ LDFLAGS="$LDFLAGS -Wl,-Ttext,0x8c010000 -nostartfiles "'$(ronindir)/lib/crt0.o -L$(ronindir)/lib'
+ LIBS="$LIBS -lronin -lm"
+ MODULES="$MODULES backends/platform/dc"
+ ;;
*)
echo "support for $_backend backend not implemented in configure script yet"
exit 1
@@ -1888,6 +1925,7 @@
vpath %.m \$(srcdir)
vpath %.asm \$(srcdir)
vpath %.s \$(srcdir)
+vpath %.S \$(srcdir)
include \$(srcdir)/Makefile
EOF
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list