From a56b65342f1c1021472eb2899ab46e69a666f7f8 Mon Sep 17 00:00:00 2001 From: Karl Kurbjun Date: Sun, 30 Sep 2007 16:29:21 +0000 Subject: Move some more files around and get the main build compiling git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14919 a1c6a512-1295-4272-9138-f99709370657 --- apps/plugins/plugin.lds | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) (limited to 'apps/plugins/plugin.lds') diff --git a/apps/plugins/plugin.lds b/apps/plugins/plugin.lds index 6b4310c..57afb9a 100644 --- a/apps/plugins/plugin.lds +++ b/apps/plugins/plugin.lds @@ -16,6 +16,16 @@ OUTPUT_FORMAT(elf32-sh) #define STUBOFFSET 0 #endif +#if CONFIG_CPU==S3C2440 +#include "s3c2440.h" +#define DRAMSIZE (MEMORYSIZE * 0x100000) - 0x100 - PLUGIN_BUFFER_SIZE - STUBOFFSET - CODEC_SIZE - LCD_BUFFER_SIZE - TTB_SIZE +#elif CONFIG_CPU==DM320 +#include "dm320.h" +#define DRAMSIZE (MEMORYSIZE * 0x100000) - PLUGIN_BUFFER_SIZE - STUBOFFSET - CODEC_SIZE - LCD_BUFFER_SIZE +#else +#define DRAMSIZE (MEMORYSIZE * 0x100000) - PLUGIN_BUFFER_SIZE - STUBOFFSET - CODEC_SIZE +#endif + #if defined(IRIVER_H100_SERIES) || defined(IRIVER_H300) #define ARCH_IRIVER #endif @@ -37,8 +47,6 @@ OUTPUT_FORMAT(elf32-sh) #define IRAMORIG 0x407000 #define IRAMSIZE 0x9000 #elif CONFIG_CPU == S3C2440 -#include "s3c2440.h" -#define DRAMSIZE (MEMORYSIZE * 0x100000) - 0x100 - STUBOFFSET - LCD_BUFFER_SIZE - TTB_SIZE - PLUGIN_BUFFER_SIZE - CODEC_SIZE #define DRAMORIG 0x100 + STUBOFFSET #define IRAMORIG DRAMORIG #define IRAMSIZE 4K @@ -47,15 +55,16 @@ OUTPUT_FORMAT(elf32-sh) #define DRAMORIG 0x80000000 #define IRAMORIG 0x1FFFC000 #define IRAMSIZE 0x4000 +#elif CONFIG_CPU==DM320 +#define DRAMORIG 0x00900000 + STUBOFFSET +#define IRAMORIG 0x00000100 +#define IRAMSIZE 0x4000-0x100 #else #define DRAMORIG 0x09000000 + STUBOFFSET #endif #define PLUGIN_LENGTH PLUGIN_BUFFER_SIZE -#if CONFIG_CPU != S3C2440 -#define DRAMSIZE (MEMORYSIZE * 0x100000) - PLUGIN_LENGTH - CODEC_SIZE -#endif #define CODEC_ORIGIN (DRAMORIG + (DRAMSIZE)) #define PLUGIN_ORIGIN (CODEC_ORIGIN + CODEC_SIZE) -- cgit v1.1