summaryrefslogtreecommitdiff
path: root/apps/plugins
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2005-06-27 21:23:03 +0000
committerDaniel Stenberg <daniel@haxx.se>2005-06-27 21:23:03 +0000
commita24017f4da1be50a43bd14db607205582abc7544 (patch)
tree16e3d6a2fc27e21a44238b3b647c50546e0bb5ce /apps/plugins
parent46136596433da25f3d802d72d0d1273a229c9d9f (diff)
downloadrockbox-a24017f4da1be50a43bd14db607205582abc7544.tar.gz
rockbox-a24017f4da1be50a43bd14db607205582abc7544.zip
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/Makefile2
-rw-r--r--apps/plugins/plugin.lds14
-rwxr-xr-xapps/plugins/rockboy/archos.lds2
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
51all: $(BUILDDIR)/libplugin.a $(ROCKS) $(SUBDIRS) $(DEPFILE) 51all: $(BUILDDIR)/libplugin.a $(ROCKS) $(SUBDIRS) $(DEPFILE)
52 52
53ifndef SIMVER 53ifndef SIMVER
54$(OBJDIR)/%.elf: $(OBJDIR)/%.o $(LINKFILE) $(LINKCODEC) $(BUILDDIR)/libplugin.a 54$(OBJDIR)/%.elf: $(OBJDIR)/%.o $(LINKFILE) $(BUILDDIR)/libplugin.a
55 $(SILENT)(file=`basename $@`; \ 55 $(SILENT)(file=`basename $@`; \
56 echo "LD $$file"; \ 56 echo "LD $$file"; \
57 $(CC) $(GCCOPTS) -O -nostdlib -o $@ $< -L$(BUILDDIR) $(CODECLIBS) -lplugin -lgcc -T$(LINKFILE) -Wl,-Map,$(OBJDIR)/$*.map) 57 $(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)
22#define DRAMORIG 0x09000000 + STUBOFFSET 22#define DRAMORIG 0x09000000 + STUBOFFSET
23#endif 23#endif
24 24
25#ifdef CODEC 25#define PLUGIN_LENGTH PLUGIN_BUFFER_SIZE
26#define CODEC_SIZE 0x40000
27#else
28#define CODEC_SIZE 0
29#endif
30 26
31#if MEMORYSIZE >= 32 27#ifdef CODEC
32#define PLUGIN_LENGTH 0xC0000
33#else
34#define PLUGIN_LENGTH 0x8000
35#endif
36
37#if CODEC_SIZE > 0
38#define THIS_LENGTH CODEC_SIZE 28#define THIS_LENGTH CODEC_SIZE
39#else 29#else
40#define THIS_LENGTH PLUGIN_LENGTH 30#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 @@
6OUTPUT_FORMAT(elf32-sh) 6OUTPUT_FORMAT(elf32-sh)
7 7
8#define DRAMORIG 0x09000000 8#define DRAMORIG 0x09000000
9#define PLUGIN_LENGTH 0x8000 9#define PLUGIN_LENGTH PLUGIN_BUFFER_SIZE
10 10
11#define OVERLAY_LENGTH 0x68000 11#define OVERLAY_LENGTH 0x68000
12#define OVERLAY_ORIGIN (DRAMORIG + (MEMORYSIZE * 0x100000) - PLUGIN_LENGTH - OVERLAY_LENGTH) 12#define OVERLAY_ORIGIN (DRAMORIG + (MEMORYSIZE * 0x100000) - PLUGIN_LENGTH - OVERLAY_LENGTH)