diff options
Diffstat (limited to 'apps/plugins')
-rw-r--r-- | apps/plugins/Makefile | 2 | ||||
-rw-r--r-- | apps/plugins/plugin.lds | 14 | ||||
-rwxr-xr-x | apps/plugins/rockboy/archos.lds | 2 |
3 files changed, 4 insertions, 14 deletions
diff --git a/apps/plugins/Makefile b/apps/plugins/Makefile index fbae027ca3..a59e33f5c6 100644 --- a/apps/plugins/Makefile +++ b/apps/plugins/Makefile @@ -51,7 +51,7 @@ endif all: $(BUILDDIR)/libplugin.a $(ROCKS) $(SUBDIRS) $(DEPFILE) ifndef SIMVER -$(OBJDIR)/%.elf: $(OBJDIR)/%.o $(LINKFILE) $(LINKCODEC) $(BUILDDIR)/libplugin.a +$(OBJDIR)/%.elf: $(OBJDIR)/%.o $(LINKFILE) $(BUILDDIR)/libplugin.a $(SILENT)(file=`basename $@`; \ echo "LD $$file"; \ $(CC) $(GCCOPTS) -O -nostdlib -o $@ $< -L$(BUILDDIR) $(CODECLIBS) -lplugin -lgcc -T$(LINKFILE) -Wl,-Map,$(OBJDIR)/$*.map) diff --git a/apps/plugins/plugin.lds b/apps/plugins/plugin.lds index f1b4d300d7..3e624d6a0b 100644 --- a/apps/plugins/plugin.lds +++ b/apps/plugins/plugin.lds @@ -22,19 +22,9 @@ OUTPUT_FORMAT(elf32-sh) #define DRAMORIG 0x09000000 + STUBOFFSET #endif -#ifdef CODEC -#define CODEC_SIZE 0x40000 -#else -#define CODEC_SIZE 0 -#endif +#define PLUGIN_LENGTH PLUGIN_BUFFER_SIZE -#if MEMORYSIZE >= 32 -#define PLUGIN_LENGTH 0xC0000 -#else -#define PLUGIN_LENGTH 0x8000 -#endif - -#if CODEC_SIZE > 0 +#ifdef CODEC #define THIS_LENGTH CODEC_SIZE #else #define THIS_LENGTH PLUGIN_LENGTH diff --git a/apps/plugins/rockboy/archos.lds b/apps/plugins/rockboy/archos.lds index 23d03c6297..9412c4365a 100755 --- a/apps/plugins/rockboy/archos.lds +++ b/apps/plugins/rockboy/archos.lds @@ -6,7 +6,7 @@ OUTPUT_FORMAT(elf32-sh) #define DRAMORIG 0x09000000 -#define PLUGIN_LENGTH 0x8000 +#define PLUGIN_LENGTH PLUGIN_BUFFER_SIZE #define OVERLAY_LENGTH 0x68000 #define OVERLAY_ORIGIN (DRAMORIG + (MEMORYSIZE * 0x100000) - PLUGIN_LENGTH - OVERLAY_LENGTH) |