summaryrefslogtreecommitdiff
path: root/spl
diff options
context:
space:
mode:
authorMasahiro Yamada <yamada.m@jp.panasonic.com>2014-02-04 17:24:10 +0900
committerTom Rini <trini@ti.com>2014-02-19 11:07:49 -0500
commit940db16d2e6ce69f769f790bf1def56978f0ac6c (patch)
tree1b2baa7449a5440ac82ffb1af1b5c6c02cdfd31f /spl
parentad71fa9971aeb0340221f82884b7794c497322be (diff)
tools: convert makefiles to kbuild style
Before this commit, makefiles under tools/ directory were implemented with their own way. This commit refactors them by using "hostprogs-y" variable. Several C sources have been added to wrap other C sources to simplify Makefile. For example, tools/crc32.c includes lib/crc32.c Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
Diffstat (limited to 'spl')
-rw-r--r--spl/Makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/spl/Makefile b/spl/Makefile
index 28fcfdd4862..3c40a7e523c 100644
--- a/spl/Makefile
+++ b/spl/Makefile
@@ -165,7 +165,9 @@ else
VAR_SIZE_PARAM =
endif
$(obj)$(BOARD)-spl.bin: $(obj)u-boot-spl.bin
- $(OBJTREE)/tools/mk$(BOARD)spl $(VAR_SIZE_PARAM) $< $@
+ $(if $(wildcard $(OBJTREE)/tools/mk$(BOARD)spl),\
+ $(OBJTREE)/tools/mk$(BOARD)spl,\
+ $(OBJTREE)/tools/mkexynosspl) $(VAR_SIZE_PARAM) $< $@
endif
$(obj)$(SPL_BIN).bin: $(obj)$(SPL_BIN)