diff --git a/chapter01/changelog.xml b/chapter01/changelog.xml index 0702c5466..189a9c2b6 100644 --- a/chapter01/changelog.xml +++ b/chapter01/changelog.xml @@ -24,6 +24,10 @@ +January 30th, 2002 [marcheerdink]: Chapters 5: Changed +the commands to copy the header files to support versions of cp older +than 4.1. + January 30th, 2002 [markh]: Chapters 5+6: Added CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE" to the configure command for patch. This fixes compilation on PPC and m68k platforms and doesn't hurt on diff --git a/chapter05/kernel-exp.xml b/chapter05/kernel-exp.xml index e52e73d60..497b454c0 100644 --- a/chapter05/kernel-exp.xml +++ b/chapter05/kernel-exp.xml @@ -23,9 +23,13 @@ checks, but what we do care about is that make dep creates those aforementioned files in include/linux we will be needing later on. -cp -HR include/asm $LFS/usr/include -and cp -HR include/linux $LFS/usr/include: -These commands copy the required kernel header files to +mkdir $LFS/usr/include/asm +and cp include/asm/* $LFS/usr/include/asm: +This copies the platform-specific assembler kernel header files to +$LFS/usr/include/asm. + +cp -R include/linux $LFS/usr/include: +This command copies the cross-platform kernel header files to $LFS/usr/include. diff --git a/chapter05/kernel-inst.xml b/chapter05/kernel-inst.xml index fc4b0ab3b..9cd6d99d1 100644 --- a/chapter05/kernel-inst.xml +++ b/chapter05/kernel-inst.xml @@ -13,8 +13,9 @@ command: make mrproper && yes "" | make config && make dep && -cp -HR include/asm $LFS/usr/include && -cp -HR include/linux $LFS/usr/include +mkdir $LFS/usr/include/asm && +cp include/asm/* $LFS/usr/include/asm && +cp -R include/linux $LFS/usr/include