summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2006-08-03 08:41:44 +0000
committerDaniel Stenberg <daniel@haxx.se>2006-08-03 08:41:44 +0000
commit668a664947ce2c8fb51e27abb13cc69f3fd2d52b (patch)
tree65a0f22a2f693118c3d99ae8befd8ef0a575e5e7
parent4d3964182cf40b230c1052b6430812771504449a (diff)
nicer check for PP and now using crt0.o for ARMs that aren't ipod archs
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10431 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--firmware/boot.lds9
1 files changed, 7 insertions, 2 deletions
diff --git a/firmware/boot.lds b/firmware/boot.lds
index 5694d83490..78dd40bf92 100644
--- a/firmware/boot.lds
+++ b/firmware/boot.lds
@@ -7,6 +7,11 @@ INPUT(crt0.o)
#elif defined (CPU_ARM)
OUTPUT_FORMAT(elf32-littlearm)
OUTPUT_ARCH(arm)
+#ifndef IPOD_ARCH
+/* the ipods can't have the crt0.o mentioned here, but the others can't do
+ without it! */
+INPUT(crt0.o)
+#endif
#else
OUTPUT_FORMAT(elf32-sh)
INPUT(crt0.o)
@@ -64,7 +69,7 @@ INPUT(crt0.o)
#define FLASHSIZE 256K - ROM_START
#endif
-#if (CONFIG_CPU!=PP5002) && (CONFIG_CPU!=PP5020) && (CONFIG_CPU!=PP5024)
+#ifndef CPU_PP
MEMORY
{
DRAM : ORIGIN = DRAMORIG, LENGTH = DRAMSIZE
@@ -74,7 +79,7 @@ MEMORY
#endif
SECTIONS
-#if (CONFIG_CPU==PP5002) || (CONFIG_CPU==PP5020) || (CONFIG_CPU==PP5024)
+#ifdef CPU_PP
{
. = IRAMORIG;