public inbox for linux-m68k@lists.linux-m68k.org
 help / color / mirror / Atom feed
* [PATCH] m68knommu: add missing make rule for Palm/Pilot bitmap boot logo
@ 2011-12-22  7:03 gerg
  2011-12-22  7:18 ` Geert Uytterhoeven
  0 siblings, 1 reply; 4+ messages in thread
From: gerg @ 2011-12-22  7:03 UTC (permalink / raw)
  To: linux-m68k, uclinux-dev; +Cc: Greg Ungerer

From: Greg Ungerer <gerg@uclinux.org>

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 Makefile contains rules to make the bootlogo.rh file from the C source
bootlogo.h. But it is missing a dependency that compiling head-pilot.S needs
bootlogo.rh.

Signed-off-by: Greg Ungerer <gerg@uclinux.org>
---
 arch/m68k/platform/68328/Makefile |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/arch/m68k/platform/68328/Makefile b/arch/m68k/platform/68328/Makefile
index e4dfd8f..704e36d 100644
--- a/arch/m68k/platform/68328/Makefile
+++ b/arch/m68k/platform/68328/Makefile
@@ -16,6 +16,9 @@ obj-$(CONFIG_ROM)	+= romvec.o
 extra-y			:= head.o
 extra-$(CONFIG_M68328)	+= bootlogo.rh head.o
 
+$(obj)/head-pilot.o: $(obj)/bootlogo.rh
+$(obj)/head-rom.o: $(obj)/bootlogo.rh
+
 $(obj)/bootlogo.rh: $(src)/bootlogo.h
 	perl $(src)/bootlogo.pl < $(src)/bootlogo.h > $(obj)/bootlogo.rh
 
-- 
1.7.0.4

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH] m68knommu: add missing make rule for Palm/Pilot bitmap boot logo
  2011-12-22  7:03 [PATCH] m68knommu: add missing make rule for Palm/Pilot bitmap boot logo gerg
@ 2011-12-22  7:18 ` Geert Uytterhoeven
  2011-12-22  7:27   ` Greg Ungerer
  2011-12-30  0:30   ` Greg Ungerer
  0 siblings, 2 replies; 4+ messages in thread
From: Geert Uytterhoeven @ 2011-12-22  7:18 UTC (permalink / raw)
  To: gerg; +Cc: linux-m68k, uclinux-dev, Greg Ungerer

On Thu, Dec 22, 2011 at 08:03,  <gerg@snapgear.com> wrote:
> From: Greg Ungerer <gerg@uclinux.org>
>
> 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 Makefile contains rules to make the bootlogo.rh file from the C source
> bootlogo.h. But it is missing a dependency that compiling head-pilot.S needs
> bootlogo.rh.
>
> Signed-off-by: Greg Ungerer <gerg@uclinux.org>
> ---
>  arch/m68k/platform/68328/Makefile |    3 +++
>  1 files changed, 3 insertions(+), 0 deletions(-)
>
> diff --git a/arch/m68k/platform/68328/Makefile b/arch/m68k/platform/68328/Makefile
> index e4dfd8f..704e36d 100644
> --- a/arch/m68k/platform/68328/Makefile
> +++ b/arch/m68k/platform/68328/Makefile
> @@ -16,6 +16,9 @@ obj-$(CONFIG_ROM)     += romvec.o
>  extra-y                        := head.o
>  extra-$(CONFIG_M68328) += bootlogo.rh head.o
>
> +$(obj)/head-pilot.o: $(obj)/bootlogo.rh
> +$(obj)/head-rom.o: $(obj)/bootlogo.rh
> +
>  $(obj)/bootlogo.rh: $(src)/bootlogo.h
>        perl $(src)/bootlogo.pl < $(src)/bootlogo.h > $(obj)/bootlogo.rh

Nothing serious, you just made me wondering:
 1. Any chance bootlogo.h can be generated from a more edit-friendly format,
    cfr. drivers/video/logo/?
 2. Why do you include the *.rh file from an assembler source file, instead of
    including the *.h file from a C source file?

