diff --git a/chapter01/changelog.xml b/chapter01/changelog.xml index 40be5fc07..69547064f 100644 --- a/chapter01/changelog.xml +++ b/chapter01/changelog.xml @@ -6,6 +6,9 @@ +January 14th, 2002 [marcheerdink]: Changed the kernel header +files installation in chapter 5 so it's a bit more portable. + January 6th, 2002 [gerard]: Reformatted the dependency lists. diff --git a/chapter05/kernel-exp.xml b/chapter05/kernel-exp.xml index d2ebfba88..a5877e1b2 100644 --- a/chapter05/kernel-exp.xml +++ b/chapter05/kernel-exp.xml @@ -10,28 +10,24 @@ the user (it does this by simply doing the equivalent of hitting the Enter key, thus accepting the default Y and N answers to the questions). We're not configuring the real kernel here, we just need to have some sort of configure file created so that we can run make dep next that will -create a few files in $LFS/usr/src/linux/include/linux, like version.h, -among others, that we will need to compile Glibc and other packages later -in chroot. +create a few header files in include/linux, like +version.h, among others, that we will need to compile Glibc and other +packages later in chroot. make dep: make dep checks dependencies and sets up the dependencies file. We don't really care about the dependency checks, but what we do care about is that make dep creates those -aforementioned files in $LFS/usr/src/linux/include/linux we will be +aforementioned files in include/linux we will be needing later on. -cp -a ../src/linux/include/linux . and -mkdir asm && cp -a ../src/linux/include/asm/* -asm: -These commands copy the kernel headers in the -$LFS/usr/include directory. +cp -HR include/asm $LFS/usr/include +and cp -HR include/linux $LFS/usr/include: +These commands copy the required kernel header files to +$LFS/usr/include. -chown -R root.root $LFS/usr/include/linux and -chown -R root.root $LFS/usr/include/asm: -These commands change the ownership of the -$LFS/usr/include/linux and the -$LFS/usr/include/asm directories, plus all the -files contained therein to the user root and group root. +chown -R root.root $LFS/usr/include: +This ensures all header files under $LFS/usr/include +are owned by user root and group root. diff --git a/chapter05/kernel-inst.xml b/chapter05/kernel-inst.xml index 4aca35b19..89fb578f0 100644 --- a/chapter05/kernel-inst.xml +++ b/chapter05/kernel-inst.xml @@ -13,12 +13,9 @@ command: make mrproper && yes "" | make config && make dep && -cd $LFS/usr/include && -cp -a ../src/linux/include/linux . && -chown -R root.root $LFS/usr/include/linux && -mkdir asm && -cp -a ../src/linux/include/asm/* asm && -chown -R root.root $LFS/usr/include/asm +cp -HR include/asm $LFS/usr/include && +cp -HR include/linux $LFS/usr/include && +chown -R root.root $LFS/usr/include diff --git a/index.xml b/index.xml index 3af40d8d2..a4c5b9023 100644 --- a/index.xml +++ b/index.xml @@ -4,8 +4,8 @@ - - + +