Date: Sat, 25 Jan 2003 00:30:46 -0800 (PST) From: Juli Mallett <jmallett@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 24175 for review Message-ID: <200301250830.h0P8UkaR014406@repoman.freebsd.org>
index | next in thread | raw e-mail
http://perforce.freebsd.org/chv.cgi?CH=24175 Change 24175 by jmallett@jmallett_dalek on 2003/01/25 00:30:31 Make the platform keyword imply an options one... e.g.: platform sgimips implies not only to create a symlink for <platform> to <sgimips> but also, options SGIMIPS Affected files ... .. //depot/projects/mips/sys/mips/conf/GENERIC#6 edit .. //depot/projects/mips/usr.sbin/config/mkoptions.c#2 edit Differences ... ==== //depot/projects/mips/sys/mips/conf/GENERIC#6 (text+ko) ==== @@ -11,9 +11,7 @@ makeoptions WERROR=-Wno-error #XXX: We don't want -Werror just now # Platform support -platform sgimips #SGI MIPS guts -# XXX Should be implied by the above. -options SGIMIPS #SGI MIPS hardware +platform sgimips #SGI MIPS systems. # Hardware support device arcbios #ARCBIOS ==== //depot/projects/mips/usr.sbin/config/mkoptions.c#2 (text+ko) ==== @@ -78,7 +78,20 @@ op->op_name = ns(cp->cpu_name); op->op_next = opt; opt = op; - } + } + + /* Fake the platform as an option. */ + if (platformname != NULL) { + char *p; + + op = (struct opt *)malloc(sizeof(*op)); + memset(op, 0, sizeof(*op)); + op->op_name = ns(platformname); + for (p = op->op_name; *p != '\0'; p++) + *p = toupper((unsigned char)*p); + op->op_next = opt; + opt = op; + } if (maxusers == 0) { /* printf("maxusers not specified; will auto-size\n"); */ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe p4-projects" in the body of the messagehelp
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200301250830.h0P8UkaR014406>
