]> git.baikalelectronics.ru Git - kernel.git/commit
kbuild: make samples depend on headers_install
authorArnd Bergmann <arnd@arndb.de>
Mon, 4 Jul 2016 14:39:35 +0000 (16:39 +0200)
committerMichal Marek <mmarek@suse.com>
Fri, 22 Jul 2016 11:58:59 +0000 (13:58 +0200)
commit1ee2597843d33c687c96d3dd1dd73416136318f5
tree934e2fae08180da5a97840c0d7704496c7c8779f
parentebed3e619311df54928dc331143b0f1fd8caa482
kbuild: make samples depend on headers_install

Olof's build test setup keeps failing to compile arm64 kernels
because of a toolchain that uses outdated kernel headers:

/work/build/batch/samples/seccomp/bpf-fancy.c:13:27: fatal error: linux/seccomp.h: No such file or directory

This is of course something he could change, but it also indicates
that others may run into the same problem. Running 'make headers_install'
avoids the issue by ensuring that the kernel headers are put into
the $(objdir)/usr/include path before we build the samples.

The same problem happened for the Documentation build in the
past and was fixed up with commit f293d113fbb4 ("Make Documenation
depend on headers_install"). This adds an identical Makefile dependency
for the samples/ subdirectory.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Michal Marek <mmarek@suse.com>
Makefile