]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
Makefile: refactor a little
authorMasahiro Yamada <yamada.m@jp.panasonic.com>
Mon, 11 Nov 2013 05:36:01 +0000 (14:36 +0900)
committerTom Rini <trini@ti.com>
Sun, 17 Nov 2013 19:11:32 +0000 (14:11 -0500)
Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
Makefile
spl/Makefile

index 1389ee773e1a5b50c9a8b1f08bb5cd8c93075f90..e28878bf8d5f9d705d417f51d301bb34ddb905e4 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -65,11 +65,9 @@ endif
 # the object files are placed in the source directory.
 #
 
-ifdef O
 ifeq ("$(origin O)", "command line")
 BUILD_DIR := $(O)
 endif
-endif
 
 # Call a source code checker (by default, "sparse") as part of the
 # C compilation.
@@ -614,7 +612,7 @@ SYSTEM_MAP = \
                grep -v '\(compiled\)\|\(\.o$$\)\|\( [aUw] \)\|\(\.\.ng$$\)\|\(LASH[RL]DI\)' | \
                LC_ALL=C sort
 $(obj)System.map:      $(obj)u-boot
-               @$(call SYSTEM_MAP,$<) > $(obj)System.map
+               @$(call SYSTEM_MAP,$<) > $@
 
 checkthumb:
        @if test $(call cc-version) -lt 0404; then \
index 29354f920ce571e463b75934754de1ded340c250..5bc75b4bcead9fa7627d8a8460baf66973611637 100644 (file)
@@ -166,8 +166,7 @@ all:        $(ALL-y)
 
 ifdef CONFIG_SAMSUNG
 $(obj)$(BOARD)-spl.bin: $(obj)u-boot-spl.bin
-       $(OBJTREE)/tools/mk$(BOARD)spl \
-               $(obj)u-boot-spl.bin $(obj)$(BOARD)-spl.bin
+       $(OBJTREE)/tools/mk$(BOARD)spl $< $@
 endif
 
 $(obj)$(SPL_BIN).bin:  $(obj)$(SPL_BIN)