Skip to contentSkip to conversation

Third step towards Kbuild: Convert rest of makefiles

PATCH New Masahiro Yamada 5 participants 27 messages Oct 21, 2013 – Nov 4, 2013 Page 2 of 2

Subsystems (14)
lore
Share & tools
lore
#23 lore raw

PATCH 18/18 Makefile: convert makefiles to Kbuild style and delete grep switch

In reply to Masahiro Yamada

We have converted all makefiles needed to build $(LIBS).

Until this commit we used to grep switch so that U-Boot style and Kbuild style makefiles coexist.
But we do not need any more.

Goint forward, use always Kbuild style Makefile when adding a new Makefile

---
 Makefile                                  | 38 +++++--------------------------
 board/avionic-design/medcom-wide/Makefile | 22 +-----------------
 board/avionic-design/plutux/Makefile      | 22 +-----------------
 board/avionic-design/tec/Makefile         | 22 +-----------------
 board/avnet/fx12mm/Makefile               |  2 +-
 board/avnet/v5fx30teval/Makefile          |  2 +-
 board/compal/paz00/Makefile               | 22 +-----------------
 board/compulab/trimslice/Makefile         | 22 +-----------------
 board/nvidia/common/Makefile              | 26 ---------------------
 board/nvidia/common/common.mk             |  4 ++--
 board/xilinx/ml507/Makefile               |  2 +-
 board/xilinx/ppc405-generic/Makefile      | 21 +----------------
 board/xilinx/ppc440-generic/Makefile      | 23 ++-----------------
 spl/Makefile                              | 25 ++++----------------
 14 files changed, 23 insertions(+), 230 deletions(-)
Makefile +6 -32
index 0d27b5b..b255733 100644
@@ -558,32 +558,16 @@ ifeq ($(CONFIG_KALLSYMS),y)
 		$(GEN_UBOOT) $(obj)common/system_map.o
 endif
 
-# Tentative step for Kbuild-style makefiles coexist with conventional U-Boot style makefiles
-#  U-Boot conventional sub makefiles always include some other makefiles.
-#  So, the build system searches a line beginning with "include" before entering into the sub makefile
-#  in order to distinguish which style it is.
-#  If the Makefile include a "include" line, we assume it is an U-Boot style makefile.
-#  Otherwise, it is treated as a Kbuild-style makefile.
-select_makefile = \
-	+if grep -q "^include" $1/Makefile; then				\
-		$(MAKE) -C $1;						\
-	else								\
-		$(MAKE) -C $1 -f $(TOPDIR)/scripts/Makefile.build;	\
-		mv $(dir $@)built-in.o $@;				\
-	fi
-
-# We do not need to build $(OBJS) explicitly.
-# It is built while we are at $(CPUDIR)/lib$(CPU).o build.
-$(OBJS):	depend
-		if grep -q "^include" $(CPUDIR)/Makefile; then \
-			$(MAKE) -C $(CPUDIR) $(if $(REMOTE_BUILD),$@,$(notdir $@)); \
-		fi
+$(OBJS):
+	@:
 
 $(LIBS):	depend $(SUBDIR_TOOLS)
-		+$(call select_makefile, $(dir $(subst $(obj),,$@)))
+		$(MAKE) $(build) $(dir $(subst $(obj),,$@))
+		mv $(dir $@)built-in.o $@
 
 $(LIBBOARD):	depend $(LIBS)
-		+$(call select_makefile, $(dir $(subst $(obj),,$@)))
+		$(MAKE) $(build) $(dir $(subst $(obj),,$@))
+		mv $(dir $@)built-in.o $@
 
 $(SUBDIRS):	depend
 		$(MAKE) -C $@ all
@@ -611,13 +595,6 @@ $(obj)tpl/u-boot-tpl.bin:	$(SUBDIR_TOOLS) depend
 updater:
 		$(MAKE) -C tools/updater all
 
-select_makefile2 = \
-	if grep -q "^include" $1/Makefile; then					\
-		$(MAKE) -C $1 _depend;						\
-	else									\
-		$(MAKE) -C $1 -f $(TOPDIR)/scripts/Makefile.build _depend;	\
-	fi
-
 # Explicitly make _depend in subdirs containing multiple targets to prevent
 # parallel sub-makes creating .depend files simultaneously.
 depend dep:	$(TIMESTAMP_FILE) $(VERSION_FILE) \
@@ -626,9 +603,6 @@ depend dep:	$(TIMESTAMP_FILE) $(VERSION_FILE) \
 		$(obj)include/autoconf.mk \
 		$(obj)include/generated/generic-asm-offsets.h \
 		$(obj)include/generated/asm-offsets.h
-		+for dir in $(SUBDIRS) $(CPUDIR) $(LDSCRIPT_MAKEFILE_DIR) ; do \
-			$(call select_makefile2, $$dir); \
-		done
 
 TAG_SUBDIRS = $(SUBDIRS)
 TAG_SUBDIRS += $(dir $(__LIBS))
board/avionic-design/medcom-wide/Makefile +1 -21
index 3077319..6c4ab64 100644
@@ -7,28 +7,8 @@
 # SPDX-License-Identifier:	GPL-2.0+
 #
 
-include $(TOPDIR)/config.mk
-
 $(shell mkdir -p $(obj)../common $(obj)../../nvidia/common)
 
-LIB	= $(obj)lib$(BOARD).o
-
-COBJS-y	:= ../common/tamonten.o
+obj-y	:= ../common/tamonten.o
 
 include ../../nvidia/common/common.mk
-
-COBJS	:= $(COBJS-y)
-SRCS	:= $(COBJS:.o=.c)
-OBJS	:= $(addprefix $(obj),$(COBJS))
-
-$(LIB):	$(obj).depend $(OBJS)
-	$(call cmd_link_o_target, $(OBJS))
-
-#########################################################################
-
-# defines $(obj).depend target
-include $(SRCTREE)/rules.mk
-
-sinclude $(obj).depend
-
-#########################################################################
board/avionic-design/plutux/Makefile +1 -21
index 3077319..6c4ab64 100644
@@ -7,28 +7,8 @@
 # SPDX-License-Identifier:	GPL-2.0+
 #
 
-include $(TOPDIR)/config.mk
-
 $(shell mkdir -p $(obj)../common $(obj)../../nvidia/common)
 
-LIB	= $(obj)lib$(BOARD).o
-
-COBJS-y	:= ../common/tamonten.o
+obj-y	:= ../common/tamonten.o
 
 include ../../nvidia/common/common.mk
-
-COBJS	:= $(COBJS-y)
-SRCS	:= $(COBJS:.o=.c)
-OBJS	:= $(addprefix $(obj),$(COBJS))
-
-$(LIB):	$(obj).depend $(OBJS)
-	$(call cmd_link_o_target, $(OBJS))
-
-#########################################################################
-
-# defines $(obj).depend target
-include $(SRCTREE)/rules.mk
-
-sinclude $(obj).depend
-
-#########################################################################
board/avionic-design/tec/Makefile +1 -21
index 3077319..6c4ab64 100644
@@ -7,28 +7,8 @@
 # SPDX-License-Identifier:	GPL-2.0+
 #
 
-include $(TOPDIR)/config.mk
-
 $(shell mkdir -p $(obj)../common $(obj)../../nvidia/common)
 
-LIB	= $(obj)lib$(BOARD).o
-
-COBJS-y	:= ../common/tamonten.o
+obj-y	:= ../common/tamonten.o
 
 include ../../nvidia/common/common.mk
-
-COBJS	:= $(COBJS-y)
-SRCS	:= $(COBJS:.o=.c)
-OBJS	:= $(addprefix $(obj),$(COBJS))
-
-$(LIB):	$(obj).depend $(OBJS)
-	$(call cmd_link_o_target, $(OBJS))
-
-#########################################################################
-
-# defines $(obj).depend target
-include $(SRCTREE)/rules.mk
-
-sinclude $(obj).depend
-
-#########################################################################
board/avnet/fx12mm/Makefile +1 -1
index 2dd48b6..37fb02f 100644
@@ -6,6 +6,6 @@
 # SPDX-License-Identifier:	GPL-2.0+
 #
 
-COBJS	+= $(BOARD).o
+obj-y	+= fx12mm.o
 
 include $(SRCTREE)/board/xilinx/ppc405-generic/Makefile
