On 03/22/2013 05:49 AM, Mike Goins wrote:
On Thu, Mar 21, 2013 at 3:32 PM, Peter Barada <[email protected]> wrote:
On 03/21/2013 02:36 PM, Stuart Hughes wrote:
Hi Aaron,
From what I recall 'make headers_install' is not sufficient on all
platforms to provide the required interface. IIRC the
PKG_KERNEL_WANT_HEADERS leaves the actual kernel headers unpacked so
that some packages can reach indirectly and grab what they want.
Stuart,
with the diff I provided (and adding
CNFIG_PKG_WANT_KERNEL_HEADERS_INSTALL=y in your platform .config), it
does install the kernel headers and is able to build kernel modules and
a bunch of the packages that need kernel headers. Its independed of
whether the kernel source is left unpacked...
I haven't found headers_install (or the manual version of the
equivalent) sufficient to build out-of-tree kernel modules without the
kernel source. Kbuild system seems to build and use host binaries
which can't be "installed" into the rootfs.
What I meant was "make headers_install" works for all the packages I've
built that need the kernel headers(outside of kernel modules). Yes,
building a kernel module needs the kernel source (to get the Makefile
structure to build/install the module).
Regards, Stuart
On 19/03/13 19:35, Aaron Wegner wrote:
Going through the Git log of the Linux kernel it seems like there has been
a basic implementation of 'make headers_install' since about 2.6.17. I
was trying to install the headers of a 3.8 kernel and running into some
problems. I seemed to be able to overcome these by editing
dist/lfs-5.1/kernel/kernel-common.tmpl and replacing the
PKG_KERNEL_WANT_HEADERS section with the following.
if [ -n "$PKG_KERNEL_WANT_HEADERS" ]
then
make ARCH=$LINTARCH HOSTCC="$BUILDCC"
INSTALL_HDR_PATH=$RPM_BUILD_ROOT/%{pfx}/usr/src/linux headers_install
fi
Maybe this could be a patch? Not exactly sure how to specify the
condition that the kernel version is greater than or equal to one in which
the 'make headers_install' is working well, but for recent kernels the
current LTIB spec file fails since the includes are reordered from the old
way.
Thanks,
Aaron
_______________________________________________
LTIB home page: http://ltib.org
Ltib mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/ltib
_______________________________________________
LTIB home page: http://ltib.org
Ltib mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/ltib
--
Peter Barada
[email protected]
_______________________________________________
LTIB home page: http://ltib.org
Ltib mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/ltib
_______________________________________________
LTIB home page: http://ltib.org
Ltib mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/ltib
--
Peter Barada
[email protected]
_______________________________________________
LTIB home page: http://ltib.org
Ltib mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/ltib