From 65635c34034933f5adaf3a6e470a06e12a9435ae Mon Sep 17 00:00:00 2001 From: Arvind Sankar Date: Thu, 20 Feb 2020 11:10:47 -0500 Subject: [PATCH] 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 Signed-off-by: Arvind Sankar Closes #10021 --- module/icp/Makefile.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/module/icp/Makefile.in b/module/icp/Makefile.in index 51e69bd7d..b6d34d15a 100644 --- a/module/icp/Makefile.in +++ b/module/icp/Makefile.in @@ -5,9 +5,9 @@ MODULE := icp 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