ltib
[Top][All Lists]
Advanced

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

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


From: Daniel Widyanto
Subject: [Ltib] LTIB-11-4-1-SV Kernel Headers is not Installed
Date: Mon, 2 Apr 2012 08:23:13 +0200

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

 


reply via email to

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