board/avnet/v5fx30teval/Makefile +1 -1
index 51b777c..f7d0417 100644
@@ -6,6 +6,6 @@
 # SPDX-License-Identifier:	GPL-2.0+
 #
 
-COBJS	+= $(BOARD).o
+obj-y	+= v5fx30teval.o
 
 include $(SRCTREE)/board/xilinx/ppc440-generic/Makefile
board/compal/paz00/Makefile +1 -21
index fa5c510..824cd2e 100644
@@ -14,28 +14,8 @@
 # more details.
 #
 
-include $(TOPDIR)/config.mk
-
 $(shell mkdir -p $(obj)../../nvidia/common)
 
-LIB	= $(obj)lib$(BOARD).o
-
-COBJS-y	:= $(BOARD).o
+obj-y	:= paz00.o
 
 include ../../nvidia/common/common.mk
-
-COBJS	:= $(COBJS-y)
-SRCS	:= $(COBJS:.o=.c)
-OBJS	:= $(addprefix $(obj),$(COBJS))
-
-$(LIB):	$(obj).depend $(OBJS)
-	$(call cmd_link_o_target, $(OBJS))
-
-#########################################################################
-
-# defines $(obj).depend target
-include $(SRCTREE)/rules.mk
-
-sinclude $(obj).depend
-
-#########################################################################
board/compulab/trimslice/Makefile +1 -21
index 3ce180c..0818673 100644
@@ -5,28 +5,8 @@
 # SPDX-License-Identifier:	GPL-2.0+
 #
 
-include $(TOPDIR)/config.mk
-
 $(shell mkdir -p $(obj)../../nvidia/common)
 
-LIB	= $(obj)lib$(BOARD).o
-
-COBJS-y	:= $(BOARD).o
+obj-y	:= trimslice.o
 
 include ../../nvidia/common/common.mk
-
-COBJS	:= $(COBJS-y)
-SRCS	:= $(COBJS:.o=.c)
-OBJS	:= $(addprefix $(obj),$(COBJS))
-
-$(LIB):	$(obj).depend $(OBJS)
-	$(call cmd_link_o_target, $(OBJS))
-
-#########################################################################
-
-# defines $(obj).depend target
-include $(SRCTREE)/rules.mk
-
-sinclude $(obj).depend
-
-#########################################################################
board/nvidia/common/Makefile +0 -26
index 6215caf..e3fcf2b 100644
@@ -1,30 +1,4 @@
 # Copyright (c) 2011 The Chromium OS Authors.
 # SPDX-License-Identifier:	GPL-2.0+
 
-include $(TOPDIR)/config.mk
-
-ifneq ($(OBJTREE),$(SRCTREE))
-$(shell mkdir -p $(obj)board/$(VENDOR)/common)
-endif
-
-LIB	= $(obj)lib$(VENDOR).o
-
 include common.mk
-
-COBJS	:= $(COBJS-y)
-SRCS	:= $(SOBJS:.o=.S) $(COBJS:.o=.c)
-OBJS	:= $(addprefix $(obj),$(COBJS))
-SOBJS	:= $(addprefix $(obj),$(SOBJS))
-
-all:	$(LIB)
-
-$(LIB):	$(obj).depend $(OBJS) $(SOBJS)
-	$(call cmd_link_o_target, $(OBJS) $(SOBJS))
-
-#########################################################################
-# This is for $(obj).depend target
-include $(SRCTREE)/rules.mk
-
-sinclude $(obj).depend
-
-#########################################################################
board/nvidia/common/common.mk +2 -2
index d9bcb85..9a9b529 100644
@@ -1,3 +1,3 @@
 # common options for all tegra boards
-COBJS-y	+= ../../nvidia/common/board.o
-COBJS-$(CONFIG_TEGRA_CLOCK_SCALING) += ../../nvidia/common/emc.o
+obj-y	+= ../../nvidia/common/board.o
+obj-$(CONFIG_TEGRA_CLOCK_SCALING) += ../../nvidia/common/emc.o
board/xilinx/ml507/Makefile +1 -1
index 51b777c..3c84651 100644
@@ -6,6 +6,6 @@
 # SPDX-License-Identifier:	GPL-2.0+
 #
 
-COBJS	+= $(BOARD).o
+obj-y	+= ml507.o
 
 include $(SRCTREE)/board/xilinx/ppc440-generic/Makefile
board/xilinx/ppc405-generic/Makefile +1 -20
index cc161ae..1562f17 100644
@@ -9,27 +9,8 @@
 # SPDX-License-Identifier:	GPL-2.0+
 #
 
-include $(TOPDIR)/config.mk
 ifneq ($(OBJTREE),$(SRCTREE))
 $(shell mkdir -p $(obj)../../xilinx/ppc405-generic)
 endif
 
-LIB	= $(obj)lib$(BOARD).o
-
-COBJS	+= ../../xilinx/ppc405-generic/xilinx_ppc405_generic.o
-
-SRCS	:= $(SOBJS:.o=.S) $(COBJS:.o=.c)
-OBJS	:= $(addprefix $(obj),$(COBJS))
-SOBJS	:= $(addprefix $(obj),$(SOBJS))
-
-$(LIB):	$(obj).depend $(OBJS) $(SOBJS)
-	$(call cmd_link_o_target, $(OBJS))
-
-#########################################################################
-
-# defines $(obj).depend target
-include $(SRCTREE)/rules.mk
-
-sinclude $(obj).depend
-
-#########################################################################
+obj-y	+= ../../xilinx/ppc405-generic/xilinx_ppc405_generic.o
board/xilinx/ppc440-generic/Makefile +2 -21
index 597afde..b2227c5 100644
@@ -9,28 +9,9 @@
 # SPDX-License-Identifier:	GPL-2.0+
 #
 
-include $(TOPDIR)/config.mk
 ifneq ($(OBJTREE),$(SRCTREE))
 $(shell mkdir -p $(obj)../../xilinx/ppc440-generic)
 endif
 
-LIB	= $(obj)lib$(BOARD).o
-
-COBJS	+= ../../xilinx/ppc440-generic/xilinx_ppc440_generic.o
-SOBJS 	+= ../../xilinx/ppc440-generic/init.o
-
-SRCS	:= $(SOBJS:.o=.S) $(COBJS:.o=.c)
-OBJS	:= $(addprefix $(obj),$(COBJS))
-SOBJS	:= $(addprefix $(obj),$(SOBJS))
-
-$(LIB):	$(obj).depend $(OBJS) $(SOBJS)
-	$(call cmd_link_o_target, $(OBJS))
-
-#########################################################################
-
-# defines $(obj).depend target
-include $(SRCTREE)/rules.mk
-
-sinclude $(obj).depend
-
-#########################################################################
+obj-y	+= ../../xilinx/ppc440-generic/xilinx_ppc440_generic.o
+extra-y 	+= ../../xilinx/ppc440-generic/init.o
spl/Makefile +4 -21
index bf7271d..cbd3d27 100644
@@ -190,29 +190,12 @@ GEN_UBOOT = \
 $(obj)$(SPL_BIN):	depend $(START) $(LIBS) $(obj)u-boot-spl.lds
 	$(GEN_UBOOT)
 
-# Tentative step for Kbuild-style makefiles coexist with conventional U-Boot style makefiles
-#  U-Boot conventional sub makefiles always include some other makefiles.
-#  So, the build system searches a line beginning with "include" before entering into the sub makefile
-#  in order to distinguish which style it is.
-#  If the Makefile include a "include" line, we assume it is an U-Boot style makefile.
-#  Otherwise, it is treated as a Kbuild-style makefile.
-select_makefile = \
-	if grep -q "^include" $1/Makefile; then				\
-		$(MAKE) -C $1;						\
-	else								\
-		$(MAKE) -C $1 -f $(TOPDIR)/scripts/Makefile.build;	\
-		mv $(dir $@)built-in.o $@;				\
-	fi
-
-# We do not need to build $(START) explicitly.
-# It is built while we are at $(CPUDIR)/lib$(CPU).o build.
-$(START):	depend
-	if grep -q "^include" $(SRCTREE)$(dir $(subst $(SPLTREE),,$@))Makefile; then \
-		$(MAKE) -C $(SRCTREE)/$(START_PATH) $@; \
-	fi
+$(START):
+	@:
 
 $(LIBS):	depend
