summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2018-01-22 17:58:44 +0100
committerJason A. Donenfeld <Jason@zx2c4.com>2018-01-23 11:55:44 +0100
commitbae391875a66e2cd58420d524653967f0fe49c0c (patch)
tree2546e7bb03b1bcabb6c615036a7999d6bd2537cf
parent5afdc2d772baf3991229b84c0ed04c0a9054c024 (diff)
tools: share curve25519 implementations with kernel
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
-rw-r--r--src/tests/qemu/Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tests/qemu/Makefile b/src/tests/qemu/Makefile
index 99b9ab3..7f64c70 100644
--- a/src/tests/qemu/Makefile
+++ b/src/tests/qemu/Makefile
@@ -25,7 +25,7 @@ DOWNLOAD := wget -O
MIRROR := https://download.wireguard.com/qemu-test/distfiles/
WIREGUARD_SOURCES := $(wildcard ../../*.c ../../*.h ../../selftest/*.h ../../crypto/*.c ../../crypto/*.h ../../crypto/*.S ../../compat/*.h)
-TOOLS_SOURCES := $(wildcard ../../tools/*.c ../../tools/*.h ../../uapi/*.h)
+TOOLS_SOURCES := $(wildcard ../../tools/*.c ../../tools/*.h ../../uapi/*.h ../../crypto/curve25519-hacl64.h ../../crypto/curve25519-fiat32.h)
default: qemu
@@ -265,7 +265,7 @@ $(LIBMNL_PATH)/src/.libs/libmnl.a: | $(LIBMNL_PATH)/.installed $(USERSPACE_DEPS)
$(BUILD_PATH)/tools/wg: $(TOOLS_SOURCES) | $(LIBMNL_PATH)/src/.libs/libmnl.a $(USERSPACE_DEPS)
mkdir -p $(BUILD_PATH)
- cp -pr ../../uapi ../../tools $(BUILD_PATH)/
+ cp -pr ../../uapi ../../crypto ../../tools $(BUILD_PATH)/
$(MAKE) -C $(BUILD_PATH)/tools clean
LDFLAGS="$(LDFLAGS) -L$(LIBMNL_PATH)/src/.libs" $(MAKE) -C $(BUILD_PATH)/tools LIBMNL_CFLAGS="-I$(LIBMNL_PATH)/include" LIBMNL_LDLIBS="-lmnl" wg
$(STRIP) -s $@