diff options
| author | christos <christos@NetBSD.org> | 2021-08-17 17:29:19 +0000 |
|---|---|---|
| committer | christos <christos@NetBSD.org> | 2021-08-17 17:29:19 +0000 |
| commit | 98fa73c5041c2cccaf5778e409642fb4f8e23a92 (patch) | |
| tree | abb452643c67ef6df1ec2ae7ba18fe116dc0efe1 /sys/modules | |
| parent | dd2dfdde099f6f2cd5c313e7bc974402edb2ee76 (diff) | |
modules for blake2s libsodium and if_wg
Diffstat (limited to 'sys/modules')
| -rw-r--r-- | sys/modules/Makefile | 6 | ||||
| -rw-r--r-- | sys/modules/blakes2s/Makefile | 13 | ||||
| -rw-r--r-- | sys/modules/if_wg/Makefile | 17 | ||||
| -rw-r--r-- | sys/modules/if_wg/wg.ioconf | 7 | ||||
| -rw-r--r-- | sys/modules/sodium/Makefile | 8 | ||||
| -rw-r--r-- | sys/modules/sodium/Makefile.sodmod | 53 |
6 files changed, 103 insertions, 1 deletions
diff --git a/sys/modules/Makefile b/sys/modules/Makefile index 511cbe3264e..16823989ff3 100644 --- a/sys/modules/Makefile +++ b/sys/modules/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.251 2021/08/09 20:49:10 andvar Exp $ +# $NetBSD: Makefile,v 1.252 2021/08/17 17:29:19 christos Exp $ .include <bsd.own.mk> @@ -27,6 +27,7 @@ SUBDIR+= adosfs SUBDIR+= aio SUBDIR+= audio SUBDIR+= autofs +SUBDIR+= blake2s SUBDIR+= blowfish SUBDIR+= bpf SUBDIR+= bpf_filter @@ -100,6 +101,7 @@ SUBDIR+= if_ure SUBDIR+= if_url SUBDIR+= if_urndis SUBDIR+= if_vlan +SUBDIR+= if_wg SUBDIR+= iic SUBDIR+= ip_ecn SUBDIR+= ipl @@ -389,6 +391,8 @@ SUBDIR+= cyclic SUBDIR+= dtrace .endif +SUBDIR+= sodium + # we need solaris for the dtrace and zfs modules .if (${MKDTRACE} != "no" || ${MKZFS} != "no") SUBDIR+= solaris diff --git a/sys/modules/blakes2s/Makefile b/sys/modules/blakes2s/Makefile new file mode 100644 index 00000000000..616626b52e7 --- /dev/null +++ b/sys/modules/blakes2s/Makefile @@ -0,0 +1,13 @@ +# $NetBSD: Makefile,v 1.1 2021/08/17 17:29:20 christos Exp $ + +.include "../Makefile.inc" + +KMOD= blake2s + +BLAKE2SDIR= $S/crypto/blake2 +CPPFLAGS+= -I${BLAKE2SDIR} + +.PATH: ${BLAKE2SDIR} +SRCS+= blake2s.c + +.include <bsd.kmodule.mk> diff --git a/sys/modules/if_wg/Makefile b/sys/modules/if_wg/Makefile new file mode 100644 index 00000000000..afb15411a24 --- /dev/null +++ b/sys/modules/if_wg/Makefile @@ -0,0 +1,17 @@ +# $NetBSD: Makefile,v 1.1 2021/08/17 17:29:20 christos Exp $ + +.include "../Makefile.inc" + +.PATH: ${S}/net + +KMOD= if_wg +IOCONF= wg.ioconf +SRCS= if_wg.c + +CPPFLAGS+= -DINET +CPPFLAGS+= -DINET6 +CPPFLAGS+= -DALTQ + +WARNS= 3 + +.include <bsd.kmodule.mk> diff --git a/sys/modules/if_wg/wg.ioconf b/sys/modules/if_wg/wg.ioconf new file mode 100644 index 00000000000..ce71b582c68 --- /dev/null +++ b/sys/modules/if_wg/wg.ioconf @@ -0,0 +1,7 @@ +# $NetBSD: wg.ioconf,v 1.1 2021/08/17 17:29:20 christos Exp $ + +ioconf wg + +include "conf/files" + +pseudo-device wg diff --git a/sys/modules/sodium/Makefile b/sys/modules/sodium/Makefile new file mode 100644 index 00000000000..55a681d35a5 --- /dev/null +++ b/sys/modules/sodium/Makefile @@ -0,0 +1,8 @@ +# $NetBSD: Makefile,v 1.1 2021/08/17 17:29:20 christos Exp $ + +.include "../Makefile.inc" + +KMOD= sodium + +.include "Makefile.sodmod" +.include <bsd.kmodule.mk> diff --git a/sys/modules/sodium/Makefile.sodmod b/sys/modules/sodium/Makefile.sodmod new file mode 100644 index 00000000000..63b78d7be5f --- /dev/null +++ b/sys/modules/sodium/Makefile.sodmod @@ -0,0 +1,53 @@ +# $NetBSD: Makefile.sodmod,v 1.1 2021/08/17 17:29:20 christos Exp $ + +SODIUMDIR= ${S}/external/isc/libsodium +SODIUMSRCDIR= ${SODIUMDIR}/dist/src/libsodium + +.PATH: ${SODIUMDIR}/src +SRCS+= glue.c + +.PATH: ${SODIUMSRCDIR}/crypto_scalarmult/curve25519/ref10 +SRCS+= x25519_ref10.c + +.PATH: ${SODIUMSRCDIR}/crypto_scalarmult/curve25519 +SRCS+= scalarmult_curve25519.c + +.PATH: ${SODIUMSRCDIR}/crypto_scalarmult +SRCS+= crypto_scalarmult.c + +.PATH: ${SODIUMSRCDIR}/crypto_onetimeauth/poly1305/donna +SRCS+= poly1305_donna.c + +.PATH: ${SODIUMSRCDIR}/crypto_onetimeauth/poly1305 +SRCS+= onetimeauth_poly1305.c + +.PATH: ${SODIUMSRCDIR}/crypto_onetimeauth +SRCS+= crypto_onetimeauth.c + +.PATH: ${SODIUMSRCDIR}/crypto_stream/chacha20/ref +SRCS+= chacha20_ref.c + +.PATH: ${SODIUMSRCDIR}/crypto_stream/chacha20 +SRCS+= stream_chacha20.c + +.PATH: ${SODIUMSRCDIR}/crypto_aead/xchacha20poly1305/sodium +SRCS+= aead_xchacha20poly1305.c + +.PATH: ${SODIUMSRCDIR}/crypto_aead/chacha20poly1305/sodium +SRCS+= aead_chacha20poly1305.c + +.PATH: ${SODIUMSRCDIR}/crypto_core/hchacha20 +SRCS+= core_hchacha20.c + +.PATH: ${SODIUMSRCDIR}/crypto_core/ed25519/ref10 +SRCS+= ed25519_ref10.c + +WARNS= 3 + +CWARNFLAGS+= -Wall +CWARNFLAGS+= -Wno-shadow +CWARNFLAGS+= -Wno-unused-function +CWARNFLAGS+= -Wno-unused-variable + +CPPFLAGS+= -DHAVE_TI_MODE -I${SODIUMDIR}/include +CPPFLAGS+= -I${SODIUMDIR}/dist/src/libsodium/include/sodium |
