]> git.sur5r.net Git - u-boot/commitdiff
Makefile: make directories by Makefile.build
authorMasahiro Yamada <yamada.m@jp.panasonic.com>
Mon, 11 Nov 2013 05:35:54 +0000 (14:35 +0900)
committerTom Rini <trini@ti.com>
Sun, 17 Nov 2013 19:11:31 +0000 (14:11 -0500)
Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
68 files changed:
arch/powerpc/cpu/mpc512x/Makefile
arch/powerpc/cpu/mpc824x/Makefile
board/LaCie/edminiv2/Makefile
board/LaCie/net2big_v2/Makefile
board/LaCie/netspace_v2/Makefile
board/LaCie/wireless_space/Makefile
board/Marvell/db64360/Makefile
board/Marvell/db64460/Makefile
board/altera/nios2-generic/Makefile
board/avionic-design/medcom-wide/Makefile
board/avionic-design/plutux/Makefile
board/avionic-design/tec/Makefile
board/compal/paz00/Makefile
board/compulab/trimslice/Makefile
board/emk/top5200/Makefile
board/emk/top860/Makefile
board/esd/adciop/Makefile
board/esd/apc405/Makefile
board/esd/ar405/Makefile
board/esd/ash405/Makefile
board/esd/cms700/Makefile
board/esd/cpci2dp/Makefile
board/esd/cpci405/Makefile
board/esd/cpci5200/Makefile
board/esd/cpci750/Makefile
board/esd/cpciiser4/Makefile
board/esd/dasa_sim/Makefile
board/esd/dp405/Makefile
board/esd/du405/Makefile
board/esd/hh405/Makefile
board/esd/hub405/Makefile
board/esd/ocrtc/Makefile
board/esd/pci405/Makefile
board/esd/pf5200/Makefile
board/esd/plu405/Makefile
board/esd/pmc405/Makefile
board/esd/pmc405de/Makefile
board/esd/pmc440/Makefile
board/esd/voh405/Makefile
board/esd/vom405/Makefile
board/esd/wuh405/Makefile
board/keymile/km82xx/Makefile
board/keymile/km83xx/Makefile
board/keymile/km_arm/Makefile
board/keymile/kmp204x/Makefile
board/kup/kup4k/Makefile
board/kup/kup4x/Makefile
board/mpl/mip405/Makefile
board/mpl/pati/Makefile
board/mpl/pip405/Makefile
board/mpl/vcma9/Makefile
board/nvidia/beaver/Makefile
board/nvidia/ventana/Makefile
board/prodrive/p3mx/Makefile
board/psyent/pci5441/Makefile
board/psyent/pk1c20/Makefile
board/sandburst/karef/Makefile
board/sandburst/metrobox/Makefile
board/siemens/dxr2/Makefile
board/siemens/pxm2/Makefile
board/siemens/rut/Makefile
board/toradex/colibri_t20_iris/Makefile
board/tqc/tqm8260/Makefile
board/tqc/tqm8272/Makefile
board/xilinx/ppc405-generic/Makefile
board/xilinx/ppc440-generic/Makefile
drivers/bios_emulator/Makefile
scripts/Makefile.build

