1 | <sect2>
|
---|
2 | <title>Command explanations</title>
|
---|
3 |
|
---|
4 | <para><userinput>make mrproper:</userinput> This will ensure that the kernel
|
---|
5 | tree is absolutely clean.</para>
|
---|
6 |
|
---|
7 | <para><userinput>yes "" | make config:</userinput> This runs make config and
|
---|
8 | answers with the default answer to every question the config script asks
|
---|
9 | the user (it does this by simply doing the equivalent of hitting the
|
---|
10 | Enter key, thus accepting the default Y and N answers to the questions).
|
---|
11 | We're not configuring the real kernel here, we just need to have some sort
|
---|
12 | of configure file created so that we can run make dep next that will
|
---|
13 | create a few files in $LFS/usr/src/linux/include/linux, like version.h,
|
---|
14 | among others, that we will need to compile Glibc and other packages later
|
---|
15 | in chroot.</para>
|
---|
16 |
|
---|
17 | <para><userinput>make dep:</userinput> make dep checks dependencies and sets
|
---|
18 | up the dependencies file. We don't really care about the dependency
|
---|
19 | checks, but what we do care about is that make dep creates those
|
---|
20 | aforementioned files in $LFS/usr/src/linux/include/linux we will be
|
---|
21 | needing later on.</para>
|
---|
22 |
|
---|
23 | <para><userinput>cp -a ../src/linux/include/linux .</userinput> and
|
---|
24 | <userinput>mkdir asm && cp -a ../src/linux/include/asm/* .</userinput>:
|
---|
25 | These commands copy the kernel headers in the
|
---|
26 | <filename>$LFS/usr/include</filename> directory.</para>
|
---|
27 |
|
---|
28 | <para><userinput>chown root.root $LFS/usr/include/linux -R </userinput> and
|
---|
29 | <userinput>chown root.root $LFS/usr/include/asm -R </userinput>:
|
---|
30 | These commands change the ownership of the
|
---|
31 | <filename>$LFS/usr/include/linux</filename> and the
|
---|
32 | <filename>$LFS/usr/include/asm</filename> directories, plus all the
|
---|
33 | files contained therein to the user root and group root.</para>
|
---|
34 |
|
---|
35 | </sect2>
|
---|
36 |
|
---|