wireguard: create dir before generating asm file

Prevents errors like follows.

  /bin/bash: arch/arm64/crypto/poly1305-core.S: No such file or directory
  make[4]: *** [.../genode/repos/dde_linux/lib/mk/spec/arm_64/wireguard_lx_inc_dirs.mk:17: arch/arm64/crypto/poly1305-core.S] Error 1
This commit is contained in:
Christian Helmuth 2022-10-21 09:57:47 +02:00
parent df4c4d5be2
commit d5577421f8
2 changed files with 5 additions and 1 deletions

View File

@ -14,6 +14,8 @@ vpath arch/arm64/kernel/smp.c $(REP_DIR)/src/lib/lx_emul/shadow
SRC_S += arch/arm64/crypto/poly1305-core.S
arch/arm64/crypto/poly1305-core.S:
$(MSG_CONVERT)$@
$(VERBOSE)mkdir -p $(dir $@)
$(VERBOSE)perl $(LX_SRC_DIR)/arch/arm64/crypto/poly1305-armv8.pl > $@
CC_OPT_arch/arm64/crypto/poly1305-core += -Dpoly1305_init=poly1305_init_arm64

View File

@ -7,6 +7,8 @@ PRG_DIR := $(REP_DIR)/src/app/wireguard/spec/x86_64
SRC_S += arch/x86/crypto/poly1305-x86_64-cryptogams.S
arch/x86/crypto/poly1305-x86_64-cryptogams.S:
perl $(LX_SRC_DIR)/arch/x86/crypto/poly1305-x86_64-cryptogams.pl > $@
$(MSG_CONVERT)$@
$(VERBOSE)mkdir -p $(dir $@)
$(VERBOSE)perl $(LX_SRC_DIR)/arch/x86/crypto/poly1305-x86_64-cryptogams.pl > $@
include $(REP_DIR)/lib/mk/wireguard_lx_inc_dirs.inc