diff options
author | John Baldwin <jhb@FreeBSD.org> | 2010-10-29 19:17:07 +0000 |
---|---|---|
committer | John Baldwin <jhb@FreeBSD.org> | 2010-10-29 19:17:07 +0000 |
commit | 67fb1bc8edb075b95240d1a3b403882bc37cb14f (patch) | |
tree | 9a7ff872b8e3ae2d7c175d440bf26857b539cc7f /usr.sbin/config/main.c | |
parent | 252e4a96e6f3a3e48155beed5413fab4dcf35250 (diff) | |
download | src-67fb1bc8edb075b95240d1a3b403882bc37cb14f.tar.gz src-67fb1bc8edb075b95240d1a3b403882bc37cb14f.zip |
Remove support for creating the 'machine' symlink as well as creating the
extra MACHINE_ARCH symlink for certain platforms (such as pc98). The
support for creating these symlinks was added to sys/conf/kern.post.mk in
changeset 152964. The intention of that commit was to remove this code
from config(8), but config(8) was never updated.
Approved by: imp
Notes
Notes:
svn path=/head/; revision=214523
Diffstat (limited to 'usr.sbin/config/main.c')
-rw-r--r-- | usr.sbin/config/main.c | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/usr.sbin/config/main.c b/usr.sbin/config/main.c index b59bba443a6c..b1d4b5d5d6c7 100644 --- a/usr.sbin/config/main.c +++ b/usr.sbin/config/main.c @@ -108,7 +108,6 @@ main(int argc, char **argv) struct stat buf; int ch, len; char *p; - char xxx[MAXPATHLEN]; char *kernfile; int printmachine; @@ -218,32 +217,6 @@ main(int argc, char **argv) } else if (!S_ISDIR(buf.st_mode)) errx(EXIT_FAILURE, "%s isn't a directory", p); - /* - * make symbolic links in compilation directory - * for "sys" (to make genassym.c work along with #include <sys/xxx>) - * and similarly for "machine". - */ - if (*srcdir == '\0') - (void)snprintf(xxx, sizeof(xxx), "../../include"); - else - (void)snprintf(xxx, sizeof(xxx), "%s/%s/include", - srcdir, machinename); - (void) unlink(path("machine")); - (void) symlink(xxx, path("machine")); - if (strcmp(machinename, machinearch) != 0) { - /* - * make symbolic links in compilation directory for - * machinearch, if it is different than machinename. - */ - if (*srcdir == '\0') - (void)snprintf(xxx, sizeof(xxx), "../../../%s/include", - machinearch); - else - (void)snprintf(xxx, sizeof(xxx), "%s/%s/include", - srcdir, machinearch); - (void) unlink(path(machinearch)); - (void) symlink(xxx, path(machinearch)); - } configfile(); /* put config file into kernel*/ options(); /* make options .h files */ makefile(); /* build Makefile */ |