From 38bbbaf384383a0dd6b4e13488e795befc05a17d Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Tue, 11 Sep 2018 14:41:47 -0600 Subject: crypto: make sure UML is properly disabled Signed-off-by: Jason A. Donenfeld --- src/crypto/Kbuild.include | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/crypto/Kbuild.include b/src/crypto/Kbuild.include index d12930d..c252c80 100644 --- a/src/crypto/Kbuild.include +++ b/src/crypto/Kbuild.include @@ -7,7 +7,7 @@ endif ccflags-y += -I$(src)/crypto/include wireguard-y += crypto/zinc/chacha20/chacha20.o -ifeq ($(CONFIG_X86_64)$(CONFIG_UML),y) +ifeq ($(CONFIG_X86_64)$(if $(CONFIG_UML),y,n),yn) wireguard-y += crypto/zinc/chacha20/chacha20-x86_64.o CFLAGS_chacha20.o += -include $(cmd_include_path_prefix)/crypto/zinc/chacha20/chacha20-x86_64-glue.h endif @@ -25,7 +25,7 @@ CFLAGS_chacha20.o += -include $(cmd_include_path_prefix)/crypto/zinc/chacha20/ch endif wireguard-y += crypto/zinc/poly1305/poly1305.o -ifeq ($(CONFIG_X86_64)$(CONFIG_UML),y) +ifeq ($(CONFIG_X86_64)$(if $(CONFIG_UML),y,n),yn) wireguard-y += crypto/zinc/poly1305/poly1305-x86_64.o CFLAGS_poly1305.o += -include $(cmd_include_path_prefix)/crypto/zinc/poly1305/poly1305-x86_64-glue.h endif @@ -53,12 +53,12 @@ ifeq ($(CONFIG_ARM)$(CONFIG_KERNEL_MODE_NEON),yy) wireguard-y += crypto/zinc/curve25519/curve25519-arm.o CFLAGS_curve25519.o += -include $(cmd_include_path_prefix)/crypto/zinc/curve25519/curve25519-arm-glue.h endif -ifeq ($(CONFIG_X86_64)$(CONFIG_UML),y) +ifeq ($(CONFIG_X86_64)$(if $(CONFIG_UML),y,n),yn) CFLAGS_curve25519.o += -include $(cmd_include_path_prefix)/crypto/zinc/curve25519/curve25519-x86_64-glue.h endif wireguard-y += crypto/zinc/blake2s/blake2s.o -ifeq ($(CONFIG_X86_64)$(CONFIG_UML),y) +ifeq ($(CONFIG_X86_64)$(if $(CONFIG_UML),y,n),yn) wireguard-y += crypto/zinc/blake2s/blake2s-x86_64.o CFLAGS_blake2s.o += -include $(cmd_include_path_prefix)/crypto/zinc/blake2s/blake2s-x86_64-glue.h endif -- cgit v1.2.3