Changeset 91f763ae for chapter06/linux-headers.xml
- Timestamp:
- 10/04/2019 07:22:53 PM (5 years ago)
- Branches:
- multilib-10.1
- Children:
- 12e721d
- Parents:
- 5e009ae
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
chapter06/linux-headers.xml
r5e009ae r91f763ae 54 54 55 55 <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 64 find usr/include -name '.*' -delete 65 rm usr/include/Makefile 66 </userinput><userinput remap="install">cp -rv usr/include/* /usr/include</userinput></screen> 65 67 66 68 </sect2>
Note:
See TracChangeset
for help on using the changeset viewer.