Date: Fri, 27 Apr 2001 18:06:59 -0700 From: Kris Kennaway <kris@obsecurity.org> To: Stephen Hilton <nospam@hiltonbsd.com> Cc: freebsd-stable@FreeBSD.ORG Subject: Re: Selective install 4.3 cvsup Message-ID: <20010427180659.A24927@xor.obsecurity.org> In-Reply-To: <NEBBJFPJOMGCGNBMJMCHKEOJCBAA.nospam@hiltonbsd.com>; from nospam@hiltonbsd.com on Fri, Apr 27, 2001 at 02:14:17PM -0500 References: <NEBBJFPJOMGCGNBMJMCHKEOJCBAA.nospam@hiltonbsd.com>
next in thread | previous in thread | raw e-mail | index | archive | help
[-- Attachment #1 --]
On Fri, Apr 27, 2001 at 02:14:17PM -0500, Stephen Hilton wrote:
> # make -DNOPROFILE=true -DNOGAMES=true buildkernel KERNCONF=MYKERNEL
-DNOGAMES and -DNOPROFILE control userland code; they don't affect the
kernel builds whatsoever. There are no games in the kernel (though
perhaps there should be ;-)
> If I copy /etc/defaults/make.conf to /etc/make.conf and uncomment these lines:
> NOGAMES= true # do not build games (games/ subdir)
> NOPROFILE= true # Avoid compiling profiled libraries
>
> Can my make commands from examples above become:
> # make buildworld
> # make buildkernel KERNCONF=MYKERNEL
> ...
> with the same results ?
Yes, with the above note that they're already doing nothing :-)
/etc/make.conf is the usual way for setting those variables to control
building of parts of make world, though (which is what the NOFOO
options do).
> If I do not uncomment these lines will the make installworld command
> not install kerberos by default ?
Correct; the Kerberos stuff won't even be built.
> Can I then locate the kerberos related files and delete them because
> I installed them with my original 4.2-release install from CD-ROM ?
Yes.
> In /etc/make.conf
>
> #CFLAGS= -O -pipe
> #CPUTYPE=i686
> #NO_CPU_CFLAGS= true # Don't add -march=<cpu> to CFLAGS automatically
> #NO_CPU_COPTFLAGS=true # Don't add -march=<cpu> to COPTFLAGS automatically
>
> >From the docs it appears that I should uncomment "#CFLAGS= -O -pipe"
> What about the other 3 options listed above ?
>
> Again this is a Pentium III processor.
CPUTYPE will add various applicable gcc optimization directives
(-march=<...>) to the CFLAGS and COPTFLAGS value (-O -pipe is the
default value for these and need not be changed), as well as turning
on optimized asm code in OpenSSL and some ports. NO_CPU_* says not to
add the directives to CFLAGS/COPTFLAGS in case you only want the asm
code. If you want neither you just don't set CPUTYPE :-)
> If it was a Pentium based system would I change the option
> "CPUTYPE=i686" to "CPUTYPE=i586" in the /etc/make.conf file ?
Yes. Actually, as noted in /etc/make.conf a valid value for CPUTYPE
is 'p3' for the Pentium III; the value of i686 ("Pentium Pro") doesn't
enable Pentium MMX opcodes, which are used by one or two ports (this
is currently the only difference between those cases -- so far nothing
uses the PIII SSE instruction set, which would also be activated by
p3).
> I am assuming that this option optimizes base code for the O.S.
> like the kernel option "cpu I686_CPU" does for the kernel,
> Is my assumption correct ?
The I686_CPU is separate and turns on CPU-specific asm code in the
kernel.
> Is uncommenting this option O.K. for this type of system ?
Yes.
> rm these files:
> /usr/bin/uucp
[...]
Yes. There's probably no point in removing the device nodes, they
don't harm anything..
Kris
[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.4 (FreeBSD)
Comment: For info see http://www.gnupg.org
iD8DBQE66hezWry0BWjoQKURAvxWAKDdDo/x0uAYpgV16rAN+an3Y1SnrgCg5yCI
Ovp3Z1s8PHLIucUMxs7tmXI=
=CfR4
-----END PGP SIGNATURE-----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010427180659.A24927>
