ltib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Ltib] LTIB-11-4-1-SV Kernel Headers is not Installed


From: Stuart Hughes
Subject: Re: [Ltib] LTIB-11-4-1-SV Kernel Headers is not Installed
Date: Mon, 02 Apr 2012 17:04:30 +0100
User-agent: Mozilla/5.0 (X11; Linux i686; rv:11.0) Gecko/20120310 Thunderbird/11.0

Hi Daniel,

Unfortunately that won't work for all situations, it used to be that way.  Even more unfortunately (and I forget the details) the way the headers need to be installed has changed over time with both arch and kernel version.

So if it works for what you need that's fine, but it might be better to copy this to the platform specific directory (config/platform/ea....) until someone figures out a common approach that will work for all platforms/versions.  If you do that, you'll need to rm all the cached .spec files built from templates in tmp directory under your ltib project.

Regards, Stuart

On 02/04/12 07:23, Daniel Widyanto wrote:

Hi all,

 

I'm using ltib-11-4-1-sv to build linux-2.6.33 for EA3131 (Embedded Artist - LPC3131) board, and I found out that the kernel headers are not installed properly in rootfs/usr/src/linux/include. The LTIB kernel headers missed the Makefile to build external modules. So the header files cannot be used to compile external module / device drivers.

 

The common practice to install Linux-2.6 headers is to use 'make ARCH=arm INSTALL_HDR_PATH=${header_dir} headers_install'. I've updated 'dist/lfs-5.1/kernel/kernel-common.tmpl' to include it:

----------------------------------

if [ -n "$PKG_KERNEL_WANT_HEADERS" ]

then

    make ARCH=$LINTARCH HOSTCC="$BUILDCC" INSTALL_HDR_PATH=$RPM_BUILD_ROOT/%{pfx}/usr/src/linux headers_install

#    mkdir -p $RPM_BUILD_ROOT/%{pfx}/usr/src/linux/include

#    for i in asm-${LINTARCH} asm-generic config linux math-emu media mtd net pcmcia rxrpc scsi sound video

#    do

#        if [ -d include/$i ]

#        then

#            cp -a include/$i $RPM_BUILD_ROOT/%{pfx}/usr/src/linux/include

#        fi

#    done

#

#    for i in asm config linux

#    do

#        if [ -d $KBOUT/include/$i ]

#        then

#            cp -a $KBOUT/include/$i $RPM_BUILD_ROOT/%{pfx}/usr/src/linux/include

#        fi

#    done

#

#    if [ "${LINTARCH}" = "arm" ]

#    then

#        if [ -d "$KBOUT/include/asm/arch" ]

#        then

#            mkdir -p $RPM_BUILD_ROOT/%{pfx}/usr/src/linux/include/asm/arch

#            cp -a $KBOUT/include/asm/arch/* $RPM_BUILD_ROOT/%{pfx}/usr/src/linux/include/asm/arch

#        else

#            echo "Don't know how to copy asm headers for this kernel"

#        fi

#    fi

fi

----------------------------------

However, in the rootfs/usr/src/linux/include, I still didn't see the Linux Makefile that can be used to compile external modules.

 

Regards,

Daniel Widyanto

Application Engineer, Global Sales & Marketing

NXP Semiconductors Singapore Pte Ltd

620A Lorong 1 Toa Payoh, TP4 Level 4, Singapore 319762

Tel: +65 68824211, Fax: +65 62506010, Mobile: +65 81289416

E-mail: address@hidden, www.nxp.com

 

The information contained in this message is confidential and may be legally privileged. The message is intended solely for the addressee(s). If you are not the intended recipient, you are hereby notified that any use, dissemination, or reproduction is strictly prohibited and may be unlawful. If you are not the intended recipient, please contact the sender by return e-mail and destroy all copies of the original message.

 

All transactions for the purchase of NXP’s products from the NXP group of companies are subject to NXP’s general terms and conditions of commercial sale. These are published at http://www.nxp.com/profile/terms/index.html

 



_______________________________________________
LTIB home page: http://ltib.org

Ltib mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/ltib


reply via email to

[Prev in Thread] Current Thread [Next in Thread]