diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2018-11-15 18:55:45 -0800 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2018-11-15 19:00:02 -0800 |
commit | 2fd82b1cd412149be9376ccdf408395a07471b58 (patch) | |
tree | 87bfc1521496bdacc18d22b24e91e7d47195bfc7 /src | |
parent | 3a863851b90dc11e66982e053ded553adf43ddc0 (diff) |
crypto: resolve target prefix on buggy kernels
We also move to .SECONDARY, since older kernels don't use targets like
that.
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/crypto/Kbuild.include | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/crypto/Kbuild.include b/src/crypto/Kbuild.include index 5fb9445..4fde2e6 100644 --- a/src/crypto/Kbuild.include +++ b/src/crypto/Kbuild.include @@ -41,7 +41,12 @@ quiet_cmd_perlasm = PERLASM $@ cmd_perlasm = $(PERL) $< > $@ %.S: %.pl $(call cmd,perlasm) -targets += $(patsubst %.o,crypto/zinc/%.S,$(zinc-y)) +ifeq ($(wildcard $(src)/compat/compat.h),) +target_path_prefix := $(srctree)/$(src) +else +target_path_prefix := $(src) +endif +.SECONDARY: $(addprefix $(target_path_prefix)/,$(patsubst %.o,crypto/zinc/%.S,$(zinc-y))) wireguard-y += $(addprefix crypto/zinc/,$(zinc-y)) ccflags-y += -I$(src)/crypto/include |