diff options
| author | Arnd Bergmann <arnd@arndb.de> | 2016-07-04 10:39:35 -0400 |
|---|---|---|
| committer | Michal Marek <mmarek@suse.com> | 2016-07-22 07:58:59 -0400 |
| commit | ddea05fa148b4d8e66498e522a616d87f9cf81e3 (patch) | |
| tree | 934e2fae08180da5a97840c0d7704496c7c8779f | |
| parent | db547ef1906400eb34682e43035dd4d81b9fdcfb (diff) | |
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 8e2faea877eb ("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>
| -rw-r--r-- | Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
| @@ -1620,7 +1620,7 @@ endif | |||
| 1620 | $(Q)$(MAKE) KBUILD_MODULES=$(if $(CONFIG_MODULES),1) \ | 1620 | $(Q)$(MAKE) KBUILD_MODULES=$(if $(CONFIG_MODULES),1) \ |
| 1621 | $(build)=$(build-dir) | 1621 | $(build)=$(build-dir) |
| 1622 | # Make sure the latest headers are built for Documentation | 1622 | # Make sure the latest headers are built for Documentation |
| 1623 | Documentation/: headers_install | 1623 | Documentation/ samples/: headers_install |
| 1624 | %/: prepare scripts FORCE | 1624 | %/: prepare scripts FORCE |
| 1625 | $(cmd_crmodverdir) | 1625 | $(cmd_crmodverdir) |
| 1626 | $(Q)$(MAKE) KBUILD_MODULES=$(if $(CONFIG_MODULES),1) \ | 1626 | $(Q)$(MAKE) KBUILD_MODULES=$(if $(CONFIG_MODULES),1) \ |
