/[gentoo]/xml/htdocs/doc/en/gentoo-x86-install.xml
Gentoo

Diff of /xml/htdocs/doc/en/gentoo-x86-install.xml

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.37 Revision 1.38
605 </body> 605 </body>
606 </section> 606 </section>
607 </chapter> 607 </chapter>
608 <chapter> 608 <chapter>
609 <title>Setting Gentoo optimizations (make.conf)</title> 609 <title>Setting Gentoo optimizations (make.conf)</title>
610 <section> 610 <section>
611 <body> 611 <body>
612 <p>Now that you have a working copy of the Portage tree, people using stage1 to 612 <p>Now that you have a working copy of the Portage tree, people using stage1 to
613 install will need to bootstrap their Gentoo Linux system as follows. First 613 install will need to bootstrap their Gentoo Linux system as follows. First
614 edit the file <path>/etc/make.conf</path>. In this file, you should set your 614 edit the file <path>/etc/make.conf</path>. In this file, you should set your
615 <c>USE</c> flags, which specify optional functionality that you would 615 <c>USE</c> flags, which specify optional functionality that you would
616 like to be built into packages; generally, the defaults (an <e>empty</e> 616 like to be built into packages; generally, the defaults (an <e>empty</e>
617 or unset <c>USE</c> variable) are fine. 617 or unset <c>USE</c> variable) are fine.
618 More information on <c>USE</c> flags can be found 618 More information on <c>USE</c> flags can be found
619 <uri link="http://www.gentoo.org/doc/en/use-howto.xml">here</uri>. 619 <uri link="http://www.gentoo.org/doc/en/use-howto.xml">here</uri>.
620 A complete list of current USE flags can be found
621 <uri link="http://www.gentoo.org/dyn/use-index.xml">here</uri>.
620 </p> 622 </p>
621 <p>You also should set appropriate <c>CHOST</c>, <c>CFLAGS</c> and 623 <p>You also should set appropriate <c>CHOST</c>, <c>CFLAGS</c> and
622 <c>CXXFLAGS</c> settings for the kind of system that you are creating 624 <c>CXXFLAGS</c> settings for the kind of system that you are creating
623 (commented examples can be found further down in the file.) Your best friend 625 (commented examples can be found further down in the file.) Your best friend
624 is <path>man gcc</path> to figure out what additional <c>CFLAGS</c> and 626 is <path>man gcc</path> to figure out what additional <c>CFLAGS</c> and
625 <code>CXXFLAGS</code> are available. Search for 'Optimization'. 627 <code>CXXFLAGS</code> are available. Search for 'Optimization'.
626 </p> 628 </p>
627 <p>If necessary, you can also set proxy information here if you are behind a 629 <p>If necessary, you can also set proxy information here if you are behind a
628 firewall. 630 firewall.
629 </p> 631 </p>
630 <pre caption="Setting make.conf Options"> 632 <pre caption="Setting make.conf Options">
631# <c>nano -w /etc/make.conf</c> <comment>(Adjust these settings)</comment> 633# <c>nano -w /etc/make.conf</c> <comment>(Adjust these settings)</comment>
632 </pre> 634 </pre>
633 <note> 635 <note>
634 People who need to substantially tweak the build process should take a look at 636 People who need to substantially tweak the build process should take a look at
824 <path>vanilla-sources</path> 826 <path>vanilla-sources</path>
825 </ti> 827 </ti>
826 <ti>A stock Linux kernel source tree, just like you'd get from kernel.org</ti> 828 <ti>A stock Linux kernel source tree, just like you'd get from kernel.org</ti>
827 </tr> 829 </tr>
828 </table> 830 </table>
829 <warn> 831 <warn>
830 If you are configuring your own kernel, be careful with the <i>grsecurity</i> option. Being too aggressive with your 832 If you are configuring your own kernel, be careful with the <i>grsecurity</i> option. Being too aggressive with your
831 security settings can cause certain programs (such as X) to not run properly. If in doubt, leave it out. 833 security settings can cause certain programs (such as X) to not run properly. If in doubt, leave it out.
832 </warn> 834 </warn>
833 <p>Choose a kernel and then merge as follows:</p> 835 <p>Choose a kernel and then merge as follows:</p>
834 <pre caption="Emerging Kernel Sources"> 836 <pre caption="Emerging Kernel Sources">
835# <c>emerge sys-kernel/gentoo-sources</c> 837# <c>emerge sys-kernel/gentoo-sources</c>
836 </pre> 838 </pre>
837 <p>Once you have a Linux kernel source tree available, it's time to compile your own custom kernel. 839 <p>Once you have a Linux kernel source tree available, it's time to compile your own custom kernel.
838 </p> 840 </p>
841 <p>Please note that <path>/usr/src/linux</path> is a symlink to your current emerged kernel source package,
842 which is set automatically by Portage at emerge time.
843 If you have multiple kernel source packages, it is necessary to set the <path>/usr/src/linux</path> symlink
844 to the correct one before proceeding.
845 </p>
839 <pre caption="Compiling the Linux Kernel"> 846 <pre caption="Compiling the Linux Kernel">
840# <c>cd /usr/src/linux</c> 847# <c>cd /usr/src/linux</c>
841# <c>make menuconfig</c> 848# <c>make menuconfig</c>
842# <c>make dep &amp;&amp; make clean bzImage modules modules_install</c> 849# <c>make dep &amp;&amp; make clean bzImage modules modules_install</c>
843# <c>mv /boot/bzImage /boot/bzImage.orig</c> 850# <c>mv /boot/bzImage /boot/bzImage.orig</c>
844<comment>[if bzImage already exists]</comment> 851<comment>[if bzImage already exists]</comment>
845# <c>cp /usr/src/linux/arch/i386/boot/bzImage /boot</c> 852# <c>cp /usr/src/linux/arch/i386/boot/bzImage /boot</c>
846 </pre> 853 </pre>
847 <warn>For your kernel to function properly, there are several options that you will 854 <warn>For your kernel to function properly, there are several options that you will
848 need to ensure are in the kernel proper -- that is, they should <i>be enabled and not 855 need to ensure are in the kernel proper -- that is, they should <i>be enabled and not
849 compiled as modules</i>. You will need to enable the <i>&quot;Code maturity 856 compiled as modules</i>. You will need to enable the <i>&quot;Code maturity
850 level options --&gt; Prompt for development and/or incomplete code/drivers&quot;</i> 857 level options --&gt; Prompt for development and/or incomplete code/drivers&quot;</i>
851 option to see several of these selections. 858 option to see several of these selections.
852 Under the &quot;File systems&quot; section, be sure to enable the <i>&quot;Device File System&quot;</i> (note that 859 Under the &quot;File systems&quot; section, be sure to enable the <i>&quot;Device File System&quot;</i> (note that
853 you <e>don't</e> need to enable the &quot;/dev/pts file system support&quot; option). You'll also 860 you <e>don't</e> need to enable the &quot;/dev/pts file system support&quot; option). You'll also

Legend:
Removed from v.1.37  
changed lines
  Added in v.1.38

  ViewVC Help
Powered by ViewVC 1.1.20