index f770350dc2819e71b0875aa0d243757c99c4a8fe..a4934ef78a0f27de04d756e516512c5ca2cdb561 100644 (file)
@@ -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
index 67b0d1713c3a5b818e7f657ce4b2d8cbcc5acd0c..194fadd0c009d9b7d800065dcb08a7b439ee3f41 100644 (file)
@@ -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
index 7ca06f5a79ba167e2fba99371353a889ed3d08ec..035f6865d96a860fbca7348b6108f450f8b9b712 100644 (file)
@@ -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
index 4fa08c51386c8382b8df4181a7a536a92b2ac39e..f3074af25646adbf534dc858300221756a90f1c4 100644 (file)
@@ -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
index e5357e4bc3fbb6bc0232b804ac73d34ff7919433..47778d84725cbb6c243e4c28873a84a546be542f 100644 (file)
@@ -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
index 11c535e99ac6f92d13358493f13e1ce4510ab033..90a84f489262b19bec4f96a8c04fdcec7739bfeb 100644 (file)
@@ -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
index aad4776b8853173533c6699057e9b8f4d5475a8e..aefe0a789afaee3a9ed161097245344358d1fa2d 100644 (file)
@@ -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
index ea9e57086e020dad50447c767c02a7ad80fb9f50..a970f9afde1418bd9efb212adae9952a67ce078f 100644 (file)
@@ -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
index 84c7bff80f7995e13940c16398c1bd47ca441c53..84690fe04d764768cb57f3ccf48cabec0cc41baa 100644 (file)
@@ -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
index 6c4ab643efc7a23e6d2e0c835b82bbdce27e5eaa..87e19123b0427f9cf8abf92bf3e7b7401a9de2fe 100644 (file)
@@ -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
index 6c4ab643efc7a23e6d2e0c835b82bbdce27e5eaa..87e19123b0427f9cf8abf92bf3e7b7401a9de2fe 100644 (file)
@@ -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
index 6c4ab643efc7a23e6d2e0c835b82bbdce27e5eaa..87e19123b0427f9cf8abf92bf3e7b7401a9de2fe 100644 (file)
@@ -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
index 824cd2ea1f7cad3db94805d0e28229b7d45bda11..b2d3b6b4b25d2b31b4c85d5af1a9f4c288905a84 100644 (file)
@@ -14,8 +14,6 @@
 # more details.
 #
 
-$(shell mkdir -p $(obj)../../nvidia/common)
-
 obj-y  := paz00.o
 
 include ../../nvidia/common/common.mk
