Ticket #2150: lfs-kernel.patch

File lfs-kernel.patch, 5.0 KB (added by Thomas, 17 years ago)

patch on some book xmls

  • packages.ent

    RCS file: /srv/cvs/cvsroot2/mybook/packages.ent,v
    retrieving revision 1.2
    diff -u -r1.2 packages.ent
     
    301301
    302302<!ENTITY linux-major-version "2.6">
    303303<!ENTITY linux-minor-version "24">
    304 <!ENTITY linux-patch-version "">
    305 <!--<!ENTITY linux-version "&linux-major-version;.&linux-minor-version;.&linux-patch-version;">-->
    306 <!ENTITY linux-version "&linux-major-version;.&linux-minor-version;">
     304<!ENTITY linux-patch-version "1">
     305<!ENTITY linux-version "&linux-major-version;.&linux-minor-version;.&linux-patch-version;">
     306<!ENTITY linux-base-version "&linux-major-version;.&linux-minor-version;">
    307307<!ENTITY linux-size "45,642 KB">
    308 <!ENTITY linux-url "&kernel;linux/kernel/v&linux-major-version;/linux-&linux-version;.tar.bz2">
     308<!ENTITY linux-url "&kernel;linux/kernel/v&linux-major-version;/linux-&linux-base-version;.tar.bz2">
    309309<!ENTITY linux-md5 "3f23ad4b69d0a552042d1ed0f4399857">
    310310<!ENTITY linux-home "http://www.kernel.org/">
    311311<!ENTITY linux-ch8-du "350 - 450 MB">
  • patches.ent

    RCS file: /srv/cvs/cvsroot2/mybook/patches.ent,v
    retrieving revision 1.2
    diff -u -r1.2 patches.ent
     
    6868<!ENTITY kbd-gcc4_fixes-patch-size "1.4 KB">
    6969
    7070
     71<!ENTITY linux-kernel-patch "patch-&linux-version;.bz2">
     72<!ENTITY linux-kernel-patch-md5 "86d55d5080217b2e79e0fff227218cd1">
     73<!ENTITY linux-kernel-patch-size "16.6 KB">
     74
     75
    7176<!ENTITY mktemp-tempfile-patch "mktemp-&mktemp-version;-add_tempfile-3.patch">
    7277<!ENTITY mktemp-tempfile-patch-md5 "65d73faabe3f637ad79853b460d30a19">
    7378<!ENTITY mktemp-tempfile-patch-size "3.5 KB">
  • chapter03/patches.xml

    RCS file: /srv/cvs/cvsroot2/mybook/chapter03/patches.xml,v
    retrieving revision 1.2
    diff -u -r1.2 patches.xml
     
    131131    </varlistentry>
    132132
    133133    <varlistentry>
     134        <term>Linux Kernel Patch - <token>&linux-kernel-patch-size;</token>:</term>
     135        <listitem>
     136            <para>Download: <ulink url="&kernel;/pub/linux/kernel/v2.6/&linux-kernel-patch;"/></para>
     137            <para>MD5 sum: <literal>&linux-kernel-patch-md5;</literal></para>
     138        </listitem>
     139    </varlistentry>
     140
     141    <varlistentry>
    134142      <term>Mktemp Tempfile Patch - <token>&mktemp-tempfile-patch-size;</token>:</term>
    135143      <listitem>
    136144        <para>Download: <ulink url="&patches-root;&mktemp-tempfile-patch;"/></para>
  • chapter05/linux-headers.xml

    RCS file: /srv/cvs/cvsroot2/mybook/chapter05/linux-headers.xml,v
    retrieving revision 1.1.1.1
    diff -u -r1.1.1.1 linux-headers.xml
     
    4848    by way of sanitizing various C header files that are shipped in the Linux
    4949    kernel source tarball.</para>
    5050
     51    <para>First, upgrade the &linux-base-version; source to the recent patch level:</para>
     52
     53<screen><userinput remap="install">bzcat ../&linux-kernel-patch; | patch -Np1</userinput></screen>
     54
    5155    <para>Install the header files:</para>
    5256
    5357<screen><userinput remap="install">make mrproper
  • chapter06/linux-headers.xml

    RCS file: /srv/cvs/cvsroot2/mybook/chapter06/linux-headers.xml,v
    retrieving revision 1.1.1.1
    diff -u -r1.1.1.1 linux-headers.xml
     
    4646    by way of sanitizing various C header files that are shipped in the Linux
    4747    kernel source tarball.</para>
    4848
     49<para>First, upgrade the &linux-base-version; source to the recent patch level:</para>
     50
     51<screen><userinput remap="install">bzcat ../&linux-kernel-patch; | patch -Np1</userinput></screen>
     52
    4953    <para>Install the header files:</para>
    5054
    5155<screen><userinput remap="install">make mrproper
  • chapter08/kernel.xml

    RCS file: /srv/cvs/cvsroot2/mybook/chapter08/kernel.xml,v
    retrieving revision 1.1.1.1
    diff -u -r1.1.1.1 kernel.xml
     
    4545    in the kernel source tree for alternative methods to the way this book
    4646    configures the kernel.</para>
    4747
     48<para>First, upgrade the &linux-base-version; source to the recent patch level:</para>
     49
     50<screen><userinput remap="install">bzcat ../&linux-kernel-patch; | patch -Np1</userinput></screen>
     51
    4852    <para>Prepare for compilation by running the following command:</para>
    4953
    5054<screen><userinput remap="pre">make mrproper</userinput></screen>