From mboxrd@z Thu Jan 1 00:00:00 1970 From: Patrick Date: Wed, 09 Jan 2013 10:36:00 +0100 Subject: [Buildroot] Error when adding media-ctl as package In-Reply-To: <20130109095119.39ad1ee9@skate> References: <50EC1EBF.80807@yahoo.fr> <50EC7F16.3090008@mind.be> <50ED24FE.3070703@yahoo.fr> <20130109092722.7cb8409b@skate> <50ED2E18.8070502@yahoo.fr> <20130109095119.39ad1ee9@skate> Message-ID: <50ED3A00.3060907@yahoo.fr> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: buildroot@busybox.net 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