summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Olbrich <m.olbrich@pengutronix.de>2020-11-27 09:55:27 +0100
committerMichael Olbrich <m.olbrich@pengutronix.de>2020-11-27 09:55:29 +0100
commit1d13c7716e4d6f50a6d640b876b317d59797988f (patch)
treedb97a454bdf373b397a91b2192d6a0af38420fd3
parent88069189770bb69d679fc2f5b712bcd549f25e72 (diff)
downloadptxdist-1d13c7716e4d6f50a6d640b876b317d59797988f.tar.gz
ptxdist-1d13c7716e4d6f50a6d640b876b317d59797988f.tar.xz
liburing: use kernel headers if available
It uses MAP_HUGE_2MB. This was introduced in v4.14, so building liburing with older kernel headers fails. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
-rw-r--r--rules/liburing.make5
1 files changed, 5 insertions, 0 deletions
diff --git a/rules/liburing.make b/rules/liburing.make
index 5bb367f74..456db40ba 100644
--- a/rules/liburing.make
+++ b/rules/liburing.make
@@ -31,6 +31,11 @@ LIBURIGN_LICENSE_FILES := file://LICENSE;md5=f7c2200d2f904868b214103d0cbab6a9
LIBURING_CONF_TOOL := NO
LIBURING_MAKE_ENV := $(CROSS_ENV)
+ifdef PTXCONF_KERNEL_HEADER
+LIBURING_CPPFLAGS := \
+ -isystem $(KERNEL_HEADERS_INCLUDE_DIR)
+endif
+
# ----------------------------------------------------------------------------
# Target-Install
# ----------------------------------------------------------------------------