Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/modules modules for blake2s libsodium and if_wg
details: https://anonhg.NetBSD.org/src/rev/996f0f793636
branches: trunk
changeset: 1022980:996f0f793636
user: christos <christos%NetBSD.org@localhost>
date: Tue Aug 17 17:29:19 2021 +0000
description:
modules for blake2s libsodium and if_wg
diffstat:
sys/modules/Makefile | 6 +++-
sys/modules/blakes2s/Makefile | 13 +++++++++
sys/modules/if_wg/Makefile | 17 ++++++++++++
sys/modules/if_wg/wg.ioconf | 7 +++++
sys/modules/sodium/Makefile | 8 +++++
sys/modules/sodium/Makefile.sodmod | 53 ++++++++++++++++++++++++++++++++++++++
6 files changed, 103 insertions(+), 1 deletions(-)
diffs (152 lines):
diff -r 233d25f7eadb -r 996f0f793636 sys/modules/Makefile
--- a/sys/modules/Makefile Tue Aug 17 17:16:40 2021 +0000
+++ b/sys/modules/Makefile Tue Aug 17 17:29:19 2021 +0000
@@ -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+= aio
SUBDIR+= audio
SUBDIR+= autofs
+SUBDIR+= blake2s
SUBDIR+= blowfish
SUBDIR+= bpf
SUBDIR+= bpf_filter
@@ -100,6 +101,7 @@
SUBDIR+= if_url
SUBDIR+= if_urndis
SUBDIR+= if_vlan
+SUBDIR+= if_wg
SUBDIR+= iic
SUBDIR+= ip_ecn
SUBDIR+= ipl
@@ -389,6 +391,8 @@
SUBDIR+= dtrace
.endif
+SUBDIR+= sodium
+
# we need solaris for the dtrace and zfs modules
.if (${MKDTRACE} != "no" || ${MKZFS} != "no")
SUBDIR+= solaris
diff -r 233d25f7eadb -r 996f0f793636 sys/modules/blakes2s/Makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sys/modules/blakes2s/Makefile Tue Aug 17 17:29:19 2021 +0000
@@ -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 -r 233d25f7eadb -r 996f0f793636 sys/modules/if_wg/Makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sys/modules/if_wg/Makefile Tue Aug 17 17:29:19 2021 +0000
@@ -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 -r 233d25f7eadb -r 996f0f793636 sys/modules/if_wg/wg.ioconf
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sys/modules/if_wg/wg.ioconf Tue Aug 17 17:29:19 2021 +0000
@@ -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 -r 233d25f7eadb -r 996f0f793636 sys/modules/sodium/Makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sys/modules/sodium/Makefile Tue Aug 17 17:29:19 2021 +0000
@@ -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 -r 233d25f7eadb -r 996f0f793636 sys/modules/sodium/Makefile.sodmod
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sys/modules/sodium/Makefile.sodmod Tue Aug 17 17:29:19 2021 +0000
@@ -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
Home |
Main Index |
Thread Index |
Old Index