[U-Boot-Users] [PATCH] ppc_4xx:HCU4/5: Fix O= builds

Allow passing O=../build for the HCU4/HCU5 builds
Signed-off-by: Niklaus Giger niklaus.giger@netstal.com --- board/netstal/hcu4/Makefile | 4 ++-- board/netstal/hcu5/Makefile | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/board/netstal/hcu4/Makefile b/board/netstal/hcu4/Makefile index b13d9d4..c0d719f 100644 --- a/board/netstal/hcu4/Makefile +++ b/board/netstal/hcu4/Makefile @@ -27,11 +27,11 @@ vpath hcu_flash.c ../common vpath nm_bsp.c ../common
# NOBJS : Netstal common objects -NOBJS = ../common/fixed_sdram.o ../common/hcu_flash.o ../common/nm_bsp.o +NOBJS = fixed_sdram.o hcu_flash.o nm_bsp.o COBJS = $(BOARD).o SOBJS =
-SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c) $(NOBJS:.o=.c) +SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c) ../common/$(NOBJS:.o=.c) OBJS := $(addprefix $(obj),$(COBJS)) NOBJS := $(addprefix $(obj),$(NOBJS)) SOBJS := $(addprefix $(obj),$(SOBJS)) diff --git a/board/netstal/hcu5/Makefile b/board/netstal/hcu5/Makefile index 9f248a4..9645e45 100644 --- a/board/netstal/hcu5/Makefile +++ b/board/netstal/hcu5/Makefile @@ -26,11 +26,11 @@ vpath hcu_flash.c ../common vpath nm_bsp.c ../common
# NOBJS : Netstal common objects -NOBJS = ../common/hcu_flash.o ../common/nm_bsp.o +NOBJS = hcu_flash.o nm_bsp.o COBJS = $(BOARD).o sdram.o SOBJS = init.o
-SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c) $(NOBJS:.o=.c) +SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c) ../common/$(NOBJS:.o=.c) OBJS := $(addprefix $(obj),$(COBJS)) NOBJS := $(addprefix $(obj),$(NOBJS)) SOBJS := $(addprefix $(obj),$(SOBJS))

On Friday 18 January 2008, Niklaus Giger wrote:
Allow passing O=../build for the HCU4/HCU5 builds
This re-introduces the original problem, I tried to solve with my version:
[stefan@ubuntu u-boot-ppc4xx (for-1.3.2)]$ ./MAKEALL hcu4 Configuring for hcu4 board... ppc_4xx-gcc: hcu_flash.c: No such file or directory ppc_4xx-gcc: no input files ppc_4xx-gcc: nm_bsp.c: No such file or directory ppc_4xx-gcc: no input files
Please send a patch that fixes the problem without such a compilation error/warning.
And please always keep me on CC on mails/patches that are related to ppc4xx. For "git-send-email" you can use the "-cc" option.
Nitpick: And also please use "ppc4xx:" instead of "ppc_4xx:" in the mail subject (git commit text).
Thanks.
Best regards, Stefan
===================================================================== DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: +49-8142-66989-0 Fax: +49-8142-66989-80 Email: office@denx.de =====================================================================
participants (2)
-
Niklaus Giger
-
Stefan Roese