]> git.sur5r.net Git - u-boot/commitdiff
tools: fix Makefile to clean-up fit_info and fit_check_sign
authorMasahiro Yamada <yamada.m@jp.panasonic.com>
Tue, 1 Apr 2014 00:24:44 +0000 (09:24 +0900)
committerTom Rini <trini@ti.com>
Fri, 18 Apr 2014 14:42:29 +0000 (10:42 -0400)
We should avoid the description in Makefile like this

ifdef CONFIG_FIT_SIGNATURE
hostprogs-y += fit_info$(SFX) fit_check_sign$(SFX)
endif

Otherwise, fit_info and fit_check_sign would never be cleaned
by "make clean".

Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
Cc: Heiko Schocher <hs@denx.de>
tools/Makefile

index c5c378cf86f2163bfb79d3c1b660e84ceb22866f..c34df4f8978251cb58f317884d394c53bbdcef83 100644 (file)
@@ -60,9 +60,7 @@ hostprogs-y += mkenvimage$(SFX)
 mkenvimage$(SFX)-objs := crc32.o mkenvimage.o os_support.o
 
 hostprogs-y += dumpimage$(SFX) mkimage$(SFX)
-ifdef CONFIG_FIT_SIGNATURE
-hostprogs-y += fit_info$(SFX) fit_check_sign$(SFX)
-endif
+hostprogs-$(CONFIG_FIT_SIGNATURE) += fit_info$(SFX) fit_check_sign$(SFX)
 
 FIT_SIG_OBJS-$(CONFIG_FIT_SIGNATURE) := image-sig.o
 # Flattened device tree objects