Skip to contentSkip to conversation

harmony: fix out of tree building

PATCH New Wolfgang Denk 2 participants 5 messages Sep 5, 2011 – Sep 7, 2011

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 harmony: fix out of tree building

Out of tree building of the "harmony" board failed like this:

Configuring for harmony board...
Assembler messages:
Fatal error: can't create /work/wd/tmp-arm/board/nvidia/harmony/../common/board.o: No such file or directory make[1]: *** [/work/wd/tmp-arm/board/nvidia/harmony/../common/board.o] Error 2

Cc Albert ARIBAUD <[email protected]>
Cc Tom Warren <[email protected]>
---
 board/nvidia/harmony/Makefile |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
board/nvidia/harmony/Makefile +4 -0
index 9fb6b57..ebd8e02 100644
@@ -24,6 +24,10 @@
 
 include $(TOPDIR)/config.mk
 
+ifneq ($(OBJTREE),$(SRCTREE))
+$(shell mkdir -p $(obj)../common)
+endif
+
 LIB	= $(obj)lib$(BOARD).o
 
 COBJS	:= $(BOARD).o
Signature · 1 line
1.7.6
#1 lore raw

PATCH 1/1 harmony / seaboard: fix out of tree building

Out of tree building of the "harmony" and "seaboard" boards failed like this:

Configuring for harmony board...
Assembler messages:
Fatal error: can't create /work/wd/tmp-arm/board/nvidia/harmony/../common/board.o: No such file or directory make[1]: *** [/work/wd/tmp-arm/board/nvidia/harmony/../common/board.o] Error 2

Cc Albert ARIBAUD <[email protected]>
Cc Tom Warren <[email protected]>

---
This replaces [PATCH] harmony: fix out of tree building; both Nvidia boards have the same problem, so fix them in one go.

 board/nvidia/harmony/Makefile  |    4 ++++
 board/nvidia/seaboard/Makefile |    4 ++++
 2 files changed, 8 insertions(+), 0 deletions(-)
board/nvidia/harmony/Makefile +4 -0
index 9fb6b57..ebd8e02 100644
@@ -24,6 +24,10 @@
 
 include $(TOPDIR)/config.mk
 
+ifneq ($(OBJTREE),$(SRCTREE))
+$(shell mkdir -p $(obj)../common)
+endif
+
 LIB	= $(obj)lib$(BOARD).o
 
 COBJS	:= $(BOARD).o
board/nvidia/seaboard/Makefile +4 -0
index 9fb6b57..ebd8e02 100644
@@ -24,6 +24,10 @@
 
 include $(TOPDIR)/config.mk
 
+ifneq ($(OBJTREE),$(SRCTREE))
+$(shell mkdir -p $(obj)../common)
+endif
+
 LIB	= $(obj)lib$(BOARD).o
 
 COBJS	:= $(BOARD).o
Signature · 1 line
1.7.6
#2 lore raw

PATCH 1/1 harmony / seaboard: fix out of tree building

Quoted 31 lines · Wolfgang Denk

Out of tree building of the "harmony" and "seaboard" boards failed like this:

Configuring for harmony board...
Assembler messages:
Fatal error: can't create /work/wd/tmp-arm/board/nvidia/harmony/../common/board.o: No such file or directory make[1]: *** [/work/wd/tmp-arm/board/nvidia/harmony/../common/board.o] Error 2

Cc Albert ARIBAUD <[email protected]>
Cc Tom Warren <[email protected]>

---
This replaces [PATCH] harmony: fix out of tree building; both Nvidia boards have the same problem, so fix them in one go.

?board/nvidia/harmony/Makefile ?| ? ?4 ++++
?board/nvidia/seaboard/Makefile | ? ?4 ++++
?2 files changed, 8 insertions(+), 0 deletions(-)

board/nvidia/harmony/Makefile +0 -0
index 9fb6b57..ebd8e02 100644
@@ -24,6 +24,10 @@
 

?include $(TOPDIR)/config.mk

board/nvidia/harmony/Makefile +4 -0
+ifneq ($(OBJTREE),$(SRCTREE))
+$(shell mkdir -p $(obj)../common)
+endif
+
Quoted 1 line

?LIB ? ?= $(obj)lib$(BOARD).o

This looks good to me. But I'm confused, I submitted this same fix a while ago and was told to instead create a separate library our of the common code... Oh well. :)

Thanks,
Anton

Quoted 24 lines

?COBJS ?:= $(BOARD).o

board/nvidia/seaboard/Makefile +0 -0
index 9fb6b57..ebd8e02 100644
@@ -24,6 +24,10 @@
 

?include $(TOPDIR)/config.mk

board/nvidia/seaboard/Makefile +4 -0
+ifneq ($(OBJTREE),$(SRCTREE))
+$(shell mkdir -p $(obj)../common)
+endif
+

?LIB ? ?= $(obj)lib$(BOARD).o

?COBJS ?:= $(BOARD).o
--
1.7.6

_______________________________________________
U-Boot mailing list
U-Boot at lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot

#3 lore raw

PATCH 1/1 harmony / seaboard: fix out of tree building

Dear Anton Staaf,

Quoted 4 lines · In message <CAF6FioW+7srjzS4g1NNwZ58gWYmCbAxCTRCzo7u9isd_2=x4Dw@mail.gmail.com>…

This looks good to me. But I'm confused, I submitted this same fix a while ago and was told to instead create a separate library our of the common code... Oh well. :)

Must have missed this. Well, the "shell mkdir" method is currently used in a number of Makefiles. Indeed there should be a better way to solve this...

Best regards,

Wolfgang Denk

Signature · 5 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
Whenever people agree with me, I always think I must be wrong.
- Oscar Wilde
author Applied
#4 lore raw

PATCH 1/1 harmony / seaboard: fix out of tree building

In reply to Wolfgang Denk

Dear Wolfgang Denk,

Quoted 11 lines · In message <[email protected]> you wrote:

Out of tree building of the "harmony" and "seaboard" boards failed like this:

Configuring for harmony board...
Assembler messages:
Fatal error: can't create /work/wd/tmp-arm/board/nvidia/harmony/../common/board.o: No such file or directory make[1]: *** [/work/wd/tmp-arm/board/nvidia/harmony/../common/board.o] Error 2

Cc Albert ARIBAUD <[email protected]>
Cc Tom Warren <[email protected]>
Quoted 7 lines

---
This replaces [PATCH] harmony: fix out of tree building; both Nvidia boards have the same problem, so fix them in one go.

 board/nvidia/harmony/Makefile  |    4 ++++
 board/nvidia/seaboard/Makefile |    4 ++++
 2 files changed, 8 insertions(+), 0 deletions(-)

Applied, thanks.

Best regards,

Wolfgang Denk

Signature · 6 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
In an infinite universe all things are possible, including the possi-
bility that the universe does not exist.
                        - Terry Pratchett, _The Dark Side of the Sun_