diff options
author | Daniel Stenberg <daniel@haxx.se> | 2005-06-27 21:23:03 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2005-06-27 21:23:03 +0000 |
commit | a24017f4da1be50a43bd14db607205582abc7544 (patch) | |
tree | 16e3d6a2fc27e21a44238b3b647c50546e0bb5ce /apps/plugins | |
parent | 46136596433da25f3d802d72d0d1273a229c9d9f (diff) |
Moved the codec and plugin buffer sizes to the config-*.h files instead of
having it repeated in numerous files where they all had to be updated to the
same value if ever changed. This allows specific models to actually have its
own buffer sizes.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6901 a1c6a512-1295-4272-9138-f99709370657
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) |