mpc83xx: fix alternate build dir location problem with pq-mds-pib.o
PATCH 1/1 mpc83xx: fix alternate build dir location problem with pq-mds-pib.o
fixes this build error:
FATAL: can't create /work/wd/tmp/u-boot-ppc/board/freescale/mpc8360emds/../common/pq-mds-pib.o: No such file or directory
Signed-off-by Kim Phillips <[email protected]>
--- board/freescale/mpc832xemds/Makefile | 4 ++++ board/freescale/mpc8360emds/Makefile | 4 ++++ 2 files changed, 8 insertions(+), 0 deletions(-)
board/freescale/mpc832xemds/Makefile +4 -0
@@ -23,6 +23,10 @@ include $(TOPDIR)/config.mk +ifneq ($(OBJTREE),$(SRCTREE)) +$(shell mkdir -p $(obj)../common) +endif + LIB = $(obj)lib$(BOARD).a COBJS := $(BOARD).o pci.o ../common/pq-mds-pib.o
board/freescale/mpc8360emds/Makefile +4 -0
@@ -23,6 +23,10 @@ include $(TOPDIR)/config.mk +ifneq ($(OBJTREE),$(SRCTREE)) +$(shell mkdir -p $(obj)../common) +endif + LIB = $(obj)lib$(BOARD).a COBJS := $(BOARD).o pci.o ../common/pq-mds-pib.o
Signature · 1 line
1.5.2.2
PATCH 1/1 mpc83xx: fix alternate build dir location problem with pq-mds-pib.o
Dear Kim,
Quoted 30 lines · in message <[email protected]> you wrote:
fixes this build error:
FATAL: can't create /work/wd/tmp/u-boot-ppc/board/freescale/mpc8360emds/../common/pq-mds-pib.o: No such file or directory
Signed-off-by Kim Phillips <[email protected]>--- board/freescale/mpc832xemds/Makefile | 4 ++++ board/freescale/mpc8360emds/Makefile | 4 ++++ 2 files changed, 8 insertions(+), 0 deletions(-)board/freescale/mpc832xemds/Makefile +4
-0@@ -23,6 +23,10 @@ include $(TOPDIR)/config.mk +ifneq ($(OBJTREE),$(SRCTREE)) +$(shell mkdir -p $(obj)../common) +endif + LIB = $(obj)lib$(BOARD).a COBJS := $(BOARD).o pci.o ../common/pq-mds-pib.oboard/freescale/mpc8360emds/Makefile +0
-0
board/freescale/mpc8360emds/Makefile line 32
Quoted 10 lines
board/freescale/mpc8360emds/Makefile +4
-0@@ -23,6 +23,10 @@ include $(TOPDIR)/config.mk +ifneq ($(OBJTREE),$(SRCTREE)) +$(shell mkdir -p $(obj)../common) +endif + LIB = $(obj)lib$(BOARD).a COBJS := $(BOARD).o pci.o ../common/pq-mds-pib.o
I'm not exactly happy about having this snippet of code now in each and every board Makefile.
Instead, there should be a proper Makefile in board/freescale/common/ which also takes care of that.
What do you think?
Best regards,
Wolfgang Denk
Signature · 4 lines
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de Forty two.