From 66e432588705fb9a93210428be3ab4d1ab711792 Mon Sep 17 00:00:00 2001 From: Gerard Beekmans Date: Tue, 3 Jun 2003 22:25:25 +0000 Subject: Applied Alex' "apapting-the-text.patch" patch git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@2639 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689 --- chapter05/kernelheaders-inst.xml | 28 ++++++---------------------- 1 file changed, 6 insertions(+), 22 deletions(-) (limited to 'chapter05/kernelheaders-inst.xml') diff --git a/chapter05/kernelheaders-inst.xml b/chapter05/kernelheaders-inst.xml index dac03be82..96f629dd0 100644 --- a/chapter05/kernelheaders-inst.xml +++ b/chapter05/kernelheaders-inst.xml @@ -3,27 +3,11 @@ Installation of the kernel headers -We won't be compiling a new kernel yet -- we'll do that when we have -finished the installation of all the packages. But as some packages need the -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. - -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 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 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. - -In light of this, you might want to run chown -R 0:0 -on the linux-&kernel-version; directory -to ensure all files are owned by user root. - -Prepare for header installation: +As some packages need to refer to the kernel header files, we're going +to unpack the kernel archive now, set it up, and copy the required files to a +place where gcc can later find them. + +Prepare for the header installation with: make mrproper @@ -41,7 +25,7 @@ symlink: make symlinks -Install the platform specific-header files: +Install the platform-specific header files: mkdir /stage1/include/asm cp include/asm/* /stage1/include/asm -- cgit v1.2.3-54-g00ecf