summaryrefslogtreecommitdiff
path: root/rescue
diff options
context:
space:
mode:
authorEnji Cooper <ngie@FreeBSD.org>2015-10-17 21:11:42 +0000
committerEnji Cooper <ngie@FreeBSD.org>2015-10-17 21:11:42 +0000
commit46839d1247c0853aa24630a372bbfa772c5d5821 (patch)
tree413eeb491f0d8bbc7a087a209af10e7fba012a32 /rescue
parent7ebf41220caedbe6d2e62f043b0f6f7837d83036 (diff)
downloadsrc-test2-46839d1247c0853aa24630a372bbfa772c5d5821.tar.gz
src-test2-46839d1247c0853aa24630a372bbfa772c5d5821.zip
Make iscsictl and iscsid build if MK_ISCSI == yes
MFC after: 1 month X-MFC with: r289452
Notes
Notes: svn path=/head/; revision=289469
Diffstat (limited to 'rescue')
-rw-r--r--rescue/rescue/Makefile9
1 files changed, 7 insertions, 2 deletions
diff --git a/rescue/rescue/Makefile b/rescue/rescue/Makefile
index 4d8b63d0f825..45a6cc211656 100644
--- a/rescue/rescue/Makefile
+++ b/rescue/rescue/Makefile
@@ -179,7 +179,7 @@ CRUNCH_BUILDOPTS_dhclient= -DRELEASE_CRUNCH -Dlint
#
CRUNCH_SRCDIRS+= usr.bin
-CRUNCH_PROGS_usr.bin= head iscsictl mt nc sed tail tee
+CRUNCH_PROGS_usr.bin= head mt nc sed tail tee
CRUNCH_PROGS_usr.bin+= gzip
CRUNCH_ALIAS_gzip= gunzip gzcat zcat
@@ -214,12 +214,17 @@ CRUNCH_ALIAS_id= groups whoami
#
CRUNCH_SRCDIRS+= usr.sbin
-CRUNCH_PROGS_usr.sbin+= chroot iscsid
+CRUNCH_PROGS_usr.sbin+= chroot
CRUNCH_PROGS_usr.sbin+= chown
CRUNCH_ALIAS_chown= chgrp
##################################################################
CRUNCH_LIBS+= -lm
+.if ${MK_ISCSI} != "no"
+CRUNCH_PROGS_usr.bin+= iscsictl
+CRUNCH_PROGS_usr.sbin+= iscsid
+.endif
+
.include <bsd.crunchgen.mk>
.include <bsd.prog.mk>