diff options
author | Greg Ungerer <gerg@uclinux.org> | 2011-12-22 01:19:59 -0500 |
---|---|---|
committer | Greg Ungerer <gerg@uclinux.org> | 2011-12-29 19:17:34 -0500 |
commit | c0e0c89c089f4bd66dbbd1a44da90abe74fe3f02 (patch) | |
tree | 60bdd9106863a003f30b33a34ee74e8567f342ba | |
parent | 40c1b9cfeedf79b909c961e0e00a13497e80bc82 (diff) |
m68knommu: fix broken boot logo inclusion
Compiling for the m68knommu/68328 Palm/Pilot target you get:
AS arch/m68k/platform/68328/head-pilot.o
arch/m68k/platform/68328/head-pilot.S:37:23: fatal error: bootlogo.rh: No such file or directory
The build for this target used to do a conversion on a C coded boot logo
and include this in the head assembler code. This got broken by changes to
the local Makefile.
Clean all this up by just including the C coded boot logo struct in the
C code. With the appropriate alignment attribute there is no difference
to the way it can be used.
Signed-off-by: Greg Ungerer <gerg@uclinux.org>
-rw-r--r-- | arch/m68k/platform/68328/Makefile | 6 | ||||
-rw-r--r-- | arch/m68k/platform/68328/bootlogo.h | 2 | ||||
-rw-r--r-- | arch/m68k/platform/68328/bootlogo.pl | 10 | ||||
-rw-r--r-- | arch/m68k/platform/68328/config.c | 3 | ||||
-rw-r--r-- | arch/m68k/platform/68328/head-pilot.S | 16 | ||||
-rw-r--r-- | arch/m68k/platform/68328/head-rom.S | 9 |
6 files changed, 9 insertions, 37 deletions
diff --git a/arch/m68k/platform/68328/Makefile b/arch/m68k/platform/68328/Makefile index e4dfd8fde06..ee61bf84d4a 100644 --- a/arch/m68k/platform/68328/Makefile +++ b/arch/m68k/platform/68328/Makefile | |||
@@ -14,12 +14,8 @@ obj-$(CONFIG_M68328) += config.o | |||
14 | obj-$(CONFIG_ROM) += romvec.o | 14 | obj-$(CONFIG_ROM) += romvec.o |
15 | 15 | ||
16 | extra-y := head.o | 16 | extra-y := head.o |
17 | extra-$(CONFIG_M68328) += bootlogo.rh head.o | ||
18 | |||
19 | $(obj)/bootlogo.rh: $(src)/bootlogo.h | ||
20 | perl $(src)/bootlogo.pl < $(src)/bootlogo.h > $(obj)/bootlogo.rh | ||
21 | 17 | ||
22 | $(obj)/head.o: $(obj)/$(head-y) | 18 | $(obj)/head.o: $(obj)/$(head-y) |
23 | ln -sf $(head-y) $(obj)/head.o | 19 | ln -sf $(head-y) $(obj)/head.o |
24 | 20 | ||
25 | clean-files := $(obj)/bootlogo.rh $(obj)/head.o $(head-y) | 21 | clean-files := $(obj)/head.o $(head-y) |
diff --git a/arch/m68k/platform/68328/bootlogo.h b/arch/m68k/platform/68328/bootlogo.h index 67bc2c17386..b896c933faf 100644 --- a/arch/m68k/platform/68328/bootlogo.h +++ b/arch/m68k/platform/68328/bootlogo.h | |||
@@ -1,6 +1,6 @@ | |||
1 | #define bootlogo_width 160 | 1 | #define bootlogo_width 160 |
2 | #define bootlogo_height 160 | 2 | #define bootlogo_height 160 |
3 | static unsigned char bootlogo_bits[] = { | 3 | unsigned char __attribute__ ((aligned(16))) bootlogo_bits[] = { |
4 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x55, 0x01, 0x00, 0x00, 0x00, | 4 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x55, 0x01, 0x00, 0x00, 0x00, |
5 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | 5 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, |
6 | 0x00, 0x00, 0x40, 0x55, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | 6 | 0x00, 0x00, 0x40, 0x55, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, |
diff --git a/arch/m68k/platform/68328/bootlogo.pl b/arch/m68k/platform/68328/bootlogo.pl deleted file mode 100644 index b04ae3f50da..00000000000 --- a/arch/m68k/platform/68328/bootlogo.pl +++ /dev/null | |||
@@ -1,10 +0,0 @@ | |||
1 | |||
2 | $_ = join("", <>); | ||
3 | |||
4 | s/(0x[0-9a-f]{2})/sprintf("0x%.2x",ord(pack("b8",unpack("B8",chr(hex($1))))))/gei; | ||
5 | |||
6 | s/^ / .byte /gm; | ||
7 | s/[,};]+$//gm; | ||
8 | s/^static.*//gm; | ||
9 | |||
10 | print $_; | ||
diff --git a/arch/m68k/platform/68328/config.c b/arch/m68k/platform/68328/config.c index a7bd21deb00..d70bf2623db 100644 --- a/arch/m68k/platform/68328/config.c +++ b/arch/m68k/platform/68328/config.c | |||
@@ -20,6 +20,9 @@ | |||
20 | #include <asm/system.h> | 20 | #include <asm/system.h> |
21 | #include <asm/machdep.h> | 21 | #include <asm/machdep.h> |
22 | #include <asm/MC68328.h> | 22 | #include <asm/MC68328.h> |
23 | #if defined(CONFIG_PILOT) || defined(CONFIG_INIT_LCD) | ||
24 | #include "bootlogo.h" | ||
25 | #endif | ||
23 | 26 | ||
24 | /***************************************************************************/ | 27 | /***************************************************************************/ |
25 | 28 | ||
diff --git a/arch/m68k/platform/68328/head-pilot.S b/arch/m68k/platform/68328/head-pilot.S index aecff532b34..255c28d1e75 100644 --- a/arch/m68k/platform/68328/head-pilot.S +++ b/arch/m68k/platform/68328/head-pilot.S | |||
@@ -24,19 +24,7 @@ | |||
24 | .global _ramstart | 24 | .global _ramstart |
25 | .global _ramend | 25 | .global _ramend |
26 | 26 | ||
27 | .global penguin_bits | 27 | .global bootlogo_bits |
28 | |||
29 | #ifdef CONFIG_PILOT | ||
30 | |||
31 | #define IMR 0xFFFFF304 | ||
32 | |||
33 | .data | ||
34 | .align 16 | ||
35 | |||
36 | penguin_bits: | ||
37 | #include "bootlogo.rh" | ||
38 | |||
39 | #endif | ||
40 | 28 | ||
41 | /*****************************************************************************/ | 29 | /*****************************************************************************/ |
42 | 30 | ||
@@ -196,7 +184,7 @@ L3: | |||
196 | DBG_PUTC('H') | 184 | DBG_PUTC('H') |
197 | 185 | ||
198 | #ifdef CONFIG_PILOT | 186 | #ifdef CONFIG_PILOT |
199 | movel #penguin_bits, 0xFFFFFA00 | 187 | movel #bootlogo_bits, 0xFFFFFA00 |
200 | moveb #10, 0xFFFFFA05 | 188 | moveb #10, 0xFFFFFA05 |
201 | movew #160, 0xFFFFFA08 | 189 | movew #160, 0xFFFFFA08 |
202 | movew #160, 0xFFFFFA0A | 190 | movew #160, 0xFFFFFA0A |
diff --git a/arch/m68k/platform/68328/head-rom.S b/arch/m68k/platform/68328/head-rom.S index 6ec77d3ea0b..a5ff96d0295 100644 --- a/arch/m68k/platform/68328/head-rom.S +++ b/arch/m68k/platform/68328/head-rom.S | |||
@@ -8,7 +8,7 @@ | |||
8 | .global _ramend | 8 | .global _ramend |
9 | 9 | ||
10 | #ifdef CONFIG_INIT_LCD | 10 | #ifdef CONFIG_INIT_LCD |
11 | .global splash_bits | 11 | .global bootlogo_bits |
12 | #endif | 12 | #endif |
13 | 13 | ||
14 | .data | 14 | .data |
@@ -29,16 +29,11 @@ _ramend: | |||
29 | 29 | ||
30 | #define RAMEND (CONFIG_RAMBASE + CONFIG_RAMSIZE) | 30 | #define RAMEND (CONFIG_RAMBASE + CONFIG_RAMSIZE) |
31 | 31 | ||
32 | #ifdef CONFIG_INIT_LCD | ||
33 | splash_bits: | ||
34 | #include "bootlogo.rh" | ||
35 | #endif | ||
36 | |||
37 | .text | 32 | .text |
38 | _start: | 33 | _start: |
39 | _stext: movew #0x2700,%sr | 34 | _stext: movew #0x2700,%sr |
40 | #ifdef CONFIG_INIT_LCD | 35 | #ifdef CONFIG_INIT_LCD |
41 | movel #splash_bits, 0xfffffA00 /* LSSA */ | 36 | movel #bootlogo_bits, 0xfffffA00 /* LSSA */ |
42 | moveb #0x28, 0xfffffA05 /* LVPW */ | 37 | moveb #0x28, 0xfffffA05 /* LVPW */ |
43 | movew #0x280, 0xFFFFFa08 /* LXMAX */ | 38 | movew #0x280, 0xFFFFFa08 /* LXMAX */ |
44 | movew #0x1df, 0xFFFFFa0a /* LYMAX */ | 39 | movew #0x1df, 0xFFFFFa0a /* LYMAX */ |