mirror of
https://xff.cz/git/u-boot/
synced 2025-10-27 00:24:09 +01:00
Makefile: refactor a little
Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
This commit is contained in:
committed by
Tom Rini
parent
e2906a5943
commit
bc8bb6ec0a
4
Makefile
4
Makefile
@@ -65,11 +65,9 @@ endif
|
|||||||
# the object files are placed in the source directory.
|
# the object files are placed in the source directory.
|
||||||
#
|
#
|
||||||
|
|
||||||
ifdef O
|
|
||||||
ifeq ("$(origin O)", "command line")
|
ifeq ("$(origin O)", "command line")
|
||||||
BUILD_DIR := $(O)
|
BUILD_DIR := $(O)
|
||||||
endif
|
endif
|
||||||
endif
|
|
||||||
|
|
||||||
# Call a source code checker (by default, "sparse") as part of the
|
# Call a source code checker (by default, "sparse") as part of the
|
||||||
# C compilation.
|
# C compilation.
|
||||||
@@ -614,7 +612,7 @@ SYSTEM_MAP = \
|
|||||||
grep -v '\(compiled\)\|\(\.o$$\)\|\( [aUw] \)\|\(\.\.ng$$\)\|\(LASH[RL]DI\)' | \
|
grep -v '\(compiled\)\|\(\.o$$\)\|\( [aUw] \)\|\(\.\.ng$$\)\|\(LASH[RL]DI\)' | \
|
||||||
LC_ALL=C sort
|
LC_ALL=C sort
|
||||||
$(obj)System.map: $(obj)u-boot
|
$(obj)System.map: $(obj)u-boot
|
||||||
@$(call SYSTEM_MAP,$<) > $(obj)System.map
|
@$(call SYSTEM_MAP,$<) > $@
|
||||||
|
|
||||||
checkthumb:
|
checkthumb:
|
||||||
@if test $(call cc-version) -lt 0404; then \
|
@if test $(call cc-version) -lt 0404; then \
|
||||||
|
|||||||
@@ -166,8 +166,7 @@ all: $(ALL-y)
|
|||||||
|
|
||||||
ifdef CONFIG_SAMSUNG
|
ifdef CONFIG_SAMSUNG
|
||||||
$(obj)$(BOARD)-spl.bin: $(obj)u-boot-spl.bin
|
$(obj)$(BOARD)-spl.bin: $(obj)u-boot-spl.bin
|
||||||
$(OBJTREE)/tools/mk$(BOARD)spl \
|
$(OBJTREE)/tools/mk$(BOARD)spl $< $@
|
||||||
$(obj)u-boot-spl.bin $(obj)$(BOARD)-spl.bin
|
|
||||||
endif
|
endif
|
||||||
|
|
||||||
$(obj)$(SPL_BIN).bin: $(obj)$(SPL_BIN)
|
$(obj)$(SPL_BIN).bin: $(obj)$(SPL_BIN)
|
||||||
|
|||||||
Reference in New Issue
Block a user