[Buildroot] [PATCH v4] linux-headers: allow use of headers from kernel "package" selected

Peter Korsgaard peter at korsgaard.com
Mon Jan 18 22:21:08 UTC 2016


>>>>> "Thomas" == Thomas Petazzoni <thomas.petazzoni at free-electrons.com> writes:

>> So, do we agree that we should drop this patch?

 > I also don't like the way the patch is implemented, but I think the
 > problem raised by this patch is real. Sometimes people have kernel
 > sources that contain some custom kernel headers needed for their
 > userspace libraries/applications, and we have no mechanism to allow
 > them to use their custom kernel source for the linux-headers package,
 > which is a bit annoying.

Yeah, true. It does require that these custom header files are really
exported (so they get installed by headers_install) which in my
experience is not always the case.

What I have told people to do in the past instead is to either copy the
needed definitions into their user space code or add
-I$(LINUX_DIR)/include (if they build their kernel in Buildroot) like
E.G. xdriver_xf86-video-imx does it.

-- 
Venlig hilsen,
Peter Korsgaard 



More information about the buildroot mailing list