aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabio Battaglia2010-09-08 18:04:38 +0000
committerFabio Battaglia2010-09-08 18:04:38 +0000
commit0288f60f1972b5c5a7d719a8114fdeae32024cb2 (patch)
tree66e9c4611c8e57d9e4aaf30530ff920ac4a40576
parentf3a9828d3683ed9ace360adb2b37459fbc28f98b (diff)
downloadscummvm-rg350-0288f60f1972b5c5a7d719a8114fdeae32024cb2.tar.gz
scummvm-rg350-0288f60f1972b5c5a7d719a8114fdeae32024cb2.tar.bz2
scummvm-rg350-0288f60f1972b5c5a7d719a8114fdeae32024cb2.zip
CONFIGURE and N64: add n64.mk with nintendo64 specific dist targets
svn-id: r52641
-rw-r--r--backends/platform/n64/Makefile4
-rw-r--r--backends/platform/n64/n64.mk27
-rw-r--r--backends/platform/n64/pad_rom.sh6
-rwxr-xr-xconfigure1
4 files changed, 33 insertions, 5 deletions
diff --git a/backends/platform/n64/Makefile b/backends/platform/n64/Makefile
index b8b2e61f77..f80aa29262 100644
--- a/backends/platform/n64/Makefile
+++ b/backends/platform/n64/Makefile
@@ -49,7 +49,7 @@ USE_RGB_COLOR=0
ENABLED=STATIC_PLUGIN
-ENABLE_SCUMM = $(ENABLED)
+#ENABLE_SCUMM = $(ENABLED)
#ENABLE_SCI = $(ENABLED)
#ENABLE_GOB = $(ENABLED)
#ENABLE_PARALLACTION = $(ENABLED)
@@ -74,7 +74,7 @@ all: $(TARGET).v64
$(TARGET).v64: $(TARGET).bin ROMFS.img bootcode
cat bootcode $(TARGET).bin ROMFS.img > $(TARGET).v64
- ./pad_rom.sh
+ ./pad_rom.sh $(TARGET).v64
ROMFS.img:
genromfs -f ./ROMFS.img -d ./ROMFS -V romtest
diff --git a/backends/platform/n64/n64.mk b/backends/platform/n64/n64.mk
new file mode 100644
index 0000000000..580bdce7ce
--- /dev/null
+++ b/backends/platform/n64/n64.mk
@@ -0,0 +1,27 @@
+N64_EXE_STRIPPED := scummvm_stripped$(EXEEXT)
+
+bundle_name = n64-dist/scummvm
+BASESIZE = 2097152
+
+all: $(N64_EXE_STRIPPED)
+
+$(N64_EXE_STRIPPED): $(EXECUTABLE)
+ $(STRIP) $< -o $@
+
+n64-distclean:
+ rm -rf $(bundle_name)
+ rm $(N64_EXE_STRIPPED)
+
+n64-dist: all
+ $(MKDIR) $(bundle_name)
+ $(MKDIR) $(bundle_name)/romfs
+ $(CP) $(DIST_FILES_ENGINEDATA) $(bundle_name)/romfs
+ $(CP) $(DIST_FILES_DOCS) $(bundle_name)/
+ $(CP) $(srcdir)/backends/vkeybd/packs/vkeybd_default.zip $(bundle_name)/romfs
+ genromfs -f $(bundle_name)/romfs.img -d $(bundle_name)/romfs -V scummvmn64
+ mips64-objcopy $(EXECUTABLE) $(bundle_name)/scummvm.elf -O binary
+ cat $(N64SDK)/hkz-libn64/bootcode $(bundle_name)/scummvm.elf $(bundle_name)/romfs.img > scummvm.v64
+ $(srcdir)/backends/platform/n64/pad_rom.sh scummvm.v64
+ rm scummvm.bak
+ mv scummvm.v64 $(bundle_name)/scummvm.v64
+
diff --git a/backends/platform/n64/pad_rom.sh b/backends/platform/n64/pad_rom.sh
index 0660f6c204..085203306f 100644
--- a/backends/platform/n64/pad_rom.sh
+++ b/backends/platform/n64/pad_rom.sh
@@ -1,13 +1,13 @@
#!/bin/bash
-TARGET="scummvm"
+TARGET=$1
BASESIZE=2097152
-CARTSIZE=`ls -l $TARGET.v64 | cut -d" " -f5`
+CARTSIZE=`ls -l $1 | cut -d" " -f5`
REMAINDER=`echo $CARTSIZE % $BASESIZE | bc`
REMAINDER=`echo $BASESIZE - $REMAINDER | bc`
CARTSIZE=`echo $CARTSIZE + $REMAINDER | bc`
-ucon64 -q --n64 --v64 --chk --padn=$CARTSIZE $TARGET.v64
+ucon64 -q --n64 --v64 --chk --padn=$CARTSIZE $1
diff --git a/configure b/configure
index e9571bbf25..6028d9ac22 100755
--- a/configure
+++ b/configure
@@ -1761,6 +1761,7 @@ if test -n "$_host"; then
_mad=yes
_tremor=yes
_zlib=yes
+ _port_mk="backends/platform/n64/n64.mk"
;;
neuros)
DEFINES="$DEFINES -DNEUROS"