Gr{oetje,eeting}s,

                        Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
                                -- Linus Torvalds

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] m68knommu: add missing make rule for Palm/Pilot bitmap boot logo
  2011-12-22  7:18 ` Geert Uytterhoeven
@ 2011-12-22  7:27   ` Greg Ungerer
  2011-12-30  0:30   ` Greg Ungerer
  1 sibling, 0 replies; 4+ messages in thread
From: Greg Ungerer @ 2011-12-22  7:27 UTC (permalink / raw)
  To: Geert Uytterhoeven; +Cc: linux-m68k, uclinux-dev, Greg Ungerer

Hi Geert,

On 22/12/11 17:18, Geert Uytterhoeven wrote:
> On Thu, Dec 22, 2011 at 08:03,<gerg@snapgear.com>  wrote:
>> From: Greg Ungerer<gerg@uclinux.org>
>>
>> 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 Makefile contains rules to make the bootlogo.rh file from the C source
>> bootlogo.h. But it is missing a dependency that compiling head-pilot.S needs
>> bootlogo.rh.
>>
>> Signed-off-by: Greg Ungerer<gerg@uclinux.org>
>> ---
>> áarch/m68k/platform/68328/Makefile | á á3 +++
>> á1 files changed, 3 insertions(+), 0 deletions(-)
>>
>> diff --git a/arch/m68k/platform/68328/Makefile b/arch/m68k/platform/68328/Makefile
>> index e4dfd8f..704e36d 100644
>> --- a/arch/m68k/platform/68328/Makefile
>> +++ b/arch/m68k/platform/68328/Makefile
>> @@ -16,6 +16,9 @@ obj-$(CONFIG_ROM) á á += romvec.o
>> áextra-y á á á á á á á á á á á á:= head.o
>> áextra-$(CONFIG_M68328) += bootlogo.rh head.o
>>
>> +$(obj)/head-pilot.o: $(obj)/bootlogo.rh
>> +$(obj)/head-rom.o: $(obj)/bootlogo.rh
>> +
>> á$(obj)/bootlogo.rh: $(src)/bootlogo.h
>> á á á áperl $(src)/bootlogo.pl<  $(src)/bootlogo.h>  $(obj)/bootlogo.rh
>
> Nothing serious, you just made me wondering:
>   1. Any chance bootlogo.h can be generated from a more edit-friendly format,
>      cfr. drivers/video/logo/?

Probably. This is the way the code came to me originally, and I haven't
looked at it in quite a while.


>   2. Why do you include the *.rh file from an assembler source file, instead of
>      including the *.h file from a C source file?

Good question. I am not sure why it was done this way. I'll see if we
can do this a little more cleanly.

Regards
Greg


------------------------------------------------------------------------
Greg Ungerer  --  Principal Engineer        EMAIL:     gerg@snapgear.com
SnapGear Group, McAfee                      PHONE:       +61 7 3435 2888
8 Gardner Close                             FAX:         +61 7 3217 5323
Milton, QLD, 4064, Australia                WEB: http://www.SnapGear.com

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] m68knommu: add missing make rule for Palm/Pilot bitmap boot logo
  2011-12-22  7:18 ` Geert Uytterhoeven
  2011-12-22  7:27   ` Greg Ungerer
@ 2011-12-30  0:30   ` Greg Ungerer
  1 sibling, 0 replies; 4+ messages in thread
From: Greg Ungerer @ 2011-12-30  0:30 UTC (permalink / raw)
  To: Geert Uytterhoeven; +Cc: linux-m68k, uclinux-dev, Greg Ungerer

Hi Geert,

On 22/12/11 17:18, Geert Uytterhoeven wrote:
> On Thu, Dec 22, 2011 at 08:03,<gerg@snapgear.com>  wrote:
>> From: Greg Ungerer<gerg@uclinux.org>
>>
>> Compiling for the m68knommu/68328 Palm/Pilot target you get:
>>
>> 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 Makefile contains rules to make the bootlogo.rh file from the C source
>> bootlogo.h. But it is missing a dependency that compiling head-pilot.S needs
>> bootlogo.rh.
>>
>> Signed-off-by: Greg Ungerer<gerg@uclinux.org>
>> ---
>> arch/m68k/platform/68328/Makefile | á á3 +++
>> 1 files changed, 3 insertions(+), 0 deletions(-)
>>
>> diff --git a/arch/m68k/platform/68328/Makefile b/arch/m68k/platform/68328/Makefile
>> index e4dfd8f..704e36d 100644
>> --- a/arch/m68k/platform/68328/Makefile
>> +++ b/arch/m68k/platform/68328/Makefile
>> @@ -16,6 +16,9 @@ obj-$(CONFIG_ROM) += romvec.o
>>  extra-y		   := head.o
>>  extra-$(CONFIG_M68328) += bootlogo.rh head.o
>>
>> +$(obj)/head-pilot.o: $(obj)/bootlogo.rh
>> +$(obj)/head-rom.o: $(obj)/bootlogo.rh
>> +
>>  $(obj)/bootlogo.rh: $(src)/bootlogo.h
>>  	perl $(src)/bootlogo.pl<  $(src)/bootlogo.h>  $(obj)/bootlogo.rh
>
> Nothing serious, you just made me wondering:
>   1. Any chance bootlogo.h can be generated from a more edit-friendly format,
>      cfr. drivers/video/logo/?

Looking at this I think you are right. This could be in the same way
with all the others in drivers/video/logo.


>   2. Why do you include the *.rh file from an assembler source file, instead of
>      including the *.h file from a C source file?

Although the fix involves more change to do it in C code, at least
it improves this code a little :-)  So I have a different patch to fix
this that does it this way. Sending patch after this.

Regards
Greg


------------------------------------------------------------------------
Greg Ungerer  --  Principal Engineer        EMAIL:     gerg@snapgear.com
SnapGear Group, McAfee                      PHONE:       +61 7 3435 2888
8 Gardner Close                             FAX:         +61 7 3217 5323
Milton, QLD, 4064, Australia                WEB: http://www.SnapGear.com

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2011-12-30  0:31 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-12-22  7:03 [PATCH] m68knommu: add missing make rule for Palm/Pilot bitmap boot logo gerg
2011-12-22  7:18 ` Geert Uytterhoeven
2011-12-22  7:27   ` Greg Ungerer
2011-12-30  0:30   ` Greg Ungerer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox