Skip to contentSkip to conversation

tools: fix Makefile to clean-up fit_info and fit_check_sign

PATCH New Masahiro Yamada 2 participants 2 messages Apr 1, 2014 – Apr 18, 2014

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 tools: fix Makefile to clean-up fit_info and fit_check_sign

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".

---

This patch is against u-boot/next

Changes in v2:
- Add Signed-off-by

 tools/Makefile | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
tools/Makefile +1 -3
index c5c378c..c34df4f 100644
@@ -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
Signature · 1 line
1.8.3.2
#1 lore raw

PATCH v2 1/1 tools: fix Makefile to clean-up fit_info and fit_check_sign

Quoted 11 lines · Masahiro Yamada

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".

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/20140418/52ee40b7/attachment.pgp>