Source-Changes-HG archive

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

[src/trunk]: src/usr.sbin/config revert 1.51 and 1.52 (_KERNEL_foo stuff), du...



details:   https://anonhg.NetBSD.org/src/rev/65ad41ad2680
branches:  trunk
changeset: 500644:65ad41ad2680
user:      lukem <lukem%NetBSD.org@localhost>
date:      Thu Dec 14 22:14:45 2000 +0000

description:
revert 1.51 and 1.52 (_KERNEL_foo stuff), due to loud objections from
a couple of people.  we'll just have to go back to adding this manually
to our config files...

diffstat:

 usr.sbin/config/main.c |  29 ++++-------------------------
 1 files changed, 4 insertions(+), 25 deletions(-)

diffs (51 lines):

diff -r d8da62e71e72 -r 65ad41ad2680 usr.sbin/config/main.c
--- a/usr.sbin/config/main.c    Thu Dec 14 22:00:20 2000 +0000
+++ b/usr.sbin/config/main.c    Thu Dec 14 22:14:45 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: main.c,v 1.52 2000/12/12 17:49:20 lukem Exp $  */
+/*     $NetBSD: main.c,v 1.53 2000/12/14 22:14:45 lukem Exp $  */
 
 /*
  * Copyright (c) 1992, 1993
@@ -905,16 +905,10 @@
 void
 setupdirs(void)
 {
-#define KERNNAMEOPTPREFIX      "_KERNEL_"
-       char            *p, buf[sizeof(KERNNAMEOPTPREFIX) + PATH_MAX + 1];
-       const char      *name;
-       struct stat      st;
+       struct stat st;
 
-                       /*
-                        * srcdir must be specified if builddir is not
-                        * specified or if no configuration filename was
-                        * specified.
-                        */
+       /* srcdir must be specified if builddir is not specified or if
+        * no configuration filename was specified. */
        if ((builddir || strcmp(defbuilddir, ".") == 0) && !srcdir) {
                error("source directory must be specified");
                exit(1);
@@ -946,21 +940,6 @@
                              srcdir);
                exit(2);
        }
-
-                       /*
-                        * add option `KERNEL_foo', where `foo' is the
-                        * basename of either the build dir (if set)
-                        * or the basename of the config file
-                        */
-       name = (builddir) ? builddir : conffile;
-       if ((p = strrchr(name, '/')) != NULL)
-               name = p + 1;
-       snprintf(buf, sizeof(buf), "%s%s", KERNNAMEOPTPREFIX, name);
-       for (p = buf; *p; p++) {                /* prevent pain... */
-               if (! isalnum(*p))
-                       *p = '_';
-       }
-       (void)addoption(intern(buf), NULL);
 }
 
 /*



Home | Main Index | Thread Index | Old Index