Module Name: src
Committed By: rin
Date: Wed May 11 10:31:12 UTC 2022
Modified Files:
src/sys/arch/atari/stand/installboot: installboot.c
Log Message:
Make FD support optional (intended for install media).
To generate a diff of this commit:
cvs rdiff -u -r1.37 -r1.38 src/sys/arch/atari/stand/installboot/installboot.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/arch/atari/stand/installboot/installboot.c
diff -u src/sys/arch/atari/stand/installboot/installboot.c:1.37 src/sys/arch/atari/stand/installboot/installboot.c:1.38
--- src/sys/arch/atari/stand/installboot/installboot.c:1.37 Wed May 11 10:27:45 2022
+++ src/sys/arch/atari/stand/installboot/installboot.c Wed May 11 10:31:12 2022
@@ -1,4 +1,4 @@
-/* $NetBSD: installboot.c,v 1.37 2022/05/11 10:27:45 rin Exp $ */
+/* $NetBSD: installboot.c,v 1.38 2022/05/11 10:31:12 rin Exp $ */
/*
* Copyright (c) 1995 Waldi Ravens
@@ -65,7 +65,9 @@ static void mkahdiboot(struct ahdi_root
char *, u_int32_t);
static void mkbootblock(struct bootblock *, char *,
char *, struct disklabel *, u_int);
+#ifdef SUPPORT_FD
static void install_fd(char *, struct disklabel *);
+#endif
static void install_hd(char *, struct disklabel *, bool);
static struct bootblock bootarea;
@@ -165,9 +167,11 @@ main(int argc, char *argv[])
++devchr;
switch (*devchr) {
+#ifdef SUPPORT_FD
case 'f': /* fd */
install_fd(dn, &dl);
break;
+#endif
case 'w': /* wd */
use_wd = true;
/* FALLTHROUGH */
@@ -218,6 +222,7 @@ oscheck(void)
}
#endif
+#ifdef SUPPORT_FD
static void
install_fd(char *devnm, struct disklabel *label)
{
@@ -272,6 +277,7 @@ install_fd(char *devnm, struct disklabel
printf("Boot block installed on %s\n", devnm);
}
}
+#endif /* SUPPORT_FD */
static void
install_hd(char *devnm, struct disklabel *label, bool use_wd)