Chapter 5 Kernel Headers

Chris Lingard chris at
Sun Mar 24 13:17:30 PST 2002

David wrote:

> Hi All,
>   In Chapter 5 Building the kernel header files shouldn't the line in
> the script be specific to the architecture of the system like this?
>     cp include/asm-<arch>/* $LFS/usr/include/asm &&
> Replacing "<arch>" with proper system architecture of course.
> The line in the book is this.
>      cp include/asm/* $LFS/usr/include/asm &&

When you do the make mrproper ......  make dep
this sets a sysbolic link to the correct architecture
asm -> asm-i386

Please let us know if this is not happening

> But yet there is no "asm" directory in the linux kernel tree. It uses
> "asm-<arch>" instead. The line above causes compiling sysklogd in
> Chapter 6 to fail due to not being able to find "msgbuf.h" in "asm"
> which is missing due to not using the "asm-<arch>". It seems it would
> cause problems with other packages also.
> I hope I explained that right or at least where you can understand it. ;-)

Unsubscribe: send email to listar at
and put 'unsubscribe lfs-support' in the subject header of the message

More information about the lfs-support mailing list