aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJordan K. Hubbard <jkh@FreeBSD.org>1998-09-16 09:25:20 +0000
committerJordan K. Hubbard <jkh@FreeBSD.org>1998-09-16 09:25:20 +0000
commit0d4651753d7c61dc01ac23f6fbe5e20cf4fd3512 (patch)
treef0e32183a439d14141c8afbc00c98f307f6899e0
parent9cf0e9186b25fe5c8dd5b7583f7178bf48c72bc5 (diff)
Notes
-rw-r--r--release/sysinstall/Makefile2
-rw-r--r--release/sysinstall/uc_main.c17
-rw-r--r--usr.sbin/sade/Makefile2
-rw-r--r--usr.sbin/sysinstall/Makefile2
4 files changed, 16 insertions, 7 deletions
diff --git a/release/sysinstall/Makefile b/release/sysinstall/Makefile
index 2dd54f2f5becc..81f4acad3eecf 100644
--- a/release/sysinstall/Makefile
+++ b/release/sysinstall/Makefile
@@ -16,7 +16,7 @@ SRCS= anonFTP.c attr.c cdrom.c command.c config.c devices.c \
msg.c network.c nfs.c options.c package.c register.c system.c \
tape.c tcpip.c termcap.c ufs.c user.c variable.c wizard.c \
uc_eisa.c uc_isa.c uc_kmem.c uc_list.c uc_main.c uc_pci.c \
- uc_scsi.c keymap.h
+ keymap.h
CFLAGS+= -Wall -I${.CURDIR}/../../gnu/lib/libdialog -I${.OBJDIR}
CFLAGS+= -I${.CURDIR}/../../sys
diff --git a/release/sysinstall/uc_main.c b/release/sysinstall/uc_main.c
index f54ac153350af..e97778bf32e75 100644
--- a/release/sysinstall/uc_main.c
+++ b/release/sysinstall/uc_main.c
@@ -24,7 +24,7 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
* library functions for userconfig library
*
- * $Id$
+ * $Id: uc_main.c,v 1.18 1997/02/22 14:12:31 peter Exp $
*/
#include <sys/types.h>
@@ -53,9 +53,11 @@ static struct nlist _nl[] = {
{"_pcidevice_set"},
{"_device_list"},
{"_scbusses"},
+#ifdef USE_SCSI
{"_scsi_cinit"},
{"_scsi_dinit"},
{"_scsi_tinit"},
+#endif
{""},
};
@@ -232,9 +234,10 @@ uc_close(struct kernel *kern, int writeback)
if (kern->pci_devp)
pci_free(kern, writeback); /* or here */
+#ifdef USE_SCSI
if (kern->scsi_devp)
scsi_free(kern, writeback);
-
+#endif
if (!kern->incore)
munmap(kern->core, kern->size);
@@ -262,9 +265,11 @@ uc_getdev(struct kernel *kern, char *dev)
if (kern->pci_devp)
list_append(list, "pci");
+#ifdef USE_SCSI
if (kern->scsi_devp)
list_append(list, "scsi");
-
+#endif
+
}
else if (strcmp(dev, "-isa") == 0)
list = get_isa_devlist(kern);
@@ -272,8 +277,10 @@ uc_getdev(struct kernel *kern, char *dev)
list = get_eisa_devlist(kern);
else if (strcmp(dev, "-pci") == 0)
list = get_pci_devlist(kern);
+#ifdef USE_SCSI
else if (strcmp(dev, "-scsi") == 0)
list = get_scsi_devlist(kern);
+#endif
}
else {
/* we gotta figure out which real device to report */
@@ -291,6 +298,7 @@ uc_getdev(struct kernel *kern, char *dev)
}
}
+#ifdef USE_SCSI
if (kern->scsi_devp) {
for (sp = kern->scsi_devp; sp->device; sp++) {
if (strcmp(dev, sp->device) == 0) {
@@ -299,7 +307,8 @@ uc_getdev(struct kernel *kern, char *dev)
}
}
}
-
+#endif
+
if (kern->pci_devp) {
for(pp = kern->pci_devp; pp->device; pp++) {
if (strcmp(dev, pp->device) == 0) {
diff --git a/usr.sbin/sade/Makefile b/usr.sbin/sade/Makefile
index 2dd54f2f5becc..81f4acad3eecf 100644
--- a/usr.sbin/sade/Makefile
+++ b/usr.sbin/sade/Makefile
@@ -16,7 +16,7 @@ SRCS= anonFTP.c attr.c cdrom.c command.c config.c devices.c \
msg.c network.c nfs.c options.c package.c register.c system.c \
tape.c tcpip.c termcap.c ufs.c user.c variable.c wizard.c \
uc_eisa.c uc_isa.c uc_kmem.c uc_list.c uc_main.c uc_pci.c \
- uc_scsi.c keymap.h
+ keymap.h
CFLAGS+= -Wall -I${.CURDIR}/../../gnu/lib/libdialog -I${.OBJDIR}
CFLAGS+= -I${.CURDIR}/../../sys
diff --git a/usr.sbin/sysinstall/Makefile b/usr.sbin/sysinstall/Makefile
index 2dd54f2f5becc..81f4acad3eecf 100644
--- a/usr.sbin/sysinstall/Makefile
+++ b/usr.sbin/sysinstall/Makefile
@@ -16,7 +16,7 @@ SRCS= anonFTP.c attr.c cdrom.c command.c config.c devices.c \
msg.c network.c nfs.c options.c package.c register.c system.c \
tape.c tcpip.c termcap.c ufs.c user.c variable.c wizard.c \
uc_eisa.c uc_isa.c uc_kmem.c uc_list.c uc_main.c uc_pci.c \
- uc_scsi.c keymap.h
+ keymap.h
CFLAGS+= -Wall -I${.CURDIR}/../../gnu/lib/libdialog -I${.OBJDIR}
CFLAGS+= -I${.CURDIR}/../../sys