aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/compat/Kbuild.include
diff options
context:
space:
mode:
Diffstat (limited to 'src/compat/Kbuild.include')
-rw-r--r--src/compat/Kbuild.include11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/compat/Kbuild.include b/src/compat/Kbuild.include
new file mode 100644
index 0000000..905e268
--- /dev/null
+++ b/src/compat/Kbuild.include
@@ -0,0 +1,11 @@
+ccflags-y += -include $(src)/compat/compat.h
+
+ifeq ($(wildcard $(srctree)/include/linux/siphash.h),)
+ccflags-y += -I$(src)/compat/siphash/include
+wireguard-y += compat/siphash/siphash.o
+endif
+
+ifeq ($(wildcard $(srctree)/include/net/dst_cache.h),)
+ccflags-y += -I$(src)/compat/dst_cache/include
+wireguard-y += compat/dst_cache/dst_cache.o
+endif