m68knommu: fix broken boot logo inclusion
authorGreg Ungerer <gerg@uclinux.org>
Thu, 22 Dec 2011 06:19:59 +0000 (16:19 +1000)
committerGreg Ungerer <gerg@uclinux.org>
Fri, 30 Dec 2011 00:17:34 +0000 (10:17 +1000)
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>
arch/m68k/platform/68328/Makefile
arch/m68k/platform/68328/bootlogo.h
arch/m68k/platform/68328/bootlogo.pl [deleted file]
arch/m68k/platform/68328/config.c
arch/m68k/platform/68328/head-pilot.S
arch/m68k/platform/68328/head-rom.S

index e4dfd8fde068b9ed9738590d13db02ddb1bdc0f0..ee61bf84d4a0a32fbf9bbbe80328c309d4fe22ef 100644 (file)
@@ -14,12 +14,8 @@ obj-$(CONFIG_M68328) += config.o
 obj-$(CONFIG_ROM)      += romvec.o
 
 extra-y                        := head.o
-extra-$(CONFIG_M68328) += bootlogo.rh head.o
-
-$(obj)/bootlogo.rh: $(src)/bootlogo.h
-       perl $(src)/bootlogo.pl < $(src)/bootlogo.h > $(obj)/bootlogo.rh
 
 $(obj)/head.o: $(obj)/$(head-y)
        ln -sf $(head-y) $(obj)/head.o
 
-clean-files := $(obj)/bootlogo.rh $(obj)/head.o $(head-y)
+clean-files := $(obj)/head.o $(head-y)
index 67bc2c17386edfb609aa5bf0970ad1685e5f7139..b896c933fafce4182b3af263690587f72aba2336 100644 (file)
@@ -1,6 +1,6 @@
 #define bootlogo_width 160
 #define bootlogo_height 160
-static unsigned char bootlogo_bits[] = {
+unsigned char __attribute__ ((aligned(16))) bootlogo_bits[] = {
   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x55, 0x01, 0x00, 0x00, 0x00,
   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
   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 (file)
index b04ae3f..0000000
+++ /dev/null
@@ -1,10 +0,0 @@
-
-$_ = join("", <>);
-
-s/(0x[0-9a-f]{2})/sprintf("0x%.2x",ord(pack("b8",unpack("B8",chr(hex($1))))))/gei;
-
-s/^ /  .byte /gm;
-s/[,};]+$//gm;
-s/^static.*//gm;
-
-print $_;
index a7bd21deb00fd2366358185875c97277e57fe8d3..d70bf2623db11316f560e159572a1bb4597e4fb6 100644 (file)
@@ -20,6 +20,9 @@
 #include <asm/system.h>
 #include <asm/machdep.h>
 #include <asm/MC68328.h>
+#if defined(CONFIG_PILOT) || defined(CONFIG_INIT_LCD)
+#include "bootlogo.h"
+#endif
 
 /***************************************************************************/
 
index aecff532b3432cfa731e69cc525522f42e147bfc..255c28d1e755809d86f02bbb8088eaf885806813 100644 (file)
 .global _ramstart
 .global _ramend
 
-.global penguin_bits
-
-#ifdef CONFIG_PILOT
-
-#define IMR 0xFFFFF304
-
-       .data
-       .align 16
-
-penguin_bits:  
-#include "bootlogo.rh"
-
-#endif
+.global bootlogo_bits
 
 /*****************************************************************************/
 
@@ -196,7 +184,7 @@ L3:
        DBG_PUTC('H')
 
 #ifdef CONFIG_PILOT
-       movel   #penguin_bits, 0xFFFFFA00
+       movel   #bootlogo_bits, 0xFFFFFA00
        moveb   #10, 0xFFFFFA05
        movew   #160, 0xFFFFFA08
        movew   #160, 0xFFFFFA0A
index 6ec77d3ea0b384d981cc7012b90ee3fe6fb71a0a..a5ff96d0295f069e28ded27ace22a5d1296e6cff 100644 (file)
@@ -8,7 +8,7 @@
        .global _ramend
 
 #ifdef CONFIG_INIT_LCD
-       .global splash_bits
+       .global bootlogo_bits
 #endif
 
        .data
@@ -29,16 +29,11 @@ _ramend:
 
 #define        RAMEND  (CONFIG_RAMBASE + CONFIG_RAMSIZE)
 
-#ifdef CONFIG_INIT_LCD
-splash_bits:
-#include "bootlogo.rh"
-#endif
-       
        .text
 _start:
 _stext:        movew   #0x2700,%sr
 #ifdef CONFIG_INIT_LCD
-       movel   #splash_bits, 0xfffffA00 /* LSSA */
+       movel   #bootlogo_bits, 0xfffffA00 /* LSSA */
        moveb   #0x28,   0xfffffA05     /* LVPW */
        movew   #0x280,  0xFFFFFa08     /* LXMAX */
        movew   #0x1df,  0xFFFFFa0a     /* LYMAX */
This page took 0.045187 seconds and 5 git commands to generate.