Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/atari/stand/installboot Make FD support optional (i...



details:   https://anonhg.NetBSD.org/src/rev/770fd3aa318f
branches:  trunk
changeset: 366035:770fd3aa318f
user:      rin <rin%NetBSD.org@localhost>
date:      Wed May 11 10:31:12 2022 +0000

description:
Make FD support optional (intended for install media).

diffstat:

 sys/arch/atari/stand/installboot/installboot.c |  8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)

diffs (47 lines):

diff -r 7e0de0616e47 -r 770fd3aa318f sys/arch/atari/stand/installboot/installboot.c
--- a/sys/arch/atari/stand/installboot/installboot.c    Wed May 11 10:27:45 2022 +0000
+++ b/sys/arch/atari/stand/installboot/installboot.c    Wed May 11 10:31:12 2022 +0000
@@ -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 @@
                                                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 @@
                ++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 @@
 }
 #endif
 
+#ifdef SUPPORT_FD
 static void
 install_fd(char *devnm, struct disklabel *label)
 {
@@ -272,6 +277,7 @@
                        printf("Boot block installed on %s\n", devnm);
        }
 }
+#endif /* SUPPORT_FD */
 
 static void
 install_hd(char *devnm, struct disklabel *label, bool use_wd)



Home | Main Index | Thread Index | Old Index