index 0818673cbdc6ba37cd84796d30650105c161dbe8..f3bd00dbf18d1c042eb9f10a076792494203ceee 100644 (file)
@@ -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
index 0930d484fb24d00047d1b007271743c622d07c80..b455c26e17d1e99698b61ece4481a26c8e96a2d2 100644 (file)
@@ -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
index b2645f6347aecc435c0eb6b006cd2b81c1293c45..0401639ce37e7f32d07b51767a2bb6208a3bb999 100644 (file)
@@ -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
index a096e444181ad615da258c8b70057801b377f843..d0e264de923cc774521f16c22c24fd509d7bd962 100644 (file)
@@ -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
index c6ab1a5e216eb9e5603996c711a449d2f9f5a623..ada8bfd3d315d9e397a696210065a12ffa641124 100644 (file)
@@ -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
index 2d16313e8d69af15dd998496f0e066fdbe134e62..dd54f546a6c7a2268bc4146ddd979ecc88488937 100644 (file)
@@ -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
index 4c866ee0aaf67dc54ac7c11ad65b535df18f2515..aab8de44bcfb994e5d2cb1629a75a9f29890d588 100644 (file)
@@ -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 \
index 8cfe3baf797ec3484308afb9b4f34cf4a5538e50..2bf50066c4f907243b8677512fe1c54c829bab99 100644 (file)
@@ -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 \
index 1d1502071e0afa266d7bb3aed0b5246f8f5d4f48..ce2c6dd912fc4efd8ce1b4773718923b0af75401 100644 (file)
@@ -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
index 1af7e9454da116992ee0acf17df9e9f793d2d5dc..b140571796511601190da78f24385f4d197c4cac 100644 (file)
@@ -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
index fb6c0e20e400b1f5d1d9ec81858ecb3e2503aa0c..8421f548695c4386528fc51e4589181a7882e758 100644 (file)
@@ -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 \
index 8b3dc3370471efe71e4814be6bc2a119d6f83771..a3300c9f4ac5a1980f9e41ed8a3934c4744629f3 100644 (file)
@@ -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 \
index 4d3c34ae429f5ba9e65f4a7fe9bf17d42119ffe2..b8d6bea6dc7e897a8f6b2b5bd21789c8dd52980c 100644 (file)
@@ -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
index f0a5a8f09b9a1a889108c55d8995626c4d4c80aa..eb9f5f86d0df18e6786a1dbb73742ed6977e4b91 100644 (file)
@@ -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
index 6809c673ce7415656adead1fd69f42b8fae5b8cc..cfcfb66a15296b6e276b8112b0461a13ec17f88b 100644 (file)
@@ -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 \
index 12ce41a9a8977a6c57063af497de7f0444032187..7914eab3557178271363202439d257b683bd778b 100644 (file)
@@ -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
index 0507f1b4ddf02599d38e614fccf2b85e7d2a2976..fba21a3ae22d946cf0eb95ec25e5f8a1ab98cbf2 100644 (file)
@@ -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 \
index 5447a959c05acfc166dc5aceff540bdfb2042c74..99e18b567fd941cf5bd389dbd218ac34ca2232c9 100644 (file)
@@ -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 \
index 0d9a6fdc437fed686d799ef076b2c66effe449c4..44b7d5d072d9c67742f5fe728243ecc04261ea0d 100644 (file)
@@ -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
index 2f8706bd6e7051fbba74dad2ab52e5326b04380f..9e659c796c981bca7fed2880b83ada59583fc84e 100644 (file)
@@ -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
index a9d20c90b1c8c3619223564b199d9685e0bd3d5a..a54289c0733dea204b189547ea1b5a9d34e106fc 100644 (file)
@@ -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 \
index 45b962f69a33d9df152b3885b66de74f69190719..6ffae677b157073d1c5d0102e08d0303397e1bac 100644 (file)
@@ -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 \
index f4aa1c9eeafdce14862352c45ebae1e648e6f030..ad98207f3ee4897c199d04cab0c9a5309568f2ff 100644 (file)
@@ -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 \
index 7d5b273c0fb94ae73c89c553639ed3b145db0e5a..b3f6dcd1e7b2f121709e3d5cfa8cc77944fb2de8 100644 (file)
@@ -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
index b1318c7429d02e9622b023f69ad9ed58189b9a3c..708e9d138e2b10d868574a63b4cb55368b9a3e35 100644 (file)
@@ -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
index 8fcfa37dc02ff1bd462200ac125d6c13aa9277bc..3d82399ed16017bbfc0571a33d5bf03a915e0291 100644 (file)
@@ -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 \
index c8a4a4e4c7b1675c9603fd79dab7fb171908026f..7cf5c0224c28ca0db7177019110ab08f79d9728e 100644 (file)
@@ -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 \
index 046ebad30177a1ffb4d9ab7637b1c669270ec0b0..b9beeffc57cc31dc98ec57cf0121294277d0f95e 100644 (file)
@@ -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 \
index b44582fbeae742c367bd0d164fd9a7d62a74e4ff..20f193ab1d8b476a198c83c79af170d5251f8e2b 100644 (file)
@@ -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
index 7bdddf3bc303337d95c1dd56a759348169621d05..6c3268853e5fd72c0d64b0326c4e6bc411700237 100644 (file)
@@ -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
index 32eaa9357ffa9df817dbbf2c8fc216ef331ba923..a17d8d963a98c2618e156818e4122ffb67ca804e 100644 (file)
@@ -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
index c318e08a592b7d5c3397ad3c4a4a0352b575bb2b..3e69ee2f15e18401fccbce16c3f0e6571ecbe1e9 100644 (file)
@@ -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
index b3ad86ce187492f0d4d311440154a6559ccfbac2..c896fcd64d7b4d74fdcf2984a981cfc362b34608 100644 (file)
@@ -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
index 05a1afc3a9547c7d706e30e1779d94d717d4f4b5..6945943d09f2885d9f3a0e95d66341aa193f5a65 100644 (file)
@@ -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
index 509eb591b34cfc1d1389d75cc596b7aa1e1c4bea..5bcf1305014e8bfa0592c3523eec8e068b824e2f 100644 (file)
@@ -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 \
index 67381c108acc62de0c8d83754eedea460571b18e..98220826126bdd0266a68ba15e4572613c2285fe 100644 (file)
@@ -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
index 3d73cc3f8d6979900d73ad9771f83e20f86b8edf..0a3d059e9c0f5ef0b5309424dad16bab9ab41cbf 100644 (file)
@@ -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 \
index e0e96691c5fa76d367557b632e1f9b654d224413..175a19fa36751d567aa094f327a8ae697ca02cfe 100644 (file)
@@ -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
 
