From b61e5e488321a069f14d2830bb1e7ea7ef8913b2 Mon Sep 17 00:00:00 2001 From: Enji Cooper Date: Wed, 20 May 2015 09:36:25 +0000 Subject: [PATCH] Only build sys/boot/usb/tools if MK_USB != no Sponsored by: EMC / Isilon Storage Division --- Makefile.inc1 | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Makefile.inc1 b/Makefile.inc1 index ba7068812dd4..87e22538ae73 100644 --- a/Makefile.inc1 +++ b/Makefile.inc1 @@ -1502,6 +1502,9 @@ _clang_libs= lib/clang _cc= gnu/usr.bin/cc .endif .endif +.if ${MK_USB} != "no" +_usb_tools= sys/boot/usb/tools +.endif cross-tools: .MAKE .for _tool in \ @@ -1512,7 +1515,7 @@ cross-tools: .MAKE ${_cc} \ ${_btxld} \ ${_crunchide} \ - sys/boot/usb/tools + ${_usb_tools} ${_+_}@${ECHODIR} "===> ${_tool} (obj,depend,all,install)"; \ cd ${.CURDIR}/${_tool} && \ ${MAKE} DIRPRFX=${_tool}/ obj && \