From 66af73bda6575f5b18fe8ae3322c22fa10209b5f Mon Sep 17 00:00:00 2001 From: Michael Olbrich Date: Sun, 13 Jan 2019 17:08:18 +0100 Subject: v4l-utils: use kernel headers if available This is needed for toolchains with kernel headers > 3.18. Otherwise building fails with: [...] .../bpf.h:12:30: fatal error: linux/bpf_common.h: No such file or directory [...] Signed-off-by: Michael Olbrich --- rules/v4l-utils.make | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'rules/v4l-utils.make') diff --git a/rules/v4l-utils.make b/rules/v4l-utils.make index 29b105c83..22d8cd06e 100644 --- a/rules/v4l-utils.make +++ b/rules/v4l-utils.make @@ -59,6 +59,11 @@ V4L_UTILS_CONF_OPT := \ --disable-gconv \ --$(call ptx/wwo, PTXCONF_V4L_UTILS_LIBV4LCONVERT)-jpeg +ifdef PTXCONF_KERNEL_HEADER +V4L_UTILS_CPPFLAGS := \ + -isystem $(KERNEL_HEADERS_INCLUDE_DIR) +endif + # ---------------------------------------------------------------------------- # Target-Install # ---------------------------------------------------------------------------- -- cgit v1.2.3