index f828f52c25462dd27b9084bcbe7581df13345f50..1f7c31d64b4e68da77477689882a77028c077476 100644 (file)
@@ -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
index 7265cfcccc81b2ce748397d8d60602c910af4d0d..f67044f2cf276e1dabeb29c04d3872267932d51b 100644 (file)
@@ -5,6 +5,4 @@
 # SPDX-License-Identifier:     GPL-2.0+
 #
 
-$(shell mkdir -p $(obj)../seaboard)
-
 obj-y  = ../seaboard/seaboard.o
index 43caffbc22838ca6f79eedb5d0ff5a2327aa7148..6ddda2296d310ee36fd4346797021ba228f60dd9 100644 (file)
@@ -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
index 9a66cfdfe81d0313f5e3bbfd25d18ac4c546d2cf..364f163e4fc9a4acfd974425a37f15fcc1b82517 100644 (file)
@@ -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
index 286db94aefdc50f30be0063d966645d7f00a905e..5450f93ac3ebdd905baa8900ec72f1fe00ebc1d5 100644 (file)
@@ -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
index 05c818791c4909c1325eb96841fea7cc52df2b45..f890008be22885f86ce712d94a1c6cee86718ca6 100644 (file)
@@ -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)
index 76dfffc9c7a3088a63ca9f2ea9e21f4ef8aef673..37d91a51a3a22f80c1d0e8356f3634c701b085b4 100644 (file)
@@ -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)
index 5129c6e3b148bbb33c2b08689b7238e18958a066..f15993216b7e466e97213017b9a0849d4617b965 100644 (file)
 # SPDX-License-Identifier:     GPL-2.0+
 #
 
-ifneq ($(OBJTREE),$(SRCTREE))
-$(shell mkdir -p $(obj)../common)
-endif
-
 ifdef CONFIG_SPL_BUILD
 obj-y  := mux.o
 endif
index 5129c6e3b148bbb33c2b08689b7238e18958a066..f15993216b7e466e97213017b9a0849d4617b965 100644 (file)
 # SPDX-License-Identifier:     GPL-2.0+
 #
 
-ifneq ($(OBJTREE),$(SRCTREE))
-$(shell mkdir -p $(obj)../common)
-endif
-
 ifdef CONFIG_SPL_BUILD
 obj-y  := mux.o
 endif
index 5129c6e3b148bbb33c2b08689b7238e18958a066..f15993216b7e466e97213017b9a0849d4617b965 100644 (file)
 # SPDX-License-Identifier:     GPL-2.0+
 #
 
-ifneq ($(OBJTREE),$(SRCTREE))
-$(shell mkdir -p $(obj)../common)
-endif
-
 ifdef CONFIG_SPL_BUILD
 obj-y  := mux.o
 endif
index 7ca3fe596f885d54449193cbe4749b2d6a472ecc..ebeac70ea14dccdc1ee074084ba96c1df278bfed 100644 (file)
@@ -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
index dc4a52808365e1b292f579dab27d7d21127429e3..6b8573d9abf71779a507ac544ebe74122a266e25 100644 (file)
@@ -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
index 09af765f05a5dbe115a5d9269ce2ab3bfcd7dae9..8bf02414e300e43edb30bde1e06bf994441bbd01 100644 (file)
@@ -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
index 1562f1775e608b163f521860e62ae6e8f1748e8f..c9da870657477df299f1708d593d2b704c037285 100644 (file)
@@ -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
index b2227c58a5230d723aa454e476aa0405764d0803..0acd95d6e4e2b01a54883f56837d67c6ee4b49c3 100644 (file)
@@ -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
index 9aa8ea9020674447191c941ade75a13dd4dd9241..6f74fdc23092056c4492e3514d5ab461e4e7df47 100644 (file)
@@ -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 \
index 805c3c3e3a51184dca744d1a4a44c70274dd0787..e3354aaa3ff31f4d509342c7fa6fa046135379c7 100644 (file)
@@ -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))