Only build sys/boot/usb/tools if MK_USB != no

Sponsored by: EMC / Isilon Storage Division
This commit is contained in:
Enji Cooper 2015-05-20 09:36:25 +00:00
parent f454747867
commit b61e5e4883

View File

@ -1502,6 +1502,9 @@ _clang_libs= lib/clang
_cc= gnu/usr.bin/cc _cc= gnu/usr.bin/cc
.endif .endif
.endif .endif
.if ${MK_USB} != "no"
_usb_tools= sys/boot/usb/tools
.endif
cross-tools: .MAKE cross-tools: .MAKE
.for _tool in \ .for _tool in \
@ -1512,7 +1515,7 @@ cross-tools: .MAKE
${_cc} \ ${_cc} \
${_btxld} \ ${_btxld} \
${_crunchide} \ ${_crunchide} \
sys/boot/usb/tools ${_usb_tools}
${_+_}@${ECHODIR} "===> ${_tool} (obj,depend,all,install)"; \ ${_+_}@${ECHODIR} "===> ${_tool} (obj,depend,all,install)"; \
cd ${.CURDIR}/${_tool} && \ cd ${.CURDIR}/${_tool} && \
${MAKE} DIRPRFX=${_tool}/ obj && \ ${MAKE} DIRPRFX=${_tool}/ obj && \