diff options
author | Pierre Labastie <pieere@linuxfromscratch.org> | 2019-09-25 12:32:25 +0000 |
---|---|---|
committer | Pierre Labastie <pieere@linuxfromscratch.org> | 2019-09-25 12:32:25 +0000 |
commit | f5eb738df4963c9ff03bfab2c629fc1387f222e6 (patch) | |
tree | 447aeca0962531554614cd779b8104d681ff2e21 /chapter06/linux-headers.xml | |
parent | 2e836feb0bf935c2e4625d195743ab9b8c833fb8 (diff) |
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
Diffstat (limited to 'chapter06/linux-headers.xml')
-rw-r--r-- | chapter06/linux-headers.xml | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/chapter06/linux-headers.xml b/chapter06/linux-headers.xml index 1bf45bff5..f1d4cb14e 100644 --- a/chapter06/linux-headers.xml +++ b/chapter06/linux-headers.xml @@ -53,15 +53,17 @@ <screen><userinput remap="pre">make mrproper</userinput></screen> <para>Now extract the user-visible kernel headers from the source. - They are placed in an intermediate local directory and copied to the needed - location because the extraction process removes any existing files in - the target directory. There are also some hidden files used by - the kernel developers and not needed by LFS that are removed from - the intermediate directory.</para> - -<screen><userinput remap="make">make INSTALL_HDR_PATH=dest headers_install -find dest/include \( -name .install -o -name ..install.cmd \) -delete -</userinput><userinput remap="install">cp -rv dest/include/* /usr/include</userinput></screen> + The recommended make target <quote>headers_install</quote> cannot be + used, because it requires <application>rsync</application>, which is + not available in <filename class="directory">/tools</filename>. The + headers are first placed in <filename class="directory">./usr</filename>, + then some files used by the kernel developers are removed, then + the files are copied to their final location.</para> + +<screen><userinput remap="make">make headers +find usr/include -name '.*' -delete +rm usr/include/Makefile +</userinput><userinput remap="install">cp -rv usr/include/* /usr/include</userinput></screen> </sect2> |