Skip to contentSkip to conversation

Fix config files for out-of-tree building

PATCH New Wolfgang Denk 1 participant 1 message May 14, 2008

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Fix config files for out-of-tree building

Several board/<...>/config.mk files include dynamically built (by the Makefile) config files but used the wrong file name of

	$(TOPDIR)/board/$(BOARDDIR)/config.tmp
instead if the correct
	$(OBJTREE)/board/$(BOARDDIR)/config.tmp

The bug is nasty because the build result is correct for the (normal) in-tree builds, and because 'sinclude' is used no errors get raised even for out-of-tree build tests. But out-of-tree builds use an incomplete and thus usually incorrect configuration...

---
 board/BuS/EB+MCF-EV123/config.mk |    2 +-
 board/amcc/canyonlands/config.mk |    2 +-
 board/esd/mecp5200/config.mk     |    2 +-
 board/linkstation/config.mk      |    2 +-
 board/munices/config.mk          |    2 +-
 board/v38b/config.mk             |    2 +-
 6 files changed, 6 insertions(+), 6 deletions(-)
board/BuS/EB+MCF-EV123/config.mk +1 -1
index 9fe2fc5..f03e396 100644
@@ -22,7 +22,7 @@
 # MA 02111-1307 USA
 #
 
-sinclude $(TOPDIR)/board/$(BOARDDIR)/textbase.mk
+sinclude $(OBJTREE)/board/$(BOARDDIR)/textbase.mk
 ifndef TEXT_BASE
 TEXT_BASE = 0xFE000000
 endif
board/amcc/canyonlands/config.mk +1 -1
index 1e4bbc4..7e79536 100644
@@ -24,7 +24,7 @@
 # AMCC 460EX/460GT Evaluation Board (Canyonlands) board
 #
 
-sinclude $(TOPDIR)/board/$(BOARDDIR)/config.tmp
+sinclude $(OBJTREE)/board/$(BOARDDIR)/config.tmp
 
 ifndef TEXT_BASE
 TEXT_BASE = 0xFFFA0000
board/esd/mecp5200/config.mk +1 -1
index 07b5de1..170779d 100644
@@ -32,7 +32,7 @@
 #	0x00100000   boot from RAM (for testing only)
 #
 
-sinclude $(TOPDIR)/board/$(BOARDDIR)/config.tmp
+sinclude $(OBJTREE)/board/$(BOARDDIR)/config.tmp
 
 ifndef TEXT_BASE
 ## Standard: boot high
board/linkstation/config.mk +1 -1
index bdf611d..d048290 100644
@@ -35,7 +35,7 @@
 #       0x07F00000   boot from RAM
 #
 
-sinclude $(TOPDIR)/board/$(BOARDDIR)/config.tmp
+sinclude $(OBJTREE)/board/$(BOARDDIR)/config.tmp
 
 ifndef TEXT_BASE
 # For flash image - all models
board/munices/config.mk +1 -1
index d226244..1b573bc 100644
@@ -29,7 +29,7 @@
 #	0xFFF00000   boot high (standard configuration)
 #
 
-sinclude $(TOPDIR)/board/$(BOARDDIR)/config.tmp
+sinclude $(OBJTREE)/board/$(BOARDDIR)/config.tmp
 
 ifndef TEXT_BASE
 TEXT_BASE = 0xFFF00000
board/v38b/config.mk +1 -1
index 75577fc..bc55fc7 100644
@@ -25,7 +25,7 @@
 # MarelV38B board
 #
 
-sinclude $(TOPDIR)/board/$(BOARDDIR)/config.tmp
+sinclude $(OBJTREE)/board/$(BOARDDIR)/config.tmp
 
 TEXT_BASE = 0xFF000000
 
Signature · 1 line
1.5.4.2