-	+$(call select_makefile, $(SRCTREE)$(dir $(subst $(SPLTREE),,$@)))
+	$(MAKE) $(build) $(SRCTREE)$(dir $(subst $(SPLTREE),,$@))
+	mv $(dir $@)built-in.o $@
 
 $(obj)u-boot-spl.lds: $(LDSCRIPT) depend
 	$(CPP) $(CPPFLAGS) $(LDPPFLAGS) -I$(obj). -ansi -D__ASSEMBLY__ -P - < $< > $@
Signature · 1 line
1.8.1.2
#24 lore raw

cover Third step towards Kbuild: Convert rest of makefiles

In reply to Masahiro Yamada

Dear Masahiro Yamada,

Quoted 135 lines

This series uses the followings as prerequisites:
- First step towards Kbuild: Use Kbuild style makefiles (19 patch files)
- Second step towards Kbuild: Descend down like Kbuild (6 patch files)

In 'First step towards Kbuild' series, I changed more than 150 makefiles. And in this series, I have changed the remainders, more than 600 makefiles.

After applying first step thru third step, all makefiles under arch/, board/, drivers/, api/, common/, disk/, dts/, fs/, lib/, net/, post/, test/
are converted to Kbuild style.

( doc/, tools/, nand_spl/, example/ have not been changed yet. I'm planning to convert these directories.
But I need something prepared before that: hostprogs-y, etc.)

Before converting makefiles to Kbuild style,
I want to fix some makefile.
This is done in 01/18 and 02/18.

01/18 fixes the link error of sparc architecture. Please see the snippet of arch/sparc/lib/Makefile:

    LIB     = $(obj)lib$(ARCH).o

    SOBJS   =

    COBJS   = board.o cache.o interrupts.o time.o
    COBJS-$(CONFIG_CMD_BOOTM) += bootm.o

    SRCS    := $(SOBJS:.o=.S) $(COBJS:.o=.c)
    OBJS    := $(addprefix $(obj),$(SOBJS) $(COBJS))

    $(LIB): $(obj).depend $(OBJS)
            $(call cmd_link_o_target, $(OBJS))

Both COBJS and COBJS-y are used.
But this makefile missed to add $(COBJS-y) to OBJS. So, bootm.o is never compiled.

Here, you will notice the advantage of switching to Kbuild style.

Makefiles in sub-directories have very similar form. But there exists a slight difference for each Makefile.

For ex. some makefiles use COBJS and the others use COBJS-y. Some use both of them mixed, and sometimes a mistake like above happens. We should use consistently use obj-y, for both C and Assembler objects.

02/18 fixes arch/sh/cpu/{sh2,sh3,sh4}/Makefile.
The snippet is as follows:

    LIB     = $(obj)lib$(CPU).o

    SOBJS   = start.o
    COBJS   = cpu.o interrupts.o watchdog.o

    SRCS    := $(SOBJS:.o=.S) $(COBJS:.o=.c)
    OBJS    := $(addprefix $(obj),$(COBJS))
    SOBJS   := $(addprefix $(obj),$(SOBJS))

    $(LIB): $(OBJS) $(SOBJS)
            $(call cmd_link_o_target, $(OBJS) $(SOBJS))

start.o is linked into lib$(CPU).o, but it shouldn't.

03/18 thru 15/18 convert arch-specific, board-specific makefiles.

16/18, 17/18 convert commonly used directories.

16/18 shows another big advantage of switching to Kbuild style. Check how simply post/Makefile was re-written by using
obj-$(CONFIG-FOO) += foo/
systax.

18/18 convert the rest of makefiles and abolishes the support for U-Boot conventional makefile.
After this commit, we cannot use U-Boot style makefiles any more. (exception: doc/, tools/, nand_spl/, example/ directory) Going forward, we must use only Kbuild style makefiles. Take care when you add a new makefile!

Of course, I tested carefully this series.
I built as many boards as possible over all architectures.

Here is the site I downloaded the prebuilt crosstools from:

- arm, avr32, m68k, mips, openrisc, powerpc, x86:

      ftp://ftp.kernel.org/pub/tools/crosstool/files/bin/x86_64/

- blackfin, microblaze, nds32, nios2, sh, sparc:

      http://dev.gentoo.org/~vapier/u-boot/

I could not build some boards because the boards are already broken before this series or the crosstools are not suitable. But I could build more than 1100 target boards and
I confirmed this series does no harm.

- 02 thru 18 did not break any boards.
- 02 thru 15 and 17, 18 did not change output ELF files at all. This was check by comparing md5sum.
- It was difficult to simply compare md5sum for patch 16 because it changes how the objects are linked under post/ directory. But I confirmed 16 did not change the section size.

Note:
For comparing md5sum, there are some items you should take into account:
Disabling time stamp, version, compiling in the same path, linking the objects in the same order...
For detailed, refer to
[U-Boot] [PATCH 00/19] First step towards Kbuild: Use Kbuild style makefiles Message-Id: <[email protected]>

Note2:
I confirmed this series can be applied on
v2013.10 tag
+ First step towards Kbuild: Use Kbuild style makefiles (19 patch files)
+ Second step towards Kbuild: Descend down like Kbuild (6 patch files)

Cc Simon Glass <[email protected]>
Cc Tom Rini <[email protected]>
Cc Wolfgang Denk <[email protected]>
Cc Gerhard Sittig <[email protected]>

[...]

#25 lore raw

cover Third step towards Kbuild: Convert rest of makefiles

In reply to Masahiro Yamada

Dear Masahiro Yamada,
Dear Tom Rini,

On 10/21/2013 04:53 AM, Masahiro Yamada wrote:

<snip cover letter for Kbuild introduction>

what is the time line for integrating Kbuild?

I have some changes which would also touch makefiles and wonder if I should wait for Kbuild integration.

Best regards

Andreas Bie?mann

#26 lore raw

cover Third step towards Kbuild: Convert rest of makefiles

In reply to Masahiro Yamada
Quoted 768 lines · Masahiro Yamada

This series uses the followings as prerequisites:
- First step towards Kbuild: Use Kbuild style makefiles (19 patch files)
- Second step towards Kbuild: Descend down like Kbuild (6 patch files)

In 'First step towards Kbuild' series, I changed more than 150 makefiles. And in this series, I have changed the remainders, more than 600 makefiles.

After applying first step thru third step, all makefiles under arch/, board/, drivers/, api/, common/, disk/, dts/, fs/, lib/, net/, post/, test/
are converted to Kbuild style.

( doc/, tools/, nand_spl/, example/ have not been changed yet. I'm planning to convert these directories.
But I need something prepared before that: hostprogs-y, etc.)

Before converting makefiles to Kbuild style,
I want to fix some makefile.
This is done in 01/18 and 02/18.

01/18 fixes the link error of sparc architecture. Please see the snippet of arch/sparc/lib/Makefile:

    LIB     = $(obj)lib$(ARCH).o

    SOBJS   =

    COBJS   = board.o cache.o interrupts.o time.o
    COBJS-$(CONFIG_CMD_BOOTM) += bootm.o

    SRCS    := $(SOBJS:.o=.S) $(COBJS:.o=.c)
    OBJS    := $(addprefix $(obj),$(SOBJS) $(COBJS))

    $(LIB): $(obj).depend $(OBJS)
            $(call cmd_link_o_target, $(OBJS))

Both COBJS and COBJS-y are used.
But this makefile missed to add $(COBJS-y) to OBJS. So, bootm.o is never compiled.

Here, you will notice the advantage of switching to Kbuild style.

Makefiles in sub-directories have very similar form. But there exists a slight difference for each Makefile.

For ex. some makefiles use COBJS and the others use COBJS-y. Some use both of them mixed, and sometimes a mistake like above happens. We should use consistently use obj-y, for both C and Assembler objects.

02/18 fixes arch/sh/cpu/{sh2,sh3,sh4}/Makefile.
The snippet is as follows:

    LIB     = $(obj)lib$(CPU).o

    SOBJS   = start.o
    COBJS   = cpu.o interrupts.o watchdog.o

    SRCS    := $(SOBJS:.o=.S) $(COBJS:.o=.c)
    OBJS    := $(addprefix $(obj),$(COBJS))
    SOBJS   := $(addprefix $(obj),$(SOBJS))

    $(LIB): $(OBJS) $(SOBJS)
            $(call cmd_link_o_target, $(OBJS) $(SOBJS))

