summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArvind Sankar <[email protected]>2020-02-20 11:10:47 -0500
committerTony Hutter <[email protected]>2020-05-12 10:53:32 -0700
commit5c474614ff3850233d12c86338514da2866a95b5 (patch)
treefd935da4232b2113c1504bdabb1124c5ca850518
parent3d09d3809b2bc6d951e2c84d34348b97cf5ada5b (diff)
Fix icp include directories for in-tree build
When zfs is built in-tree using --enable-linux-builtin, the compile commands are executed from the kernel build directory. If the build directory is different from the kernel source directory, passing -Ifs/zfs/icp will not find the headers as they are not present in the build directory. Fix this by adding @abs_top_srcdir@ to pull the headers from the zfs source tree instead. Reviewed-by: Brian Behlendorf <[email protected]> Signed-off-by: Arvind Sankar <[email protected]> Closes #10021
-rw-r--r--module/icp/Makefile.in4
1 files changed, 2 insertions, 2 deletions
diff --git a/module/icp/Makefile.in b/module/icp/Makefile.in
index c3cb2dede..8ce60dec4 100644
--- a/module/icp/Makefile.in
+++ b/module/icp/Makefile.in
@@ -35,9 +35,9 @@ endif
obj-$(CONFIG_ZFS) := $(MODULE).o
-asflags-y := -I$(src)/include
+asflags-y := -I@abs_top_srcdir@/module/icp/include
asflags-y += $(ZFS_MODULE_CFLAGS) $(ZFS_MODULE_CPPFLAGS)
-ccflags-y := -I$(src)/include
+ccflags-y := -I@abs_top_srcdir@/module/icp/include
ccflags-y += $(ZFS_MODULE_CFLAGS) $(ZFS_MODULE_CPPFLAGS)
$(MODULE)-objs += illumos-crypto.o