Commit Graph
358 Commits
Author SHA1 Message Date
Tony Puccinelli e8fc5f2070 various manual tweaks to get ds port compiling from branch again after earlier merge from trunk
svn-id: r51398
2010-07-28 00:08:32 +00:00
Tony Puccinelli 58f3e81f00 Continued abstraction of generic ELF-loader, splitting off MIPS-processor specific things into their own files and testing on the PS2
svn-id: r51345
2010-07-27 06:27:45 +00:00
Tony Puccinelli 4e530debd2 moved flushDataCache function from ds-loader.cpp to elf-loader.cpp and moved arm-relocations from ds-loader.cpp to arm-relocs.cpp; deleted ds-loader.cpp
svn-id: r51289
2010-07-26 00:41:31 +00:00
Tony Puccinelli 95f66e6fb2 changed ds makefile to use abstracted ELF-loader with ds-specific additions added to backends/plugins/ds
svn-id: r51236
2010-07-24 07:14:19 +00:00
Tony Puccinelli 155f45cec1 Added linker flags to ensure R_ARM_TARGET1 is treated as R_ARM_ABS32
svn-id: r51188
2010-07-23 01:05:26 +00:00
Tony Puccinelli 8d946ab847 Added code for relocation R_ARM_TARGET1 (untested)
svn-id: r51130
2010-07-22 01:44:45 +00:00
Tony Puccinelli da414e62b8 switched out linker script for plugin linking on ds, added in check for RELA type relocations in ARM loader and coded for REL type relocations (DS now runs many games with Dynamic Plugins enabled)
svn-id: r51083
2010-07-21 08:50:30 +00:00
Tony Puccinelli 3d3e4e6c39 coded for more relocations, added check for RELA type relocations, added comments
svn-id: r51048
2010-07-20 04:04:13 +00:00
Tony Puccinelli d5f442dc6b put in initial relocations for R_ARM_ABS32, R_ARM_THM_CALL and R_ARM_V4BX
svn-id: r50942
2010-07-16 20:44:11 +00:00
Tony Puccinelli 03b188468b various dsloader fixes, including initializing _symtab_sect to -1 in the header
svn-id: r50869
2010-07-14 03:57:36 +00:00
Tony Puccinelli 264cb839da changed Elf32_Rela to Elf32_Rel
svn-id: r50868
2010-07-14 03:55:11 +00:00
Tony Puccinelli 6e5b0def20 formatting fix for dsloader.h
svn-id: r50852
2010-07-13 20:20:29 +00:00
Tony Puccinelli 4d92cefb2f Changed loader to use Common::SeekableReadStream (compiles but doesn't run and needs polishing)
svn-id: r50843
2010-07-13 06:48:43 +00:00
Tony Puccinelli 9d06726b69 Started changing loader to use Common::SeekableReadStream
svn-id: r50839
2010-07-13 03:24:06 +00:00
Tony Puccinelli eced5b3c82 removed --gc-sections linker flags so functions/data needed after run-time linking of plugins won't be mistakenly garbage-collected during building
svn-id: r50838
2010-07-13 03:22:42 +00:00
Tony Puccinelli 7335e2fc67 fixed dependencies/paths/etc. in arm9/makefile to get engine plugins building; changed makefile to not clean before building further engines when building all engines; fixed syntax of plugin.ld
svn-id: r50751
2010-07-08 21:40:26 +00:00
Max Horn 4237f9a416 DS: Fix OPT_SPEED and OPT_SIZE usage being reversed; add ARM7 files to 'make clean'
svn-id: r50745
2010-07-07 23:24:29 +00:00
Max Horn f6afba1f19 DS: Split buildrule for scummvm.nds and scummvm.ds.gba
This parallels what I did in ds.mk

svn-id: r50744
2010-07-07 23:24:08 +00:00
Max Horn 6aa53ba3b8 DS: Remove cruft from Makefiles
svn-id: r50743
2010-07-07 23:23:44 +00:00
Max Horn c4a626931b DS: Code formatting
svn-id: r50742
2010-07-07 23:23:19 +00:00
Max Horn fe72d5dd78 DS: Fix some quirks in the NDS build system, remove some dead code
* remove (S)RAM save code (it has not been in use for quite some time)
* remove the lz compressor (was only used by ram save code)
* OPT_SPEED was set incorrectly
* dsmain.cpp was misspelled as ds_main.cpp
* remove unsed arm9 libcartreset (the copy in the arm7 directory
  still is around, though)

svn-id: r50741
2010-07-07 23:22:53 +00:00
Max Horn 61a200dcdd DS: Remove redundant lines from arm9/makefile
svn-id: r50736
2010-07-07 16:51:36 +00:00
Tony Puccinelli 6c8cae3c55 fixed some errors in makefile for plugin linking
svn-id: r50733
2010-07-07 05:15:11 +00:00
Tony Puccinelli 07faa734ce various fixes for ds dynamic plugins
svn-id: r50732
2010-07-07 01:55:11 +00:00
Max Horn fe409ea269 DS: cleanup arm9/makefile
svn-id: r50729
2010-07-06 22:29:45 +00:00
Max Horn 9b927b414a DS: Implemented (ugly, but working) support for optimization level overrides
svn-id: r50728
2010-07-06 22:14:06 +00:00
Max Horn 2343f8c60d DS: Add isScrollingWithDPad() to make code more readable
svn-id: r50727
2010-07-06 22:13:43 +00:00
Max Horn edac80ad6b DS: Fix warning about anonymous struct
svn-id: r50709
2010-07-05 20:36:43 +00:00
Max Horn 429de8f6ef DS: More formating, made more vars static
svn-id: r50708
2010-07-05 20:36:11 +00:00
Max Horn 5d25d3821a DS: Only include NDS/scummvm_ipc.h where necessary; minor tweaks
svn-id: r50702
2010-07-05 19:10:56 +00:00
Max Horn 68d620ccab DS: Fix warnings, make some vars static, cleanup
svn-id: r50701
2010-07-05 19:10:20 +00:00
Max Horn 776c3a1d51 DS: Fix MODULE_DIRS value (now dependency tracking works correctly)
svn-id: r50694
2010-07-05 16:12:47 +00:00
Max Horn 75529dc402 DS: Fix various warnings and errors in the DS FS code
* Do not modify the strings passed to std_fopen anymore
* Correct signature of std_fread
* Do not cast away constness, nor perform unnecessary casts

svn-id: r50693
2010-07-05 16:12:31 +00:00
Max Horn d2a24c0a95 DS: Remove unused portdefs.cpp
svn-id: r50691
2010-07-05 16:11:54 +00:00
Max Horn 782e43591a DS: Cleanup NDS portdefs.h a bit
* Don't #include "nds/ndstypes.h" everywhere
* Don't #define ITCM_DATA globally, it is only need in one place
* Fix STREAM_AUDIO_FROM_DISK definition (copy&paste error)
* Fix custom assert() implementation by using the do/while(0) trick
  for macros. Previously, there could be subtle errors caused by
  statements like
     if (COND) assert(...) else ...

svn-id: r50690
2010-07-05 16:11:34 +00:00
Max Horn 3d44870c8a NDS: Update GPL/copyright headers; add namespace DS closing comments
svn-id: r50689
2010-07-05 16:11:11 +00:00
Max Horn e4ec2e6403 DS: Code formatting: "char* foo" -> "char *foo"
svn-id: r50688
2010-07-05 16:10:22 +00:00
Max Horn d5c78f78c5 DS: Fix warnings, cleanup
svn-id: r50687
2010-07-05 16:09:27 +00:00
Max Horn f39f7f3ded DS: Augment 'clean' target, simplify bin->elf conversion rule
svn-id: r50686
2010-07-05 16:08:59 +00:00
Max Horn d4ad7b8a6d DS: Add missing .bin -> .elf rule
svn-id: r50676
2010-07-05 11:53:55 +00:00
Max Horn fcde7221d5 DS: Fix typo; change bin2o/bin2h to create taget dir
svn-id: r50675
2010-07-05 11:07:24 +00:00
Max Horn cb265ae09a DS: Fix setShakePos
svn-id: r50674
2010-07-05 10:08:13 +00:00
Max Horn 9a61be13e6 DS: Made some vars static, code formatting, cleanup
svn-id: r50673
2010-07-05 10:07:54 +00:00
Max Horn a9af532448 DS: Can now build binaries via our "configure/make" build system.
Conversion of the old build system is incomplete. Binaries created
using this new build system support most likely will not run!
More work is needed, but the work done so far should be enough
to get basic NDS support on our buildbot working.

svn-id: r50672
2010-07-05 10:07:33 +00:00
Max Horn db1fa71745 NDS: Enable compilation of backend specific files
Also tried to enable the conversion of .raw/.pal/.bin files,
but this does not currently work (probably something really
silly, but I don't have the time to debug this right now).

svn-id: r50671
2010-07-05 10:07:06 +00:00
Tony Puccinelli 41663da282 moved plugin linker and elf32 header file to arm9/source and modified ds makefile to use dynamic plugins
svn-id: r50617
2010-07-03 05:05:27 +00:00
Tony Puccinelli 36435eecbf moved loader to arm9/source and added it to module.mk
svn-id: r50616
2010-07-03 04:42:34 +00:00
Tony Puccinelli ffdfd3217f changed main to use DS plugin provider if dynamic modules are turned on
svn-id: r50615
2010-07-03 04:01:39 +00:00
Tony Puccinelli 13948b8118 modified default ds linker script for linking of engine plugins
svn-id: r50612
2010-07-03 03:46:21 +00:00
Tony Puccinelli a95b6e5c12 added incomplete ds loader
svn-id: r50587
2010-07-02 00:55:30 +00:00