start.o is linked into lib$(CPU).o, but it shouldn't.

03/18 thru 15/18 convert arch-specific, board-specific makefiles.

16/18, 17/18 convert commonly used directories.

16/18 shows another big advantage of switching to Kbuild style. Check how simply post/Makefile was re-written by using
obj-$(CONFIG-FOO) += foo/
systax.

18/18 convert the rest of makefiles and abolishes the support for U-Boot conventional makefile.
After this commit, we cannot use U-Boot style makefiles any more. (exception: doc/, tools/, nand_spl/, example/ directory) Going forward, we must use only Kbuild style makefiles. Take care when you add a new makefile!

Of course, I tested carefully this series.
I built as many boards as possible over all architectures.

Here is the site I downloaded the prebuilt crosstools from:

- arm, avr32, m68k, mips, openrisc, powerpc, x86:

      ftp://ftp.kernel.org/pub/tools/crosstool/files/bin/x86_64/

- blackfin, microblaze, nds32, nios2, sh, sparc:

      http://dev.gentoo.org/~vapier/u-boot/

I could not build some boards because the boards are already broken before this series or the crosstools are not suitable. But I could build more than 1100 target boards and
I confirmed this series does no harm.

- 02 thru 18 did not break any boards.
- 02 thru 15 and 17, 18 did not change output ELF files at all. This was check by comparing md5sum.
- It was difficult to simply compare md5sum for patch 16 because it changes how the objects are linked under post/ directory. But I confirmed 16 did not change the section size.

Note:
For comparing md5sum, there are some items you should take into account:
Disabling time stamp, version, compiling in the same path, linking the objects in the same order...
For detailed, refer to
[U-Boot] [PATCH 00/19] First step towards Kbuild: Use Kbuild style makefiles
Message-Id: <[email protected]>

Note2:
I confirmed this series can be applied on
v2013.10 tag
+ First step towards Kbuild: Use Kbuild style makefiles (19 patch files)
+ Second step towards Kbuild: Descend down like Kbuild (6 patch files)

Cc Simon Glass <[email protected]>
Cc Tom Rini <[email protected]>
Cc Wolfgang Denk <[email protected]>
Cc Gerhard Sittig <[email protected]>

