diff options
| author | Masahiro Yamada <yamada.m@jp.panasonic.com> | 2013-11-11 14:35:54 +0900 | 
|---|---|---|
| committer | Tom Rini <trini@ti.com> | 2013-11-17 14:11:31 -0500 | 
| commit | e5c5301f1444ea454d17a368bb5138e0f3a59247 (patch) | |
| tree | 02ba8dee661c5b8cc4f8529ffd2e1fda4262241d | |
| parent | 36cf0a845c869c514a6cc20a953c53a086251d2f (diff) | |
| download | olio-uboot-2014.01-e5c5301f1444ea454d17a368bb5138e0f3a59247.tar.xz olio-uboot-2014.01-e5c5301f1444ea454d17a368bb5138e0f3a59247.zip | |
Makefile: make directories by Makefile.build
Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
68 files changed, 7 insertions, 247 deletions
| diff --git a/arch/powerpc/cpu/mpc512x/Makefile b/arch/powerpc/cpu/mpc512x/Makefile index f770350dc..a4934ef78 100644 --- a/arch/powerpc/cpu/mpc512x/Makefile +++ b/arch/powerpc/cpu/mpc512x/Makefile @@ -4,8 +4,6 @@  # SPDX-License-Identifier:	GPL-2.0+  # -$(shell mkdir -p $(OBJTREE)/board/freescale/common) -  extra-y	= start.o  obj-y	:= cpu.o  obj-y	+= traps.o diff --git a/arch/powerpc/cpu/mpc824x/Makefile b/arch/powerpc/cpu/mpc824x/Makefile index 67b0d1713..194fadd0c 100644 --- a/arch/powerpc/cpu/mpc824x/Makefile +++ b/arch/powerpc/cpu/mpc824x/Makefile @@ -5,10 +5,6 @@  # SPDX-License-Identifier:	GPL-2.0+  # -ifneq ($(OBJTREE),$(SRCTREE)) -$(shell mkdir -p $(obj)drivers/epic $(obj)drivers/i2c) -endif -  extra-y	= start.o  obj-y	= traps.o cpu.o cpu_init.o interrupts.o speed.o \  	  drivers/epic/epic1.o drivers/i2c/i2c.o pci.o diff --git a/board/LaCie/edminiv2/Makefile b/board/LaCie/edminiv2/Makefile index 7ca06f5a7..035f6865d 100644 --- a/board/LaCie/edminiv2/Makefile +++ b/board/LaCie/edminiv2/Makefile @@ -9,8 +9,4 @@  # SPDX-License-Identifier:	GPL-2.0+  # -ifneq ($(OBJTREE),$(SRCTREE)) -$(shell mkdir -p $(obj)../common) -endif -  obj-y	:= edminiv2.o ../common/common.o diff --git a/board/LaCie/net2big_v2/Makefile b/board/LaCie/net2big_v2/Makefile index 4fa08c513..f3074af25 100644 --- a/board/LaCie/net2big_v2/Makefile +++ b/board/LaCie/net2big_v2/Makefile @@ -9,10 +9,6 @@  # SPDX-License-Identifier:	GPL-2.0+  # -ifneq ($(OBJTREE),$(SRCTREE)) -$(shell mkdir -p $(obj)../common) -endif -  obj-y	:= net2big_v2.o ../common/common.o  ifneq ($(and $(CONFIG_KIRKWOOD_GPIO),$(CONFIG_NET2BIG_V2)),)  obj-y	+= ../common/cpld-gpio-bus.o diff --git a/board/LaCie/netspace_v2/Makefile b/board/LaCie/netspace_v2/Makefile index e5357e4bc..47778d847 100644 --- a/board/LaCie/netspace_v2/Makefile +++ b/board/LaCie/netspace_v2/Makefile @@ -9,8 +9,4 @@  # SPDX-License-Identifier:	GPL-2.0+  # -ifneq ($(OBJTREE),$(SRCTREE)) -$(shell mkdir -p $(obj)../common) -endif -  obj-y	:= netspace_v2.o ../common/common.o diff --git a/board/LaCie/wireless_space/Makefile b/board/LaCie/wireless_space/Makefile index 11c535e99..90a84f489 100644 --- a/board/LaCie/wireless_space/Makefile +++ b/board/LaCie/wireless_space/Makefile @@ -9,8 +9,4 @@  # SPDX-License-Identifier:	GPL-2.0+  # -ifneq ($(OBJTREE),$(SRCTREE)) -$(shell mkdir -p $(obj)../common) -endif -  obj-y	:= wireless_space.o ../common/common.o diff --git a/board/Marvell/db64360/Makefile b/board/Marvell/db64360/Makefile index aad4776b8..aefe0a789 100644 --- a/board/Marvell/db64360/Makefile +++ b/board/Marvell/db64360/Makefile @@ -8,10 +8,6 @@  # SPDX-License-Identifier:	GPL-2.0+  # -ifneq ($(OBJTREE),$(SRCTREE)) -$(shell mkdir -p $(obj)../common) -endif -  obj-y	= db64360.o ../common/flash.o ../common/serial.o ../common/memory.o pci.o \  	  mv_eth.o ../common/ns16550.o mpsc.o ../common/i2c.o \  	  sdram_init.o ../common/intel_flash.o ../common/misc.o diff --git a/board/Marvell/db64460/Makefile b/board/Marvell/db64460/Makefile index ea9e57086..a970f9afd 100644 --- a/board/Marvell/db64460/Makefile +++ b/board/Marvell/db64460/Makefile @@ -8,10 +8,6 @@  # SPDX-License-Identifier:	GPL-2.0+  # -ifneq ($(OBJTREE),$(SRCTREE)) -$(shell mkdir -p $(obj)../common) -endif -  obj-y	+= db64460.o ../common/flash.o ../common/serial.o ../common/memory.o pci.o \  	  mv_eth.o ../common/ns16550.o mpsc.o ../common/i2c.o \  	  sdram_init.o ../common/intel_flash.o ../common/misc.o diff --git a/board/altera/nios2-generic/Makefile b/board/altera/nios2-generic/Makefile index 84c7bff80..84690fe04 100644 --- a/board/altera/nios2-generic/Makefile +++ b/board/altera/nios2-generic/Makefile @@ -6,10 +6,6 @@  # SPDX-License-Identifier:	GPL-2.0+  # -ifneq ($(OBJTREE),$(SRCTREE)) -$(shell mkdir -p $(obj)../common) -endif -  obj-y	:= nios2-generic.o  obj-$(CONFIG_CMD_IDE) += ../common/cfide.o  obj-$(CONFIG_EPLED) += ../common/epled.o diff --git a/board/avionic-design/medcom-wide/Makefile b/board/avionic-design/medcom-wide/Makefile index 6c4ab643e..87e19123b 100644 --- a/board/avionic-design/medcom-wide/Makefile +++ b/board/avionic-design/medcom-wide/Makefile @@ -7,8 +7,6 @@  # SPDX-License-Identifier:	GPL-2.0+  # -$(shell mkdir -p $(obj)../common $(obj)../../nvidia/common) -  obj-y	:= ../common/tamonten.o  include ../../nvidia/common/common.mk diff --git a/board/avionic-design/plutux/Makefile b/board/avionic-design/plutux/Makefile index 6c4ab643e..87e19123b 100644 --- a/board/avionic-design/plutux/Makefile +++ b/board/avionic-design/plutux/Makefile @@ -7,8 +7,6 @@  # SPDX-License-Identifier:	GPL-2.0+  # -$(shell mkdir -p $(obj)../common $(obj)../../nvidia/common) -  obj-y	:= ../common/tamonten.o  include ../../nvidia/common/common.mk diff --git a/board/avionic-design/tec/Makefile b/board/avionic-design/tec/Makefile index 6c4ab643e..87e19123b 100644 --- a/board/avionic-design/tec/Makefile +++ b/board/avionic-design/tec/Makefile @@ -7,8 +7,6 @@  # SPDX-License-Identifier:	GPL-2.0+  # -$(shell mkdir -p $(obj)../common $(obj)../../nvidia/common) -  obj-y	:= ../common/tamonten.o  include ../../nvidia/common/common.mk diff --git a/board/compal/paz00/Makefile b/board/compal/paz00/Makefile index 824cd2ea1..b2d3b6b4b 100644 --- a/board/compal/paz00/Makefile +++ b/board/compal/paz00/Makefile @@ -14,8 +14,6 @@  # more details.  # -$(shell mkdir -p $(obj)../../nvidia/common) -  obj-y	:= paz00.o  include ../../nvidia/common/common.mk diff --git a/board/compulab/trimslice/Makefile b/board/compulab/trimslice/Makefile index 0818673cb..f3bd00dbf 100644 --- a/board/compulab/trimslice/Makefile +++ b/board/compulab/trimslice/Makefile @@ -5,8 +5,6 @@  # SPDX-License-Identifier:	GPL-2.0+  # -$(shell mkdir -p $(obj)../../nvidia/common) -  obj-y	:= trimslice.o  include ../../nvidia/common/common.mk diff --git a/board/emk/top5200/Makefile b/board/emk/top5200/Makefile index 0930d484f..b455c26e1 100644 --- a/board/emk/top5200/Makefile +++ b/board/emk/top5200/Makefile @@ -5,8 +5,4 @@  # SPDX-License-Identifier:	GPL-2.0+  # -ifneq ($(OBJTREE),$(SRCTREE)) -$(shell mkdir -p $(obj)../common) -endif -  obj-y	:= top5200.o ../common/flash.o ../common/vpd.o ../common/am79c874.o diff --git a/board/emk/top860/Makefile b/board/emk/top860/Makefile index b2645f634..0401639ce 100644 --- a/board/emk/top860/Makefile +++ b/board/emk/top860/Makefile @@ -5,7 +5,4 @@  # SPDX-License-Identifier:	GPL-2.0+  # -ifneq ($(OBJTREE),$(SRCTREE)) -$(shell mkdir -p $(obj)../common) -endif  obj-y	= top860.o ../common/flash.o ../common/vpd.o ../common/am79c874.o diff --git a/board/esd/adciop/Makefile b/board/esd/adciop/Makefile index a096e4441..d0e264de9 100644 --- a/board/esd/adciop/Makefile +++ b/board/esd/adciop/Makefile @@ -5,8 +5,4 @@  # SPDX-License-Identifier:	GPL-2.0+  # -ifneq ($(OBJTREE),$(SRCTREE)) -$(shell mkdir -p $(obj)../common) -endif -  obj-y	= adciop.o flash.o ../common/misc.o ../common/pci.o diff --git a/board/esd/apc405/Makefile b/board/esd/apc405/Makefile index c6ab1a5e2..ada8bfd3d 100644 --- a/board/esd/apc405/Makefile +++ b/board/esd/apc405/Makefile @@ -5,10 +5,6 @@  # SPDX-License-Identifier:	GPL-2.0+  # -ifneq ($(OBJTREE),$(SRCTREE)) -$(shell mkdir -p $(obj)../common) -endif -  obj-y	= apc405.o \  	../common/misc.o \  	../common/auto_update.o diff --git a/board/esd/ar405/Makefile b/board/esd/ar405/Makefile index 2d16313e8..dd54f546a 100644 --- a/board/esd/ar405/Makefile +++ b/board/esd/ar405/Makefile @@ -5,8 +5,4 @@  # SPDX-License-Identifier:	GPL-2.0+  # -ifneq ($(OBJTREE),$(SRCTREE)) -$(shell mkdir -p $(obj)../common) -endif -  obj-y	= ar405.o flash.o ../common/misc.o diff --git a/board/esd/ash405/Makefile b/board/esd/ash405/Makefile index 4c866ee0a..aab8de44b 100644 --- a/board/esd/ash405/Makefile +++ b/board/esd/ash405/Makefile @@ -5,10 +5,6 @@  # SPDX-License-Identifier:	GPL-2.0+  # -ifneq ($(OBJTREE),$(SRCTREE)) -$(shell mkdir -p $(obj)../common) -endif -  obj-y	= ash405.o flash.o \  	../common/misc.o \  	../common/esd405ep_nand.o \ diff --git a/board/esd/cms700/Makefile b/board/esd/cms700/Makefile index 8cfe3baf7..2bf50066c 100644 --- a/board/esd/cms700/Makefile +++ b/board/esd/cms700/Makefile @@ -5,10 +5,6 @@  # SPDX-License-Identifier:	GPL-2.0+  # -ifneq ($(OBJTREE),$(SRCTREE)) -$(shell mkdir -p $(obj)../common/xilinx_jtag) -endif -  # Objects for Xilinx JTAG programming (CPLD)  CPLD    = ../common/xilinx_jtag/lenval.o \  	  ../common/xilinx_jtag/micro.o \ diff --git a/board/esd/cpci2dp/Makefile b/board/esd/cpci2dp/Makefile index 1d1502071..ce2c6dd91 100644 --- a/board/esd/cpci2dp/Makefile +++ b/board/esd/cpci2dp/Makefile @@ -5,8 +5,4 @@  # SPDX-License-Identifier:	GPL-2.0+  # -ifneq ($(OBJTREE),$(SRCTREE)) -$(shell mkdir -p $(obj)../common) -endif -  obj-y	= cpci2dp.o flash.o ../common/misc.o ../common/cmd_loadpci.o diff --git a/board/esd/cpci405/Makefile b/board/esd/cpci405/Makefile index 1af7e9454..b14057179 100644 --- a/board/esd/cpci405/Makefile +++ b/board/esd/cpci405/Makefile @@ -5,9 +5,5 @@  # SPDX-License-Identifier:	GPL-2.0+  # -ifneq ($(OBJTREE),$(SRCTREE)) -$(shell mkdir -p $(obj)../common) -endif -  obj-y	= cpci405.o flash.o ../common/misc.o ../common/auto_update.o  obj-y	+= ../common/cmd_loadpci.o diff --git a/board/esd/cpci5200/Makefile b/board/esd/cpci5200/Makefile index fb6c0e20e..8421f5486 100644 --- a/board/esd/cpci5200/Makefile +++ b/board/esd/cpci5200/Makefile @@ -5,10 +5,6 @@  # SPDX-License-Identifier:	GPL-2.0+  # -# ifneq ($(OBJTREE),$(SRCTREE)) -# $(shell mkdir -p $(obj)../common/xilinx_jtag) -# endif -  # Objects for Xilinx JTAG programming (CPLD)  # CPLD  = ../common/xilinx_jtag/lenval.o \  #	  ../common/xilinx_jtag/micro.o \ diff --git a/board/esd/cpci750/Makefile b/board/esd/cpci750/Makefile index 8b3dc3370..a3300c9f4 100644 --- a/board/esd/cpci750/Makefile +++ b/board/esd/cpci750/Makefile @@ -8,10 +8,6 @@  # SPDX-License-Identifier:	GPL-2.0+  # -ifneq ($(OBJTREE),$(SRCTREE)) -$(shell mkdir -p $(obj)../../Marvell/common) -endif -  obj-y	= misc.o  obj-y	+= cpci750.o serial.o ../../Marvell/common/memory.o pci.o \  	  mv_eth.o  mpsc.o i2c.o \ diff --git a/board/esd/cpciiser4/Makefile b/board/esd/cpciiser4/Makefile index 4d3c34ae4..b8d6bea6d 100644 --- a/board/esd/cpciiser4/Makefile +++ b/board/esd/cpciiser4/Makefile @@ -5,8 +5,4 @@  # SPDX-License-Identifier:	GPL-2.0+  # -ifneq ($(OBJTREE),$(SRCTREE)) -$(shell mkdir -p $(obj)../common) -endif -  obj-y	= cpciiser4.o flash.o ../common/misc.o diff --git a/board/esd/dasa_sim/Makefile b/board/esd/dasa_sim/Makefile index f0a5a8f09..eb9f5f86d 100644 --- a/board/esd/dasa_sim/Makefile +++ b/board/esd/dasa_sim/Makefile @@ -5,8 +5,4 @@  # SPDX-License-Identifier:	GPL-2.0+  # -ifneq ($(OBJTREE),$(SRCTREE)) -$(shell mkdir -p $(obj)../common) -endif -  obj-y	= dasa_sim.o flash.o cmd_dasa_sim.o eeprom.o ../common/pci.o diff --git a/board/esd/dp405/Makefile b/board/esd/dp405/Makefile index 6809c673c..cfcfb66a1 100644 --- a/board/esd/dp405/Makefile +++ b/board/esd/dp405/Makefile @@ -5,10 +5,6 @@  # SPDX-License-Identifier:	GPL-2.0+  # -ifneq ($(OBJTREE),$(SRCTREE)) -$(shell mkdir -p $(obj)../common/xilinx_jtag) -endif -  # Objects for Xilinx JTAG programming (CPLD)  CPLD    = ../common/xilinx_jtag/lenval.o \  	  ../common/xilinx_jtag/micro.o \ diff --git a/board/esd/du405/Makefile b/board/esd/du405/Makefile index 12ce41a9a..7914eab35 100644 --- a/board/esd/du405/Makefile +++ b/board/esd/du405/Makefile @@ -5,8 +5,4 @@  # SPDX-License-Identifier:	GPL-2.0+  # -ifneq ($(OBJTREE),$(SRCTREE)) -$(shell mkdir -p $(obj)../common) -endif -  obj-y	= du405.o flash.o ../common/misc.o diff --git a/board/esd/hh405/Makefile b/board/esd/hh405/Makefile index 0507f1b4d..fba21a3ae 100644 --- a/board/esd/hh405/Makefile +++ b/board/esd/hh405/Makefile @@ -5,10 +5,6 @@  # SPDX-License-Identifier:	GPL-2.0+  # -ifneq ($(OBJTREE),$(SRCTREE)) -$(shell mkdir -p $(obj)../common) -endif -  obj-y	= hh405.o flash.o \  	../common/misc.o \  	../common/esd405ep_nand.o \ diff --git a/board/esd/hub405/Makefile b/board/esd/hub405/Makefile index 5447a959c..99e18b567 100644 --- a/board/esd/hub405/Makefile +++ b/board/esd/hub405/Makefile @@ -5,10 +5,6 @@  # SPDX-License-Identifier:	GPL-2.0+  # -ifneq ($(OBJTREE),$(SRCTREE)) -$(shell mkdir -p $(obj)../common) -endif -  obj-y	= hub405.o flash.o \  	../common/misc.o \  	../common/esd405ep_nand.o \ diff --git a/board/esd/ocrtc/Makefile b/board/esd/ocrtc/Makefile index 0d9a6fdc4..44b7d5d07 100644 --- a/board/esd/ocrtc/Makefile +++ b/board/esd/ocrtc/Makefile @@ -5,8 +5,4 @@  # SPDX-License-Identifier:	GPL-2.0+  # -ifneq ($(OBJTREE),$(SRCTREE)) -$(shell mkdir -p $(obj)../common) -endif -  obj-y	= ocrtc.o flash.o ../common/misc.o cmd_ocrtc.o diff --git a/board/esd/pci405/Makefile b/board/esd/pci405/Makefile index 2f8706bd6..9e659c796 100644 --- a/board/esd/pci405/Makefile +++ b/board/esd/pci405/Makefile @@ -5,9 +5,5 @@  # SPDX-License-Identifier:	GPL-2.0+  # -ifneq ($(OBJTREE),$(SRCTREE)) -$(shell mkdir -p $(obj)../common) -endif -  obj-y	= pci405.o flash.o ../common/misc.o cmd_pci405.o  obj-y	+= writeibm.o diff --git a/board/esd/pf5200/Makefile b/board/esd/pf5200/Makefile index a9d20c90b..a54289c07 100644 --- a/board/esd/pf5200/Makefile +++ b/board/esd/pf5200/Makefile @@ -5,10 +5,6 @@  # SPDX-License-Identifier:	GPL-2.0+  # -# ifneq ($(OBJTREE),$(SRCTREE)) -# $(shell mkdir -p $(obj)../common/xilinx_jtag) -# endif -  # Objects for Xilinx JTAG programming (CPLD)  # CPLD  = ../common/xilinx_jtag/lenval.o \  #	  ../common/xilinx_jtag/micro.o \ diff --git a/board/esd/plu405/Makefile b/board/esd/plu405/Makefile index 45b962f69..6ffae677b 100644 --- a/board/esd/plu405/Makefile +++ b/board/esd/plu405/Makefile @@ -5,10 +5,6 @@  # SPDX-License-Identifier:	GPL-2.0+  # -ifneq ($(OBJTREE),$(SRCTREE)) -$(shell mkdir -p $(obj)../common) -endif -  obj-y	= plu405.o flash.o \  	../common/misc.o \  	../common/esd405ep_nand.o \ diff --git a/board/esd/pmc405/Makefile b/board/esd/pmc405/Makefile index f4aa1c9ee..ad98207f3 100644 --- a/board/esd/pmc405/Makefile +++ b/board/esd/pmc405/Makefile @@ -5,10 +5,6 @@  # SPDX-License-Identifier:	GPL-2.0+  # -ifneq ($(OBJTREE),$(SRCTREE)) -$(shell mkdir -p $(obj)../common/xilinx_jtag) -endif -  # Objects for Xilinx JTAG programming (CPLD)  CPLD    = ../common/xilinx_jtag/lenval.o \  	  ../common/xilinx_jtag/micro.o \ diff --git a/board/esd/pmc405de/Makefile b/board/esd/pmc405de/Makefile index 7d5b273c0..b3f6dcd1e 100644 --- a/board/esd/pmc405de/Makefile +++ b/board/esd/pmc405de/Makefile @@ -5,10 +5,6 @@  # SPDX-License-Identifier:	GPL-2.0+  # -ifneq ($(OBJTREE),$(SRCTREE)) -$(shell mkdir -p $(obj)../common) -endif -  obj-y	= pmc405de.o  obj-$(CONFIG_CMD_CHIP_CONFIG) += chip_config.o  obj-y += ../common/cmd_loadpci.o diff --git a/board/esd/pmc440/Makefile b/board/esd/pmc440/Makefile index b1318c742..708e9d138 100644 --- a/board/esd/pmc440/Makefile +++ b/board/esd/pmc440/Makefile @@ -5,10 +5,6 @@  # SPDX-License-Identifier:	GPL-2.0+  # -ifneq ($(OBJTREE),$(SRCTREE)) -$(shell mkdir -p $(obj)../common) -endif -  obj-y	= pmc440.o cmd_pmc440.o sdram.o fpga.o \  	../common/cmd_loadpci.o  extra-y	+= init.o diff --git a/board/esd/voh405/Makefile b/board/esd/voh405/Makefile index 8fcfa37dc..3d82399ed 100644 --- a/board/esd/voh405/Makefile +++ b/board/esd/voh405/Makefile @@ -5,10 +5,6 @@  # SPDX-License-Identifier:	GPL-2.0+  # -ifneq ($(OBJTREE),$(SRCTREE)) -$(shell mkdir -p $(obj)../common) -endif -  obj-y	= voh405.o flash.o \  	../common/misc.o \  	../common/esd405ep_nand.o \ diff --git a/board/esd/vom405/Makefile b/board/esd/vom405/Makefile index c8a4a4e4c..7cf5c0224 100644 --- a/board/esd/vom405/Makefile +++ b/board/esd/vom405/Makefile @@ -5,10 +5,6 @@  # SPDX-License-Identifier:	GPL-2.0+  # -ifneq ($(OBJTREE),$(SRCTREE)) -$(shell mkdir -p $(obj)../common/xilinx_jtag) -endif -  # Objects for Xilinx JTAG programming (CPLD)  CPLD    = ../common/xilinx_jtag/lenval.o \  	  ../common/xilinx_jtag/micro.o \ diff --git a/board/esd/wuh405/Makefile b/board/esd/wuh405/Makefile index 046ebad30..b9beeffc5 100644 --- a/board/esd/wuh405/Makefile +++ b/board/esd/wuh405/Makefile @@ -5,10 +5,6 @@  # SPDX-License-Identifier:	GPL-2.0+  # -ifneq ($(OBJTREE),$(SRCTREE)) -$(shell mkdir -p $(obj)../common) -endif -  obj-y	= wuh405.o flash.o \  	../common/misc.o \  	../common/esd405ep_nand.o \ diff --git a/board/keymile/km82xx/Makefile b/board/keymile/km82xx/Makefile index b44582fbe..20f193ab1 100644 --- a/board/keymile/km82xx/Makefile +++ b/board/keymile/km82xx/Makefile @@ -5,7 +5,4 @@  # SPDX-License-Identifier:	GPL-2.0+  # -ifneq ($(OBJTREE),$(SRCTREE)) -$(shell mkdir -p $(obj)../common) -endif  obj-y	:= km82xx.o ../common/common.o ../common/ivm.o diff --git a/board/keymile/km83xx/Makefile b/board/keymile/km83xx/Makefile index 7bdddf3bc..6c3268853 100644 --- a/board/keymile/km83xx/Makefile +++ b/board/keymile/km83xx/Makefile @@ -5,8 +5,4 @@  # SPDX-License-Identifier:	GPL-2.0+  # -ifneq ($(OBJTREE),$(SRCTREE)) -$(shell mkdir -p $(obj)../common) -endif -  obj-y	+= km83xx.o ../common/common.o ../common/ivm.o km83xx_i2c.o diff --git a/board/keymile/km_arm/Makefile b/board/keymile/km_arm/Makefile index 32eaa9357..a17d8d963 100644 --- a/board/keymile/km_arm/Makefile +++ b/board/keymile/km_arm/Makefile @@ -6,10 +6,6 @@  # SPDX-License-Identifier:	GPL-2.0+  # -ifneq ($(OBJTREE),$(SRCTREE)) -$(shell mkdir -p $(obj)../common) -endif -  obj-y	:= km_arm.o ../common/common.o ../common/ivm.o  ifdef CONFIG_KM_FPGA_CONFIG diff --git a/board/keymile/kmp204x/Makefile b/board/keymile/kmp204x/Makefile index c318e08a5..3e69ee2f1 100644 --- a/board/keymile/kmp204x/Makefile +++ b/board/keymile/kmp204x/Makefile @@ -8,9 +8,5 @@  # SPDX-License-Identifier:	GPL-2.0+  # -ifneq ($(OBJTREE),$(SRCTREE)) -$(shell mkdir -p $(obj)../common) -endif -  obj-y	:= kmp204x.o ddr.o eth.o tlb.o pci.o law.o \  	../common/common.o ../common/ivm.o diff --git a/board/kup/kup4k/Makefile b/board/kup/kup4k/Makefile index b3ad86ce1..c896fcd64 100644 --- a/board/kup/kup4k/Makefile +++ b/board/kup/kup4k/Makefile @@ -5,8 +5,4 @@  # SPDX-License-Identifier:	GPL-2.0+  # -ifneq ($(OBJTREE),$(SRCTREE)) -$(shell mkdir -p $(obj)../common) -endif -  obj-y	= kup4k.o ../common/flash.o ../common/kup.o ../common/load_sernum_ethaddr.o ../common/pcmcia.o diff --git a/board/kup/kup4x/Makefile b/board/kup/kup4x/Makefile index 05a1afc3a..6945943d0 100644 --- a/board/kup/kup4x/Makefile +++ b/board/kup/kup4x/Makefile @@ -5,8 +5,4 @@  # SPDX-License-Identifier:	GPL-2.0+  # -ifneq ($(OBJTREE),$(SRCTREE)) -$(shell mkdir -p $(obj)../common) -endif -  obj-y	= kup4x.o ../common/flash.o ../common/kup.o ../common/load_sernum_ethaddr.o ../common/pcmcia.o diff --git a/board/mpl/mip405/Makefile b/board/mpl/mip405/Makefile index 509eb591b..5bcf13050 100644 --- a/board/mpl/mip405/Makefile +++ b/board/mpl/mip405/Makefile @@ -5,10 +5,6 @@  # SPDX-License-Identifier:	GPL-2.0+  # -ifneq ($(OBJTREE),$(SRCTREE)) -$(shell mkdir -p $(obj)../common) -endif -  obj-y	= mip405.o cmd_mip405.o \  		../common/pci.o \  		../common/usb_uhci.o \ diff --git a/board/mpl/pati/Makefile b/board/mpl/pati/Makefile index 67381c108..982208261 100644 --- a/board/mpl/pati/Makefile +++ b/board/mpl/pati/Makefile @@ -5,9 +5,5 @@  # SPDX-License-Identifier:	GPL-2.0+  # -ifneq ($(OBJTREE),$(SRCTREE)) -$(shell mkdir -p $(obj)../common) -endif -  obj-y	:=  pati.o cmd_pati.o \  		../common/common_util.o diff --git a/board/mpl/pip405/Makefile b/board/mpl/pip405/Makefile index 3d73cc3f8..0a3d059e9 100644 --- a/board/mpl/pip405/Makefile +++ b/board/mpl/pip405/Makefile @@ -5,10 +5,6 @@  # SPDX-License-Identifier:	GPL-2.0+  # -ifneq ($(OBJTREE),$(SRCTREE)) -$(shell mkdir -p $(obj)../common) -endif -  obj-y	= pip405.o cmd_pip405.o \  		../common/pci.o \  		../common/isa.o \ diff --git a/board/mpl/vcma9/Makefile b/board/mpl/vcma9/Makefile index e0e96691c..175a19fa3 100644 --- a/board/mpl/vcma9/Makefile +++ b/board/mpl/vcma9/Makefile @@ -5,10 +5,6 @@  # SPDX-License-Identifier:	GPL-2.0+  # -ifneq ($(OBJTREE),$(SRCTREE)) -$(shell mkdir -p $(obj)../common) -endif -  obj-y	:= ../common/common_util.o  obj-y	+= vcma9.o cmd_vcma9.o diff --git a/board/nvidia/beaver/Makefile b/board/nvidia/beaver/Makefile index f828f52c2..1f7c31d64 100644 --- a/board/nvidia/beaver/Makefile +++ b/board/nvidia/beaver/Makefile @@ -14,6 +14,4 @@  # along with this program.  If not, see <http://www.gnu.org/licenses/>.  # -$(shell mkdir -p $(obj)../cardhu) -  obj-y	= ../cardhu/cardhu.o diff --git a/board/nvidia/ventana/Makefile b/board/nvidia/ventana/Makefile index 7265cfccc..f67044f2c 100644 --- a/board/nvidia/ventana/Makefile +++ b/board/nvidia/ventana/Makefile @@ -5,6 +5,4 @@  # SPDX-License-Identifier:	GPL-2.0+  # -$(shell mkdir -p $(obj)../seaboard) -  obj-y	= ../seaboard/seaboard.o diff --git a/board/prodrive/p3mx/Makefile b/board/prodrive/p3mx/Makefile index 43caffbc2..6ddda2296 100644 --- a/board/prodrive/p3mx/Makefile +++ b/board/prodrive/p3mx/Makefile @@ -5,10 +5,6 @@  # SPDX-License-Identifier:	GPL-2.0+  # -ifneq ($(OBJTREE),$(SRCTREE)) -$(shell mkdir -p $(obj)../../Marvell/common) -endif -  obj-y	= misc.o  obj-y	+= p3mx.o mpsc.o mv_eth.o pci.o sdram_init.o serial.o \  		../../Marvell/common/i2c.o ../../Marvell/common/memory.o diff --git a/board/psyent/pci5441/Makefile b/board/psyent/pci5441/Makefile index 9a66cfdfe..364f163e4 100644 --- a/board/psyent/pci5441/Makefile +++ b/board/psyent/pci5441/Makefile @@ -5,8 +5,4 @@  # SPDX-License-Identifier:	GPL-2.0+  # -ifneq ($(OBJTREE),$(SRCTREE)) -$(shell mkdir -p $(obj)../common) -endif -  obj-y	:= pci5441.o ../common/AMDLV065D.o diff --git a/board/psyent/pk1c20/Makefile b/board/psyent/pk1c20/Makefile index 286db94ae..5450f93ac 100644 --- a/board/psyent/pk1c20/Makefile +++ b/board/psyent/pk1c20/Makefile @@ -5,8 +5,4 @@  # SPDX-License-Identifier:	GPL-2.0+  # -ifneq ($(OBJTREE),$(SRCTREE)) -$(shell mkdir -p $(obj)../common) -endif -  obj-y	:= pk1c20.o led.o ../common/AMDLV065D.o diff --git a/board/sandburst/karef/Makefile b/board/sandburst/karef/Makefile index 05c818791..f890008be 100644 --- a/board/sandburst/karef/Makefile +++ b/board/sandburst/karef/Makefile @@ -9,10 +9,6 @@  # SPDX-License-Identifier:	GPL-2.0+  # -ifneq ($(OBJTREE),$(SRCTREE)) -$(shell mkdir -p $(obj)../common) -endif -  # TBS: add for debugging purposes  BUILDUSER := $(shell whoami)  FORCEBUILD := $(shell rm -f karef.o) diff --git a/board/sandburst/metrobox/Makefile b/board/sandburst/metrobox/Makefile index 76dfffc9c..37d91a51a 100644 --- a/board/sandburst/metrobox/Makefile +++ b/board/sandburst/metrobox/Makefile @@ -8,10 +8,6 @@  # SPDX-License-Identifier:	GPL-2.0+  # -ifneq ($(OBJTREE),$(SRCTREE)) -$(shell mkdir -p $(obj)../common) -endif -  # TBS: add for debugging purposes  BUILDUSER := $(shell whoami)  FORCEBUILD := $(shell rm -f metrobox.o) diff --git a/board/siemens/dxr2/Makefile b/board/siemens/dxr2/Makefile index 5129c6e3b..f15993216 100644 --- a/board/siemens/dxr2/Makefile +++ b/board/siemens/dxr2/Makefile @@ -11,10 +11,6 @@  # SPDX-License-Identifier:	GPL-2.0+  # -ifneq ($(OBJTREE),$(SRCTREE)) -$(shell mkdir -p $(obj)../common) -endif -  ifdef CONFIG_SPL_BUILD  obj-y	:= mux.o  endif diff --git a/board/siemens/pxm2/Makefile b/board/siemens/pxm2/Makefile index 5129c6e3b..f15993216 100644 --- a/board/siemens/pxm2/Makefile +++ b/board/siemens/pxm2/Makefile @@ -11,10 +11,6 @@  # SPDX-License-Identifier:	GPL-2.0+  # -ifneq ($(OBJTREE),$(SRCTREE)) -$(shell mkdir -p $(obj)../common) -endif -  ifdef CONFIG_SPL_BUILD  obj-y	:= mux.o  endif diff --git a/board/siemens/rut/Makefile b/board/siemens/rut/Makefile index 5129c6e3b..f15993216 100644 --- a/board/siemens/rut/Makefile +++ b/board/siemens/rut/Makefile @@ -11,10 +11,6 @@  # SPDX-License-Identifier:	GPL-2.0+  # -ifneq ($(OBJTREE),$(SRCTREE)) -$(shell mkdir -p $(obj)../common) -endif -  ifdef CONFIG_SPL_BUILD  obj-y	:= mux.o  endif diff --git a/board/toradex/colibri_t20_iris/Makefile b/board/toradex/colibri_t20_iris/Makefile index 7ca3fe596..ebeac70ea 100644 --- a/board/toradex/colibri_t20_iris/Makefile +++ b/board/toradex/colibri_t20_iris/Makefile @@ -4,9 +4,6 @@  # SPDX-License-Identifier:	GPL-2.0+  # -$(shell mkdir -p $(obj)../../nvidia/common) -$(shell mkdir -p $(obj)../colibri_t20-common) -  obj-y	:= ../../nvidia/common/board.o  obj-y	+= ../colibri_t20-common/colibri_t20-common.o  obj-y	+= colibri_t20_iris.o diff --git a/board/tqc/tqm8260/Makefile b/board/tqc/tqm8260/Makefile index dc4a52808..6b8573d9a 100644 --- a/board/tqc/tqm8260/Makefile +++ b/board/tqc/tqm8260/Makefile @@ -5,8 +5,4 @@  # SPDX-License-Identifier:	GPL-2.0+  # -ifneq ($(OBJTREE),$(SRCTREE)) -$(shell mkdir -p $(obj)../tqm8xx/) -endif -  obj-y	= tqm8260.o ../tqm8xx/load_sernum_ethaddr.o diff --git a/board/tqc/tqm8272/Makefile b/board/tqc/tqm8272/Makefile index 09af765f0..8bf02414e 100644 --- a/board/tqc/tqm8272/Makefile +++ b/board/tqc/tqm8272/Makefile @@ -5,8 +5,4 @@  # SPDX-License-Identifier:	GPL-2.0+  # -ifneq ($(OBJTREE),$(SRCTREE)) -$(shell mkdir -p $(obj)../tqm8xx/) -endif -  obj-y	= tqm8272.o ../tqm8xx/load_sernum_ethaddr.o nand.o diff --git a/board/xilinx/ppc405-generic/Makefile b/board/xilinx/ppc405-generic/Makefile index 1562f1775..c9da87065 100644 --- a/board/xilinx/ppc405-generic/Makefile +++ b/board/xilinx/ppc405-generic/Makefile @@ -9,8 +9,4 @@  # SPDX-License-Identifier:	GPL-2.0+  # -ifneq ($(OBJTREE),$(SRCTREE)) -$(shell mkdir -p $(obj)../../xilinx/ppc405-generic) -endif -  obj-y	+= ../../xilinx/ppc405-generic/xilinx_ppc405_generic.o diff --git a/board/xilinx/ppc440-generic/Makefile b/board/xilinx/ppc440-generic/Makefile index b2227c58a..0acd95d6e 100644 --- a/board/xilinx/ppc440-generic/Makefile +++ b/board/xilinx/ppc440-generic/Makefile @@ -9,9 +9,5 @@  # SPDX-License-Identifier:	GPL-2.0+  # -ifneq ($(OBJTREE),$(SRCTREE)) -$(shell mkdir -p $(obj)../../xilinx/ppc440-generic) -endif -  obj-y	+= ../../xilinx/ppc440-generic/xilinx_ppc440_generic.o  extra-y 	+= ../../xilinx/ppc440-generic/init.o diff --git a/drivers/bios_emulator/Makefile b/drivers/bios_emulator/Makefile index 9aa8ea902..6f74fdc23 100644 --- a/drivers/bios_emulator/Makefile +++ b/drivers/bios_emulator/Makefile @@ -1,7 +1,5 @@  X86DIR  = x86emu -$(shell mkdir -p $(obj)$(X86DIR)) -  obj-y = atibios.o biosemu.o besys.o bios.o \  	$(X86DIR)/decode.o \  	$(X86DIR)/ops2.o \ diff --git a/scripts/Makefile.build b/scripts/Makefile.build index 805c3c3e3..e3354aaa3 100644 --- a/scripts/Makefile.build +++ b/scripts/Makefile.build @@ -24,6 +24,13 @@ SRCS	+= $(wildcard $(obj-y:.o=.c) $(obj-y:.o=.S) $(lib-y:.o=.c) \  	$(lib-y:.o=.S) $(extra-y:.o=.c) $(extra-y:.o=.S))  OBJS	:= $(addprefix $(obj),$(obj-y)) +# $(obj-dirs) is a list of directories that contain object files +obj-dirs := $(dir $(OBJS)) + +# Create directories for object files if directory does not exist +# Needed when obj-y := dir/file.o syntax is used +_dummy := $(foreach d,$(obj-dirs), $(shell [ -d $(d) ] || mkdir -p $(d))) +  LGOBJS := $(addprefix $(obj),$(sort $(lib-y)))  all: $(LIB) $(addprefix $(obj),$(extra-y)) |