Ignore:
Timestamp:
09/25/2019 12:32:25 PM (5 years ago)
Author:
Pierre Labastie <pieere@…>
Branches:
10.0, 10.0-rc1, 10.1, 10.1-rc1, 11.0, 11.0-rc1, 11.0-rc2, 11.0-rc3, 11.1, 11.1-rc1, 11.2, 11.2-rc1, 11.3, 11.3-rc1, 12.0, 12.0-rc1, 12.1, 12.1-rc1, 9.1, arm, bdubbs/gcc13, ml-11.0, multilib, renodr/libudev-from-systemd, s6-init, trunk, xry111/arm64, xry111/arm64-12.0, xry111/clfs-ng, xry111/lfs-next, xry111/loongarch, xry111/loongarch-12.0, xry111/loongarch-12.1, xry111/mips64el, xry111/pip3, xry111/rust-wip-20221008, xry111/update-glibc
Children:
49ce329
Parents:
2e836fe
Message:

Linux-5.3.1, and fix the instructions for installing headers

git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@11676 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689

File:
1 edited

Legend:

Unmodified
Added
Removed
  • chapter06/linux-headers.xml

    r2e836fe rf5eb738  
    5454
    5555    <para>Now extract the user-visible kernel headers from the source.
    56     They are placed in an intermediate local directory and copied to the needed
    57     location because the extraction process removes any existing files in
    58     the target directory.  There are also some hidden files used by
    59     the kernel developers and not needed by LFS that are removed from
    60     the intermediate directory.</para>
    61 
    62 <screen><userinput remap="make">make INSTALL_HDR_PATH=dest headers_install
    63 find dest/include \( -name .install -o -name ..install.cmd \) -delete
    64 </userinput><userinput remap="install">cp -rv dest/include/* /usr/include</userinput></screen>
     56    The recommended make target <quote>headers_install</quote> cannot be
     57    used, because it requires <application>rsync</application>, which is
     58    not available in <filename class="directory">/tools</filename>. The
     59    headers are first placed in <filename class="directory">./usr</filename>,
     60    then some files used by the kernel developers are removed, then
     61    the files are copied to their final location.</para>
     62
     63<screen><userinput remap="make">make headers
     64find usr/include -name '.*' -delete
     65rm usr/include/Makefile
     66</userinput><userinput remap="install">cp -rv usr/include/* /usr/include</userinput></screen>
    6567
    6668  </sect2>
Note: See TracChangeset for help on using the changeset viewer.