Masahiro Yamada (18):
sparc: fix a link error
sh: Do not include start.o in lib$(CPU).o
sparc: convert makefiles to Kbuild style
sh: convert makefiles to Kbuild style
avr32: convert makefiles to Kbuild style
openrisc: convert makefiles to Kbuild style
microblaze: convert makefiles to Kbuild style
mips: convert makefiles to Kbuild style
nds32: convert makefiles to Kbuild style
nios2: convert makefiles to Kbuild style
x86: convert makefiles to Kbuild style
m68k: convert makefiles to Kbuild style
blackfin: convert makefiles to Kbuild style
board: arm: convert makefiles to Kbuild style
board: powerpc: convert makefiles to Kbuild style
post: convert makefiles to Kbuild style
dts,api,test: convert makefiles to Kbuild style
Makefile: convert makefiles to Kbuild style and delete grep switch

 Makefile                                      | 40 +++----------
 api/Makefile                                  | 18 +-----
 arch/avr32/cpu/Makefile                       | 40 +++----------
 arch/avr32/cpu/at32ap700x/Makefile            | 22 +------
 arch/avr32/lib/Makefile                       | 28 ++-------
 arch/blackfin/cpu/Makefile                    | 54 +++++------------
 arch/blackfin/lib/Makefile                    | 52 +++++-----------
 arch/m68k/cpu/mcf5227x/Makefile               | 25 +-------
 arch/m68k/cpu/mcf523x/Makefile                | 25 +-------
 arch/m68k/cpu/mcf52x2/Makefile                | 26 +-------
 arch/m68k/cpu/mcf532x/Makefile                | 25 +-------
 arch/m68k/cpu/mcf5445x/Makefile               | 25 +-------
 arch/m68k/cpu/mcf547x_8x/Makefile             | 25 +-------
 arch/m68k/lib/Makefile                        | 33 ++--------
 arch/microblaze/cpu/Makefile                  | 28 +--------
 arch/microblaze/lib/Makefile                  | 27 +--------
 arch/mips/cpu/mips32/Makefile                 | 28 +--------
 arch/mips/cpu/mips32/au1x00/Makefile          | 23 +------
 arch/mips/cpu/mips32/incaip/Makefile          | 25 +-------
 arch/mips/cpu/mips64/Makefile                 | 24 +-------
 arch/mips/cpu/xburst/Makefile                 | 30 +---------
 arch/mips/lib/Makefile                        | 44 ++------------
 arch/nds32/cpu/n1213/Makefile                 | 24 +-------
 arch/nds32/cpu/n1213/ag101/Makefile           | 27 +--------
 arch/nds32/cpu/n1213/ag102/Makefile           | 27 +--------
 arch/nds32/lib/Makefile                       | 27 ++-------
 arch/nios2/cpu/Makefile                       | 30 ++--------
 arch/nios2/lib/Makefile                       | 30 ++--------
 arch/openrisc/cpu/Makefile                    | 26 +-------
 arch/openrisc/lib/Makefile                    | 27 +--------
 arch/sh/cpu/sh2/Makefile                      | 24 +-------
 arch/sh/cpu/sh3/Makefile                      | 24 +-------
 arch/sh/cpu/sh4/Makefile                      | 24 +-------
 arch/sh/lib/Makefile                          | 56 ++++-------------
 arch/sparc/cpu/leon2/Makefile                 | 27 +--------
 arch/sparc/cpu/leon3/Makefile                 | 27 +--------
 arch/sparc/lib/Makefile                       | 25 +-------
 arch/x86/config.mk                            |  2 +-
 arch/x86/cpu/Makefile                         | 28 +--------
 arch/x86/cpu/coreboot/Makefile                | 35 +++--------
 arch/x86/lib/Makefile                         | 56 ++++++-----------
 board/8dtech/eco5pk/Makefile                  | 19 +-----
 board/AndesTech/adp-ag101/Makefile            | 21 +------
 board/AndesTech/adp-ag101p/Makefile           | 21 +------
 board/AndesTech/adp-ag102/Makefile            | 21 +------
 board/Barix/ipam390/Makefile                  | 21 +------
 board/BuS/eb_cpu5282/Makefile                 | 22 +------
 board/BuS/eb_cpux9k2/Makefile                 | 22 +------
 board/BuS/vl_ma2sc/Makefile                   | 22 +------
 board/CarMediaLab/flea3/Makefile              | 30 +---------
 board/LEOX/elpt860/Makefile                   | 22 +------
 board/LaCie/edminiv2/Makefile                 | 20 +------
 board/LaCie/net2big_v2/Makefile               | 29 +--------
 board/LaCie/netspace_v2/Makefile              | 21 +------
 board/LaCie/wireless_space/Makefile           | 21 +------
 board/Marvell/aspenite/Makefile               | 22 +------
 board/Marvell/db64360/Makefile                | 25 +-------
 board/Marvell/db64460/Makefile                | 25 +-------
 board/Marvell/dkb/Makefile                    | 22 +------
 board/Marvell/dreamplug/Makefile              | 28 +--------
 board/Marvell/gplugd/Makefile                 | 22 +------
 board/Marvell/guruplug/Makefile               | 22 +------
 board/Marvell/mv88f6281gtw_ge/Makefile        | 22 +------
 board/Marvell/openrd/Makefile                 | 22 +------
 board/Marvell/rd6281a/Makefile                | 22 +------
 board/Marvell/sheevaplug/Makefile             | 22 +------
 board/RPXClassic/Makefile                     | 22 +------
 board/RPXlite/Makefile                        | 22 +------
 board/RPXlite_dw/Makefile                     | 22 +------
 board/RRvision/Makefile                       | 22 +------
 board/Seagate/dockstar/Makefile               | 22 +------
 board/Seagate/goflexhome/Makefile             | 22 +------
 board/a3000/Makefile                          | 22 +------
 board/a3m071/Makefile                         | 22 +------
 board/a4m072/Makefile                         | 22 +------
 board/actux1/Makefile                         | 22 +------
 board/actux2/Makefile                         | 22 +------
 board/actux3/Makefile                         | 22 +------
 board/actux4/Makefile                         | 22 +------
 board/adder/Makefile                          | 22 +------
 board/afeb9260/Makefile                       | 24 +-------
 board/ait/cam_enc_4xx/Makefile                | 22 +------
 board/alphaproject/ap_sh4a_4a/Makefile        | 24 +-------
 board/altera/nios2-generic/Makefile           | 30 ++--------
 board/altera/socfpga/Makefile                 | 30 +---------
 board/amcc/acadia/Makefile                    | 23 +------
 board/amcc/bamboo/Makefile                    | 26 +-------
 board/amcc/bluestone/Makefile                 | 27 +--------
 board/amcc/bubinga/Makefile                   | 22 +------
 board/amcc/canyonlands/Makefile               | 29 +--------
 board/amcc/ebony/Makefile                     | 24 +-------
 board/amcc/katmai/Makefile                    | 27 +--------
 board/amcc/kilauea/Makefile                   | 24 +-------
 board/amcc/luan/Makefile                      | 24 +-------
 board/amcc/makalu/Makefile                    | 23 +------
 board/amcc/ocotea/Makefile                    | 24 +-------
 board/amcc/redwood/Makefile                   | 23 +------
 board/amcc/sequoia/Makefile                   | 29 +--------
 board/amcc/taihu/Makefile                     | 21 +------
 board/amcc/taishan/Makefile                   | 24 +-------
 board/amcc/walnut/Makefile                    | 22 +------
 board/amcc/yosemite/Makefile                  | 24 +-------
 board/amcc/yucca/Makefile                     | 24 +-------
 board/armadeus/apf27/Makefile                 | 27 +--------
 board/armltd/integrator/Makefile              | 28 ++-------
 board/armltd/versatile/Makefile               | 24 +-------
 board/armltd/vexpress/Makefile                | 21 +------
 board/astro/mcf5373l/Makefile                 | 22 +------
 board/atc/Makefile                            | 22 +------
 board/atmark-techno/armadillo-800eva/Makefile | 27 +--------
 board/atmel/at91rm9200ek/Makefile             | 24 +-------
 board/atmel/at91sam9260ek/Makefile            | 26 +-------
 board/atmel/at91sam9261ek/Makefile            | 26 +-------
 board/atmel/at91sam9263ek/Makefile            | 26 +-------
 board/atmel/at91sam9m10g45ek/Makefile         | 24 +-------
 board/atmel/at91sam9n12ek/Makefile            | 22 +------
 board/atmel/at91sam9rlek/Makefile             | 26 +-------
 board/atmel/at91sam9x5ek/Makefile             | 22 +------
 board/atmel/atngw100/Makefile                 | 21 +------
 board/atmel/atngw100mkii/Makefile             | 21 +------
 board/atmel/atstk1000/Makefile                | 21 +------
 board/atmel/sama5d3xek/Makefile               | 22 +------
 board/avionic-design/medcom-wide/Makefile     | 22 +------
 board/avionic-design/plutux/Makefile          | 22 +------
 board/avionic-design/tec/Makefile             | 22 +------
 board/avnet/fx12mm/Makefile                   |  2 +-
 board/avnet/v5fx30teval/Makefile              |  2 +-
 board/balloon3/Makefile                       | 21 +------
 board/bc3450/Makefile                         | 22 +------
 board/bct-brettl2/Makefile                    | 20 +------
 board/bf506f-ezkit/Makefile                   | 22 +------
 board/bf518f-ezbrd/Makefile                   | 22 +------
 board/bf525-ucr2/Makefile                     | 22 +------
 board/bf526-ezbrd/Makefile                    | 22 +------
 board/bf527-ad7160-eval/Makefile              | 22 +------
 board/bf527-ezkit/Makefile                    | 24 +-------
 board/bf527-sdp/Makefile                      | 22 +------
 board/bf533-ezkit/Makefile                    | 22 +------
 board/bf533-stamp/Makefile                    | 26 +-------
 board/bf537-minotaur/Makefile                 | 22 +------
 board/bf537-pnav/Makefile                     | 22 +------
 board/bf537-srv1/Makefile                     | 22 +------
 board/bf537-stamp/Makefile                    | 26 +-------
 board/bf538f-ezkit/Makefile                   | 22 +------
 board/bf548-ezkit/Makefile                    | 24 +-------
 board/bf561-acvilon/Makefile                  | 22 +------
 board/bf561-ezkit/Makefile                    | 22 +------
 board/bf609-ezkit/Makefile                    | 30 +---------
 board/blackstamp/Makefile                     | 22 +------
 board/blackvme/Makefile                       | 22 +------
 board/bluegiga/apx4devkit/Makefile            | 23 +------
 board/bluewater/snapper9260/Makefile          | 22 +------
 board/boundary/nitrogen6x/Makefile            | 21 +------
 board/br4/Makefile                            | 22 +------
 board/buffalo/lsxl/Makefile                   | 22 +------
 board/calao/sbc35_a9g20/Makefile              | 24 +-------
 board/calao/tny_a9260/Makefile                | 24 +-------
 board/canmb/Makefile                          | 25 +-------
 board/chromebook-x86/coreboot/Makefile        | 21 +------
 board/cloudengines/pogo_e02/Makefile          | 22 +------
 board/cm-bf527/Makefile                       | 22 +------
 board/cm-bf533/Makefile                       | 22 +------
 board/cm-bf537e/Makefile                      | 22 +------
 board/cm-bf537u/Makefile                      | 22 +------
 board/cm-bf548/Makefile                       | 24 +-------
 board/cm-bf561/Makefile                       | 22 +------
 board/cm4008/Makefile                         | 22 +------
 board/cm41xx/Makefile                         | 22 +------
 board/cm5200/Makefile                         | 22 +------
 board/cmi/Makefile                            | 22 +------
 board/cobra5272/Makefile                      | 22 +------
 board/cogent/Makefile                         | 22 +------
 board/comelit/dig297/Makefile                 | 21 +------
 board/compal/paz00/Makefile                   | 22 +------
 board/compulab/cm_t35/Makefile                | 25 +-------
 board/compulab/trimslice/Makefile             | 22 +------
 board/congatec/cgtqmx6eval/Makefile           | 21 +------
 board/corscience/tricorder/Makefile           | 21 +------
 board/cpc45/Makefile                          | 22 +------
 board/cpu86/Makefile                          | 22 +------
 board/cpu87/Makefile                          | 22 +------
 board/cray/L1/Makefile                        | 30 +---------
 board/creative/xfi3/Makefile                  | 23 +------
 board/csb272/Makefile                         | 27 +--------
 board/csb472/Makefile                         | 27 +--------
 board/cu824/Makefile                          | 22 +------
 board/d-link/dns325/Makefile                  | 22 +------
 board/dave/PPChameleonEVB/Makefile            | 22 +------
 board/davedenx/aria/Makefile                  | 23 +------
 board/davedenx/qong/Makefile                  | 24 +-------
 board/davinci/da8xxevm/Makefile               | 27 +--------
 board/davinci/dm355evm/Makefile               | 22 +------
 board/davinci/dm355leopard/Makefile           | 22 +------
 board/davinci/dm365evm/Makefile               | 22 +------
 board/davinci/dm6467evm/Makefile              | 22 +------
 board/davinci/dvevm/Makefile                  | 23 +------
 board/davinci/ea20/Makefile                   | 23 +------
 board/davinci/schmoogie/Makefile              | 23 +------
 board/davinci/sffsdr/Makefile                 | 23 +------
 board/davinci/sonata/Makefile                 | 23 +------
 board/dbau1x00/Makefile                       | 24 +-------
 board/denx/m28evk/Makefile                    | 23 +------
 board/denx/m53evk/Makefile                    | 21 +------
 board/dnp5370/Makefile                        | 22 +------
 board/dvlhost/Makefile                        | 22 +------
 board/eXalion/Makefile                        | 22 +------
 board/earthlcd/favr-32-ezkit/Makefile         | 21 +------
 board/egnite/ethernut5/Makefile               | 24 +-------
 board/eltec/elppc/Makefile                    | 25 +-------
 board/eltec/mhpc/Makefile                     | 22 +------
 board/emk/top5200/Makefile                    | 21 +------
 board/emk/top860/Makefile                     | 22 +------
 board/emk/top9000/Makefile                    | 24 +-------
 board/enbw/enbw_cmc/Makefile                  | 21 +------
 board/ep8248/Makefile                         | 22 +------
 board/ep8260/Makefile                         | 22 +------
 board/ep82xxm/Makefile                        | 21 +------
 board/esd/adciop/Makefile                     | 21 +------
 board/esd/apc405/Makefile                     | 21 +------
 board/esd/ar405/Makefile                      | 21 +------
 board/esd/ash405/Makefile                     | 21 +------
 board/esd/cms700/Makefile                     | 21 +------
 board/esd/cpci2dp/Makefile                    | 21 +------
 board/esd/cpci405/Makefile                    | 23 +------
 board/esd/cpci5200/Makefile                   | 23 +------
 board/esd/cpci750/Makefile                    | 24 +-------
 board/esd/cpciiser4/Makefile                  | 21 +------
 board/esd/dasa_sim/Makefile                   | 21 +------
 board/esd/dp405/Makefile                      | 21 +------
 board/esd/du405/Makefile                      | 21 +------
 board/esd/du440/Makefile                      | 26 +-------
 board/esd/hh405/Makefile                      | 21 +------
 board/esd/hub405/Makefile                     | 21 +------
 board/esd/mecp5123/Makefile                   | 23 +------
 board/esd/mecp5200/Makefile                   | 22 +------
 board/esd/meesc/Makefile                      | 24 +-------
 board/esd/ocrtc/Makefile                      | 21 +------
 board/esd/otc570/Makefile                     | 24 +-------
 board/esd/pci405/Makefile                     | 24 +-------
 board/esd/pf5200/Makefile                     | 23 +------
 board/esd/plu405/Makefile                     | 21 +------
 board/esd/pmc405/Makefile                     | 21 +------
 board/esd/pmc405de/Makefile                   | 26 +-------
 board/esd/pmc440/Makefile                     | 26 +-------
 board/esd/tasreg/Makefile                     | 22 +------
 board/esd/vme8349/Makefile                    | 25 +-------
 board/esd/voh405/Makefile                     | 21 +------
 board/esd/vom405/Makefile                     | 21 +------
 board/esd/wuh405/Makefile                     | 21 +------
 board/esg/ima3-mx53/Makefile                  | 21 +------
 board/espt/Makefile                           | 24 +-------
 board/esteem192e/Makefile                     | 22 +------
 board/etin/debris/Makefile                    | 22 +------
 board/etin/kvme080/Makefile                   | 22 +------
 board/eukrea/cpu9260/Makefile                 | 24 +-------
 board/eukrea/cpuat91/Makefile                 | 22 +------
 board/evb64260/Makefile                       | 24 +-------
 board/exmeritus/hww1u1a/Makefile              | 28 ++-------
 board/fads/Makefile                           | 22 +------
 board/faraday/a320evb/Makefile                | 24 +-------
 board/flagadm/Makefile                        | 22 +------
 board/freescale/b4860qds/Makefile             | 38 ++----------
 board/freescale/bsc9131rdb/Makefile           | 38 ++----------
 board/freescale/bsc9132qds/Makefile           | 37 ++----------
 board/freescale/c29xpcie/Makefile             | 30 ++--------
 board/freescale/common/Makefile               | 86 +++++++++------------------
 board/freescale/common/p_corenet/Makefile     | 11 ++--
 board/freescale/corenet_ds/Makefile           | 40 ++++---------
 board/freescale/m5208evbe/Makefile            | 22 +------
 board/freescale/m52277evb/Makefile            | 22 +------
 board/freescale/m5235evb/Makefile             | 22 +------
 board/freescale/m5249evb/Makefile             | 22 +------
 board/freescale/m5253demo/Makefile            | 22 +------
 board/freescale/m5253evbe/Makefile            | 22 +------
 board/freescale/m5271evb/Makefile             | 22 +------
 board/freescale/m5272c3/Makefile              | 22 +------
 board/freescale/m5275evb/Makefile             | 22 +------
 board/freescale/m5282evb/Makefile             | 22 +------
 board/freescale/m53017evb/Makefile            | 22 +------
 board/freescale/m5329evb/Makefile             | 22 +------
 board/freescale/m5373evb/Makefile             | 22 +------
 board/freescale/m54418twr/Makefile            | 22 +------
 board/freescale/m54451evb/Makefile            | 22 +------
 board/freescale/m54455evb/Makefile            | 22 +------
 board/freescale/m547xevb/Makefile             | 22 +------
 board/freescale/m548xevb/Makefile             | 22 +------
 board/freescale/mpc5121ads/Makefile           | 25 +-------
 board/freescale/mpc7448hpc2/Makefile          | 24 +-------
 board/freescale/mpc8260ads/Makefile           | 22 +------
 board/freescale/mpc8266ads/Makefile           | 22 +------
 board/freescale/mpc8308rdb/Makefile           | 22 +------
 board/freescale/mpc8313erdb/Makefile          | 22 +------
 board/freescale/mpc8315erdb/Makefile          | 22 +------
 board/freescale/mpc8323erdb/Makefile          | 22 +------
 board/freescale/mpc832xemds/Makefile          | 25 +-------
 board/freescale/mpc8349emds/Makefile          | 27 +--------
 board/freescale/mpc8349itx/Makefile           | 24 +-------
 board/freescale/mpc8360emds/Makefile          | 25 +-------
 board/freescale/mpc8360erdk/Makefile          | 25 +-------
 board/freescale/mpc837xemds/Makefile          | 25 +-------
 board/freescale/mpc837xerdb/Makefile          | 25 +-------
 board/freescale/mpc8536ds/Makefile            | 28 ++-------
 board/freescale/mpc8540ads/Makefile           | 28 ++-------
 board/freescale/mpc8541cds/Makefile           | 28 ++-------
 board/freescale/mpc8544ds/Makefile            | 28 ++-------
 board/freescale/mpc8548cds/Makefile           | 28 ++-------
 board/freescale/mpc8555cds/Makefile           | 28 ++-------
 board/freescale/mpc8560ads/Makefile           | 28 ++-------
 board/freescale/mpc8568mds/Makefile           | 30 ++--------
 board/freescale/mpc8569mds/Makefile           | 30 ++--------
 board/freescale/mpc8572ds/Makefile            | 28 ++-------
 board/freescale/mpc8610hpcd/Makefile          | 29 ++-------
 board/freescale/mpc8641hpcn/Makefile          | 26 +-------
 board/freescale/mx23evk/Makefile              | 23 +------
 board/freescale/mx25pdk/Makefile              | 24 +-------
 board/freescale/mx28evk/Makefile              | 23 +------
 board/freescale/mx31ads/Makefile              | 24 +-------
 board/freescale/mx31pdk/Makefile              | 24 +-------
 board/freescale/mx35pdk/Makefile              | 24 +-------
 board/freescale/mx51evk/Makefile              | 24 +-------
 board/freescale/mx53ard/Makefile              | 21 +------
 board/freescale/mx53evk/Makefile              | 21 +------
 board/freescale/mx53loco/Makefile             | 24 +-------
 board/freescale/mx53smd/Makefile              | 21 +------
 board/freescale/mx6qarm2/Makefile             | 21 +------
 board/freescale/mx6qsabreauto/Makefile        | 21 +------
 board/freescale/mx6sabresd/Makefile           | 21 +------
 board/freescale/mx6slevk/Makefile             | 21 +------
 board/freescale/p1010rdb/Makefile             | 30 ++--------
 board/freescale/p1022ds/Makefile              | 34 +++--------
 board/freescale/p1023rdb/Makefile             | 28 ++-------
 board/freescale/p1023rds/Makefile             | 26 +-------
 board/freescale/p1_p2_rdb/Makefile            | 30 ++--------
 board/freescale/p1_p2_rdb_pc/Makefile         | 30 ++--------
 board/freescale/p1_twr/Makefile               | 34 ++---------
 board/freescale/p2020come/Makefile            | 28 ++-------
 board/freescale/p2020ds/Makefile              | 28 ++-------
 board/freescale/p2041rdb/Makefile             | 28 ++-------
 board/freescale/t4qds/Makefile                | 40 +++----------
 board/freescale/titanium/Makefile             | 21 +------
 board/freescale/vf610twr/Makefile             | 21 +------
 board/friendlyarm/mini2440/Makefile           | 22 +------
 board/funkwerk/vovpn-gw/Makefile              | 22 +------
 board/g2000/Makefile                          | 22 +------
 board/gaisler/gr_cpci_ax2000/Makefile         | 23 +------
 board/gaisler/gr_ep2s60/Makefile              | 23 +------
 board/gaisler/gr_xc3s_1500/Makefile           | 23 +------
 board/gaisler/grsim/Makefile                  | 22 +------
 board/gaisler/grsim_leon2/Makefile            | 22 +------
 board/galaxy5200/Makefile                     | 22 +------
 board/gdsys/405ep/Makefile                    | 32 ++--------
 board/gdsys/405ex/Makefile                    | 33 +---------
 board/gdsys/common/Makefile                   | 40 ++-----------
 board/gdsys/dlvision/Makefile                 | 23 +------
 board/gdsys/gdppc440etx/Makefile              | 24 +-------
 board/gdsys/intip/Makefile                    | 29 +--------
 board/gdsys/p1022/Makefile                    | 34 ++---------
 board/gen860t/Makefile                        | 22 +------
 board/genesi/mx51_efikamx/Makefile            | 21 +------
 board/genietv/Makefile                        | 22 +------
 board/gw8260/Makefile                         | 23 +------
 board/h2200/Makefile                          | 23 +------
 board/hale/tt01/Makefile                      | 29 +--------
 board/hermes/Makefile                         | 22 +------
 board/hidden_dragon/Makefile                  | 22 +------
 board/highbank/Makefile                       | 27 +--------
 board/htkw/mcx/Makefile                       | 19 +-----
 board/hymod/Makefile                          | 22 +------
 board/ibf-dsp561/Makefile                     | 22 +------
 board/icecube/Makefile                        | 22 +------
 board/icpdas/lp8x4x/Makefile                  | 21 +------
 board/icu862/Makefile                         | 22 +------
 board/idmr/Makefile                           | 22 +------
 board/ids8247/Makefile                        | 22 +------
 board/ifm/ac14xx/Makefile                     | 23 +------
 board/ifm/o2dnt2/Makefile                     | 22 +------
 board/imx31_phycore/Makefile                  | 24 +-------
 board/in-circuit/grasshopper/Makefile         | 21 +------
 board/incaip/Makefile                         | 24 +-------
 board/inka4x0/Makefile                        | 22 +------
 board/intercontrol/digsy_mtc/Makefile         | 24 +-------
 board/iomega/iconnect/Makefile                | 22 +------
 board/ip04/Makefile                           | 22 +------
 board/ip860/Makefile                          | 22 +------
 board/ipek01/Makefile                         | 22 +------
 board/iphase4539/Makefile                     | 22 +------
 board/isee/igep0033/Makefile                  | 29 +--------
 board/isee/igep00x0/Makefile                  | 21 +------
 board/ispan/Makefile                          | 22 +------
 board/ivm/Makefile                            | 22 +------
 board/jornada/Makefile                        | 24 +-------
 board/jse/Makefile                            | 24 +-------
 board/jupiter/Makefile                        | 22 +------
 board/karo/tk71/Makefile                      | 22 +------
 board/karo/tx25/Makefile                      | 23 +------
 board/keymile/km82xx/Makefile                 | 22 +------
 board/keymile/km83xx/Makefile                 | 21 +------
 board/keymile/km_arm/Makefile                 | 23 +------
 board/kmc/kzm9g/Makefile                      | 28 +--------
 board/korat/Makefile                          | 26 +-------
 board/kup/kup4k/Makefile                      | 21 +------
 board/kup/kup4x/Makefile                      | 21 +------
 board/linkstation/Makefile                    | 21 +------
 board/logicpd/am3517evm/Makefile              | 19 +-----
 board/logicpd/imx27lite/Makefile              | 23 +------
 board/logicpd/imx31_litekit/Makefile          | 24 +-------
 board/logicpd/omap3som/Makefile               | 20 +------
 board/logicpd/zoom1/Makefile                  | 21 +------
 board/logicpd/zoom2/Makefile                  | 28 ++-------
 board/lubbock/Makefile                        | 21 +------
 board/lwmon/Makefile                          | 22 +------
 board/lwmon5/Makefile                         | 26 +-------
 board/manroland/hmi1001/Makefile              | 22 +------
 board/manroland/mucmc52/Makefile              | 22 +------
 board/manroland/uc100/Makefile                | 23 +------
 board/manroland/uc101/Makefile                | 22 +------
 board/matrix_vision/common/Makefile           | 26 +-------
 board/matrix_vision/mergerbox/Makefile        | 23 +------
 board/matrix_vision/mvbc_p/Makefile           | 19 +-----
 board/matrix_vision/mvblm7/Makefile           | 23 ++-----
 board/matrix_vision/mvblx/Makefile            | 24 +-------
 board/matrix_vision/mvsmr/Makefile            | 21 ++-----
 board/mbx8xx/Makefile                         | 22 +------
 board/mcc200/Makefile                         | 22 +------
 board/micronas/vct/Makefile                   | 37 +++---------
 board/mimc/mimc200/Makefile                   | 21 +------
 board/miromico/hammerhead/Makefile            | 21 +------
 board/mosaixtech/icon/Makefile                | 27 +--------
 board/motionpro/Makefile                      | 22 +------
 board/mousse/Makefile                         | 21 +------
 board/mpc8308_p1m/Makefile                    | 22 +------
 board/mpl/mip405/Makefile                     | 24 +-------
 board/mpl/pati/Makefile                       | 21 +------
 board/mpl/pip405/Makefile                     | 24 +-------
 board/mpl/vcma9/Makefile                      | 25 +-------
 board/mpr2/Makefile                           | 24 +-------
 board/ms7720se/Makefile                       | 24 +-------
 board/ms7722se/Makefile                       | 24 +-------
 board/ms7750se/Makefile                       | 23 +------
 board/muas3001/Makefile                       | 22 +------
 board/munices/Makefile                        | 22 +------
 board/musenki/Makefile                        | 22 +------
 board/mvblue/Makefile                         | 22 +------
 board/mx1ads/Makefile                         | 24 +-------
 board/netphone/Makefile                       | 22 +------
 board/netta/Makefile                          | 22 +------
 board/netta2/Makefile                         | 22 +------
 board/netvia/Makefile                         | 22 +------
 board/nokia/rx51/Makefile                     | 25 +-------
 board/nvidia/beaver/Makefile                  | 21 +------
 board/nvidia/cardhu/Makefile                  | 21 +------
 board/nvidia/common/Makefile                  | 26 --------
 board/nvidia/common/common.mk                 |  4 +-
 board/nvidia/dalmore/Makefile                 | 21 +------
 board/nvidia/harmony/Makefile                 | 21 +------
 board/nvidia/seaboard/Makefile                | 21 +------
 board/nvidia/ventana/Makefile                 | 21 +------
 board/nvidia/whistler/Makefile                | 21 +------
 board/nx823/Makefile                          | 22 +------
 board/olimex/mx23_olinuxino/Makefile          | 23 +------
 board/omicron/calimain/Makefile               | 21 +------
 board/openrisc/openrisc-generic/Makefile      | 21 +------
 board/overo/Makefile                          | 20 +------
 board/palmld/Makefile                         | 21 +------
 board/palmtc/Makefile                         | 22 +------
 board/palmtreo680/Makefile                    | 27 +--------
 board/pandora/Makefile                        | 21 +------
 board/pb1x00/Makefile                         | 24 +-------
 board/pcs440ep/Makefile                       | 24 +-------
 board/pdm360ng/Makefile                       | 23 +------
 board/phytec/pcm030/Makefile                  | 22 +------
 board/phytec/pcm051/Makefile                  | 29 +--------
 board/pm520/Makefile                          | 22 +------
 board/pm826/Makefile                          | 22 +------
 board/pm828/Makefile                          | 22 +------
 board/pn62/Makefile                           | 22 +------
 board/ppmc7xx/Makefile                        | 25 +-------
 board/ppmc8260/Makefile                       | 22 +------
 board/pr1/Makefile                            | 22 +------
 board/prodrive/alpr/Makefile                  | 24 +-------
 board/prodrive/p3mx/Makefile                  | 23 +------
 board/prodrive/p3p440/Makefile                | 24 +-------
 board/prodrive/pdnb3/Makefile                 | 22 +------
 board/psyent/pci5441/Makefile                 | 23 +------
 board/psyent/pk1c20/Makefile                  | 23 +------
 board/pxa255_idp/Makefile                     | 21 +------
 board/qemu-malta/Makefile                     | 24 +-------
 board/qemu-mips/Makefile                      | 24 +-------
 board/quad100hd/Makefile                      | 23 +------
 board/quantum/Makefile                        | 22 +------
 board/r360mpi/Makefile                        | 22 +------
 board/raidsonic/ib62x0/Makefile               | 22 +------
 board/raspberrypi/rpi_b/Makefile              | 21 +------
 board/rattler/Makefile                        | 22 +------
 board/rbc823/Makefile                         | 22 +------
 board/renesas/MigoR/Makefile                  | 24 +-------
 board/renesas/ap325rxa/Makefile               | 24 +-------
 board/renesas/ecovec/Makefile                 | 25 +-------
 board/renesas/r0p7734/Makefile                | 24 +-------
 board/renesas/r2dplus/Makefile                | 23 +------
 board/renesas/r7780mp/Makefile                | 24 +-------
 board/renesas/rsk7203/Makefile                | 24 +-------
 board/renesas/rsk7264/Makefile                | 22 +------
 board/renesas/rsk7269/Makefile                | 22 +------
 board/renesas/sh7752evb/Makefile              | 20 +------
 board/renesas/sh7757lcr/Makefile              | 20 +------
 board/renesas/sh7763rdp/Makefile              | 24 +-------
 board/renesas/sh7785lcr/Makefile              | 24 +-------
 board/ronetix/pm9261/Makefile                 | 26 +-------
 board/ronetix/pm9263/Makefile                 | 26 +-------
 board/ronetix/pm9g45/Makefile                 | 22 +------
 board/rpxsuper/Makefile                       | 22 +------
 board/rsdproto/Makefile                       | 24 +-------
 board/sacsng/Makefile                         | 22 +------
 board/samsung/arndale/Makefile                | 27 +--------
 board/samsung/common/Makefile                 | 21 +------
 board/samsung/goni/Makefile                   | 24 +-------
 board/samsung/origen/Makefile                 | 28 +--------
 board/samsung/smdk2410/Makefile               | 24 +-------
 board/samsung/smdk5250/Makefile               | 29 +--------
 board/samsung/smdkc100/Makefile               | 26 +-------
 board/samsung/smdkv310/Makefile               | 28 +--------
 board/samsung/trats/Makefile                  | 21 +------
 board/samsung/trats2/Makefile                 | 28 +--------
 board/samsung/universal_c210/Makefile         | 22 +------
 board/sandburst/karef/Makefile                | 27 +--------
 board/sandburst/metrobox/Makefile             | 26 +-------
 board/sandisk/sansa_fuze_plus/Makefile        | 23 +------
 board/sandpoint/Makefile                      | 22 +------
 board/sbc405/Makefile                         | 22 +------
 board/sbc8349/Makefile                        | 25 +-------
 board/sbc8548/Makefile                        | 28 ++-------
 board/sbc8641d/Makefile                       | 26 +-------
 board/sc3/Makefile                            | 24 +-------
 board/scb9328/Makefile                        | 24 +-------
 board/schulercontrol/sc_sps_1/Makefile        | 23 +------
 board/sheldon/simpc8313/Makefile              | 22 +------
 board/shmin/Makefile                          | 24 +-------
 board/siemens/dxr2/Makefile                   | 30 +---------
 board/siemens/pxm2/Makefile                   | 30 +---------
 board/siemens/rut/Makefile                    | 30 +---------
 board/sixnet/Makefile                         | 22 +------
 board/snmc/qs850/Makefile                     | 22 +------
 board/snmc/qs860t/Makefile                    | 22 +------
 board/socrates/Makefile                       | 33 ++--------
 board/spc1920/Makefile                        | 22 +------
 board/spd8xx/Makefile                         | 22 +------
 board/spear/common/Makefile                   | 27 +--------
 board/spear/spear300/Makefile                 | 23 +------
 board/spear/spear310/Makefile                 | 23 +------
 board/spear/spear320/Makefile                 | 23 +------
 board/spear/spear600/Makefile                 | 23 +------
 board/spear/x600/Makefile                     | 23 +------
 board/st-ericsson/snowball/Makefile           | 26 +-------
 board/st-ericsson/u8500/Makefile              | 21 +------
 board/st/nhk8815/Makefile                     | 23 +------
 board/stx/stxgp3/Makefile                     | 30 ++--------
 board/stx/stxssa/Makefile                     | 28 ++-------
 board/stx/stxxtc/Makefile                     | 22 +------
 board/svm_sc8xx/Makefile                      | 22 +------
 board/syteco/jadecpu/Makefile                 | 24 +-------
 board/syteco/zmx25/Makefile                   | 24 +-------
 board/t3corp/Makefile                         | 29 +--------
 board/taskit/stamp9g20/Makefile               | 24 +-------
 board/tcm-bf518/Makefile                      | 22 +------
 board/tcm-bf537/Makefile                      | 22 +------
 board/technexion/twister/Makefile             | 19 +-----
 board/teejet/mt_ventoux/Makefile              | 19 +-----
 board/timll/devkit3250/Makefile               | 22 +------
 board/timll/devkit8000/Makefile               | 21 +------
 board/toradex/colibri_pxa270/Makefile         | 21 +------
 board/toradex/colibri_t20_iris/Makefile       | 25 +-------
 board/total5200/Makefile                      | 22 +------
 board/tqc/tqm5200/Makefile                    | 24 +-------
 board/tqc/tqm8260/Makefile                    | 21 +------
 board/tqc/tqm8272/Makefile                    | 21 +------
 board/tqc/tqm834x/Makefile                    | 25 +-------
 board/tqc/tqm8xx/Makefile                     | 22 +------
 board/trizepsiv/Makefile                      | 21 +------
 board/ttcontrol/vision2/Makefile              | 21 +------
 board/utx8245/Makefile                        | 22 +------
 board/v37/Makefile                            | 22 +------
 board/v38b/Makefile                           | 22 +------
 board/ve8313/Makefile                         | 22 +------
 board/vpac270/Makefile                        | 23 +------
 board/w7o/Makefile                            | 24 +-------
 board/wandboard/Makefile                      | 21 +------
 board/woodburn/Makefile                       | 24 +-------
 board/xaeniax/Makefile                        | 21 +------
 board/xes/common/Makefile                     | 38 +++---------
 board/xes/xpedite1000/Makefile                | 24 +-------
 board/xes/xpedite517x/Makefile                | 26 +-------
 board/xes/xpedite520x/Makefile                | 28 ++-------
 board/xes/xpedite537x/Makefile                | 28 ++-------
 board/xes/xpedite550x/Makefile                | 28 ++-------
 board/xilinx/microblaze-generic/Makefile      | 22 +------
 board/xilinx/ml507/Makefile                   |  2 +-
 board/xilinx/ppc405-generic/Makefile          | 21 +------
 board/xilinx/ppc440-generic/Makefile          | 23 +------
 board/xilinx/zynq/Makefile                    | 29 +--------
 board/zeus/Makefile                           | 23 +------
 board/zipitz2/Makefile                        | 21 +------
 board/zpc1900/Makefile                        | 22 +------
 dts/Makefile                                  | 24 +-------
 post/Makefile                                 | 65 ++++----------------
 post/board/lwmon/Makefile                     |  7 +--
 post/board/lwmon5/Makefile                    |  7 +--
 post/board/netta/Makefile                     |  7 +--
 post/board/pdm360ng/Makefile                  |  7 +--
 post/cpu/mpc83xx/Makefile                     |  8 +--
 post/cpu/mpc8xx/Makefile                      |  9 +--
 post/cpu/ppc4xx/Makefile                      | 23 ++++---
Quoted 8 lines
 post/drivers/Makefile                         |  7 +--
 post/lib_powerpc/Makefile                     | 13 ++--
 post/lib_powerpc/fpu/Makefile                 | 24 ++++----
 post/rules.mk                                 | 30 ----------
 spl/Makefile                                  | 25 ++------
 test/Makefile                                 | 26 +-------
 618 files changed, 1209 insertions(+), 13474 deletions(-)
 delete mode 100644 post/rules.mk

For the series, applied to u-boot/master, thanks!

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20131104/7ce8e72a/attachment.pgp>