
2 Jun
2005
2 Jun
'05
1:17 a.m.
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
--- u-boot-1.1.2-org/Makefile 2004-12-19 10:58:11.000000000 +0100
+++ u-boot-1.1.2/Makefile 2005-06-01 18:35:44.000000000 +0200
@@ -46,9 +46,6 @@
# load ARCH, BOARD, and CPU configuration
include include/config.mk
export ARCH CPU BOARD VENDOR SOC
-# load other configuration
-include $(TOPDIR)/config.mk
-
ifndef CROSS_COMPILE
ifeq ($(HOSTARCH),ppc)
CROSS_COMPILE =
@@ -86,6 +83,10 @@
export CROSS_COMPILE
+# load other configuration
+include $(TOPDIR)/config.mk
+
+
#########################################################################
# U-Boot objects....order is important (i.e. start must be first)