[Buildroot] Error when adding media-ctl as package

Patrick kpa_info at yahoo.fr
Wed Jan 9 09:36:00 UTC 2013


On 01/09/2013 09:51 AM, Thomas Petazzoni wrote:
> Dear Patrick,
>
> On Wed, 09 Jan 2013 09:45:12 +0100, Patrick wrote:
>
>> checking linux/media.h usability... no
>> checking linux/media.h presence... no
>> checking for linux/media.h... no
>> ERROR: Kernel header file not found or not usable!
>>
>> I think that a "make headers_install" is missing when compiling the
>> kernel. I use a buildroot external toolchain. How could I say to
>> buildboot to add the "make headers_install" step ?
>
> Normally, the kernel headers are part of the toolchain, so they should
> already be in $(STAGING_DIR)/usr/include without having to do anything
> special.
>
> However, if your toolchain is too old, it may not contain sufficiently
> up-to-date kernel headers. The simplest option is to try to update your
> toolchain to a slightly more recent one, so that media.h is provided
> directly with your toolchain, and we have nothing to do.
>
> If it doesn't work, then it's annoying, because we don't really have a
> good way to install the kernel headers of the kernel being built by
> Buildroot... It's doable, but it would probably mean that the media-ctl
> package would depend on BR2_LINUX_KERNEL, which would make it unusable
> for people who build their kernel outside of Buildroot. Maybe an
> acceptable compromise.
>
> Another solution is to carry a patch in the media-ctl package that adds
> a local copy of the media.h header (and other needed kernel headers).
>
> Thomas
>
Ok I updated to a more recent toolchain and it works.

Thanks for your help

Patrick



More information about the buildroot mailing list