1
0
Fork 0
forked from len0rd/rockbox

iPod: Implement plugin.lds and enable codec building for all SWCODEC platforms, not just H100 series

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7829 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Dave Chapman 2005-11-12 16:01:15 +00:00
parent 0cdd21e9dc
commit afbd4386ff
2 changed files with 18 additions and 4 deletions

View file

@ -1,4 +1,4 @@
#ifdef IRIVER_H100_SERIES #if CONFIG_CODEC == SWCODEC
vorbis.c vorbis.c
mpa.c mpa.c
flac.c flac.c

View file

@ -4,6 +4,8 @@
#ifdef CPU_COLDFIRE #ifdef CPU_COLDFIRE
OUTPUT_FORMAT(elf32-m68k) OUTPUT_FORMAT(elf32-m68k)
#elif CONFIG_CPU==PP5020
OUTPUT_FORMAT(elf32-littlearm)
#else #else
OUTPUT_FORMAT(elf32-sh) OUTPUT_FORMAT(elf32-sh)
#endif #endif
@ -18,10 +20,18 @@ OUTPUT_FORMAT(elf32-sh)
#define ARCH_IRIVER #define ARCH_IRIVER
#endif #endif
#if CONFIG_CPU==PP5020
#define ARCH_IPOD
#endif
#ifdef ARCH_IRIVER #ifdef ARCH_IRIVER
#define DRAMORIG 0x31000000 #define DRAMORIG 0x31000000
#define IRAMORIG 0x1000c000 #define IRAMORIG 0x1000c000
#define IRAMSIZE 0xc000 #define IRAMSIZE 0xc000
#elif defined(ARCH_IPOD)
#define DRAMORIG 0x10000000
#define IRAMORIG 0x4000c000
#define IRAMSIZE 0xc000
#else #else
#define DRAMORIG 0x09000000 + STUBOFFSET #define DRAMORIG 0x09000000 + STUBOFFSET
#endif #endif
@ -43,7 +53,7 @@ OUTPUT_FORMAT(elf32-sh)
MEMORY MEMORY
{ {
PLUGIN_RAM : ORIGIN = THIS_ORIGIN, LENGTH = THIS_LENGTH PLUGIN_RAM : ORIGIN = THIS_ORIGIN, LENGTH = THIS_LENGTH
#ifdef ARCH_IRIVER #if defined(ARCH_IRIVER) || defined(ARCH_IPOD)
PLUGIN_IRAM : ORIGIN = IRAMORIG, LENGTH = IRAMSIZE PLUGIN_IRAM : ORIGIN = IRAMORIG, LENGTH = IRAMSIZE
#endif #endif
} }
@ -53,6 +63,10 @@ SECTIONS
.text : { .text : {
KEEP(*(.entry)) KEEP(*(.entry))
*(.text*) *(.text*)
#if CONFIG_CPU==PP5020
*(.glue_7)
*(.glue_7t)
#endif
} > PLUGIN_RAM } > PLUGIN_RAM
.data : { .data : {
@ -70,12 +84,12 @@ SECTIONS
.rodata : { .rodata : {
*(.rodata*) *(.rodata*)
. = ALIGN(0x4); . = ALIGN(0x4);
#ifdef ARCH_IRIVER #if defined(ARCH_IRIVER) || defined(ARCH_IPOD)
iramcopy = .; iramcopy = .;
#endif #endif
} > PLUGIN_RAM } > PLUGIN_RAM
#ifdef ARCH_IRIVER #if defined(ARCH_IRIVER) || defined(ARCH_IPOD)
.iram IRAMORIG : AT ( iramcopy) .iram IRAMORIG : AT ( iramcopy)
{ {
iramstart = .; iramstart = .;