|
@@ -9,21 +9,23 @@ kernel header files, we're going to unpack the kernel archive now, set it up
|
|
|
and copy the header files so they can be found by these packages.</para>
|
|
|
|
|
|
<para>It is important to note that the files in the kernel source directory
|
|
|
-are not owned by root. Whenever you unpack a package as user root (like we
|
|
|
-do here inside chroot), the files end up having the user and group ID's of
|
|
|
-whatever they were on the packager's computer. This is usually not a
|
|
|
+are not owned by <emphasis>root</emphasis>. Whenever you unpack a package as
|
|
|
+user <emphasis>root</emphasis> (like we do here inside chroot), the files end
|
|
|
+up having the user and group IDs of whatever they were on the packager's
|
|
|
+computer. This is usually not a
|
|
|
problem for any other package you install because you remove the source
|
|
|
tree after the installation. But the Linux kernel source tree is often kept
|
|
|
-around for a long time, so there's a chance that whatever userid was used will
|
|
|
-be assigned to somebody on your machine and that person would have write
|
|
|
-access to the kernel source.</para>
|
|
|
+around for a long time, so there's a chance that whatever user ID the packager
|
|
|
+used will be assigned to somebody on your machine and then that person would
|
|
|
+have write access to the kernel source.</para>
|
|
|
|
|
|
<para>In light of this, you might want to run <userinput>chown -R 0:0</userinput>
|
|
|
on the <filename>linux-&kernel-version;</filename> directory
|
|
|
to ensure all files are owned by user <emphasis>root</emphasis>.</para>
|
|
|
|
|
|
-<para>Kernel header installation requires the <emphasis>pwd</emphasis> program.
|
|
|
-In the kernel source, the path to the pwd program is hard-wired as /bin/pwd.
|
|
|
+<para>Kernel header installation requires the <filename>pwd</filename> program.
|
|
|
+In the kernel source the path to the <filename>pwd</filename> program is
|
|
|
+hard-wired as <filename>/bin/pwd</filename>.
|
|
|
Create a symlink to account for that:</para>
|
|
|
|
|
|
<para><screen><userinput>ln -s /static/bin/pwd /bin/pwd</userinput></screen></para>
|
|
@@ -58,7 +60,7 @@ cp -R include/asm-generic /usr/include</userinput></screen></para>
|
|
|
<para>There are a few kernel header files which make use of the
|
|
|
<filename>autoconf.h</filename> header file. Since we do not yet configure the
|
|
|
kernel, we need to create this file ourselves in order to avoid compilation
|
|
|
-failures. Create an empty autoconf.h file:</para>
|
|
|
+failures. Create an empty <filename>autoconf.h</filename> file:</para>
|
|
|
|
|
|
<para><screen><userinput>touch /usr/include/linux/autoconf.h</userinput></screen></para>
|
|
|
|