[Clfs-support] [CLFS-embedded] Error inside the book: 6.3. Linux-4.4.21

Andrew Bradford andrew at bradfordembedded.com
Fri Feb 17 08:01:40 PST 2017


Hi Michele,

On 02/14 20:57, Michele Bucca wrote:
> 2017-02-14 13:11 GMT+01:00 Michele Bucca <michele.bucca at gmail.com>:
> > on the page that explains how to compile the kernel there's an error
> >
> > at a certain point the book suggests to use the following command to
> > generate a default config as an alternative to:
> >
> > make ARCH=${CLFS_ARCH} CROSS_COMPILE=${CLFS_TARGET}- menuconfig

This should always work to allow the user to use the menuconfig ncurses
interface to configure the kernel how they want.

> > the alternative command is:
> >
> > make ${CLFS_TARGET}_defconfig

The book notes that this alternate or 'make oldconfig' "may be more
appropriate in some situations. See the README file for more
information."

> > However it is WRONG! and it should be:
> >
> > make ${CLFS_ARCH}_defconfig
> 
> WRONG AGAIN: it should be
> 
> make i386_defconfig for x86
> make x86_64_defconfig for x86_64
> make (dunnowhat)_defconfig for arm (look in arch/arm/configs/ dir)

Yes, you are correct that using CLFS_ARCH here is not the right
thing to do.  Unfortunately, we don't seem to have any generic way to
easily recommend a defconfig which can be used.  defconfigs are not
named per the architecture of the CPU in a consistent way with any
variables used in toolchain creation.

LFS just recommends as an alternate to try using "oldconfig" but to see
the README[1], this is probably decent advice.

[1]: http://linuxfromscratch.org/lfs/view/stable/chapter08/kernel.html

> >
> > the error can be fixed editing line 53 of the file at this link
> >
> > http://git.clfs.org/?p=clfs-embedded.git;a=blob;f=BOOK/bootable/common/kernel.xml;h=f159c4cc8617da83ee7aec1e8bf2b64067fc96e6;hb=HEAD

Do you want to send a patch to the -dev mailing list to fix this?

Thanks,
Andrew



More information about the Clfs-support mailing list