Skip to contentSkip to conversation

ppc_4xx:HCU4/5: Fix O= builds

PATCH New Niklaus Giger 2 participants 2 messages Jan 18, 2008 – Jan 29, 2008

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ppc_4xx:HCU4/5: Fix O= builds

Allow passing O=../build for the HCU4/HCU5 builds

---
 board/netstal/hcu4/Makefile |    4 ++--
 board/netstal/hcu5/Makefile |    4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)
board/netstal/hcu4/Makefile +2 -2
index b13d9d4..c0d719f 100644
@@ -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))
board/netstal/hcu5/Makefile +2 -2
index 9f248a4..9645e45 100644
@@ -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))
Signature · 1 line
1.5.2.5
#1 lore raw

PATCH 1/1 ppc_4xx:HCU4/5: Fix O= builds

Quoted 1 line · Niklaus Giger

Allow passing O=../build for the HCU4/HCU5 builds

This re-introduces the original problem, I tried to solve with my version:

[stefan at 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 at denx.de
=====================================================================