public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot-Users] [PATCH] include top config.mk only after CROSS_COMPILE is defined
@ 2005-06-01 23:17 Friedrich Lobenstock
  2005-06-01 23:37 ` Friedrich Lobenstock
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Friedrich Lobenstock @ 2005-06-01 23:17 UTC (permalink / raw)
  To: u-boot

Hi Wolfgang!

During compiling I just spotted the fact that
   gccincdir := $(shell $(CC) -print-file-name=include)
in the top config.mk does execute "gcc -print-file-name=include" instead of 
"m68k-elf-gcc ..." which I would expect as i compile for m68k. I think that this 
does not make much difference as the includes should mostly be the same, but for 
the sake of completeness I want to bring the attached patch to your attention.

Description of the patch:

* CROSS_COMPILE is referenced in the top 'config.mk' file therefore
   we need to include it in the main Makefile only after CROSS_COMPILE
   is defined

This patch is against the u-boot-1.1.2.

-- 
MfG / Regards
Friedrich Lobenstock
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: u-boot-Makefile-patch
Url: http://lists.denx.de/pipermail/u-boot/attachments/20050602/3ad0feba/attachment.txt 

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

* [U-Boot-Users] [PATCH] include top config.mk only after CROSS_COMPILE is defined
  2005-06-01 23:17 [U-Boot-Users] [PATCH] include top config.mk only after CROSS_COMPILE is defined Friedrich Lobenstock
@ 2005-06-01 23:37 ` Friedrich Lobenstock
  2005-11-30 17:06 ` Cory T. Tusar
  2006-03-12  0:38 ` Wolfgang Denk
  2 siblings, 0 replies; 4+ messages in thread
From: Friedrich Lobenstock @ 2005-06-01 23:37 UTC (permalink / raw)
  To: u-boot

Friedrich Lobenstock wrote on 02.06.2005 01:17 MET:
> 
> Description of the patch:
> 
> * CROSS_COMPILE is referenced in the top 'config.mk' file therefore
>   we need to include it in the main Makefile only after CROSS_COMPILE
>   is defined
> 
> This patch is against the u-boot-1.1.2.

Just checked, patch also applies cleanly to u-boot cvs head.

-- 
MfG / Regards
Friedrich Lobenstock

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

* [U-Boot-Users] [PATCH] include top config.mk only after CROSS_COMPILE is defined
  2005-06-01 23:17 [U-Boot-Users] [PATCH] include top config.mk only after CROSS_COMPILE is defined Friedrich Lobenstock
  2005-06-01 23:37 ` Friedrich Lobenstock
@ 2005-11-30 17:06 ` Cory T. Tusar
  2006-03-12  0:38 ` Wolfgang Denk
  2 siblings, 0 replies; 4+ messages in thread
From: Cory T. Tusar @ 2005-11-30 17:06 UTC (permalink / raw)
  To: u-boot

Friedrich Lobenstock wrote:
> Hi Wolfgang!
> 
> During compiling I just spotted the fact that
>   gccincdir := $(shell $(CC) -print-file-name=include)
> in the top config.mk does execute "gcc -print-file-name=include" instead 
> of "m68k-elf-gcc ..." which I would expect as i compile for m68k. I 
> think that this does not make much difference as the includes should 
> mostly be the same, but for the sake of completeness I want to bring the 
> attached patch to your attention.

Bump & resubmit...

This particular issue broke cross-compilation for all of our ARM-based
projects following a repository sync yesterday.

The attached patch was generated against a 2005.11.29 CVS pull.

CHANGELOG:
* Patch by Cory Tusar, 30 Nov 2005:
* Original patch by Friedrich Lobenstock, 01 Jun 2005:
   CROSS_COMPILE is referenced in the top 'config.mk' file, therefore
   we need to include it in the main Makefile only after CROSS_COMPILE
   has been defined.

-Cory


-- 
Cory T. Tusar
Embedded Systems Engineer
Videon Central, Inc.
2171 Sandy Drive
State College, PA 16801
(814) 235-1111 x316
(814) 235-1118 fax

"Debugging is twice as hard as writing the code in the first place.
   Therefore, if you write the code as cleverly as possible, you are,
     by definition, not smart enough to debug it."  --Brian W. Kernighan



-------------- next part --------------
A non-text attachment was scrubbed...
Name: config.mk_depends_on_CROSS_COMPILE.patch
Type: text/x-patch
Size: 694 bytes
Desc: not available
Url : http://lists.denx.de/pipermail/u-boot/attachments/20051130/1c45ea6b/attachment.bin 

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

* [U-Boot-Users] [PATCH] include top config.mk only after CROSS_COMPILE is defined
  2005-06-01 23:17 [U-Boot-Users] [PATCH] include top config.mk only after CROSS_COMPILE is defined Friedrich Lobenstock
  2005-06-01 23:37 ` Friedrich Lobenstock
  2005-11-30 17:06 ` Cory T. Tusar
@ 2006-03-12  0:38 ` Wolfgang Denk
  2 siblings, 0 replies; 4+ messages in thread
From: Wolfgang Denk @ 2006-03-12  0:38 UTC (permalink / raw)
  To: u-boot

In message <429E4223.5090009@scottygroup.com> you wrote:
> 
> * CROSS_COMPILE is referenced in the top 'config.mk' file therefore
>    we need to include it in the main Makefile only after CROSS_COMPILE
>    is defined

Applied, thanks.

Best regards,

Wolfgang Denk

-- 
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Dear Lord: I just want *one* one-armed manager so  I  never  have  to
hear "On the other hand", again.

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

end of thread, other threads:[~2006-03-12  0:38 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-06-01 23:17 [U-Boot-Users] [PATCH] include top config.mk only after CROSS_COMPILE is defined Friedrich Lobenstock
2005-06-01 23:37 ` Friedrich Lobenstock
2005-11-30 17:06 ` Cory T. Tusar
2006-03-12  0:38 ` Wolfgang Denk

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