Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 16 Mar 2002 01:32:04 -0800
From:      Maxime Henrion <mux@freebsd.org>
To:        freebsd-current@freebsd.org
Subject:   Patch to fix the build of the smbfs.ko kernel module
Message-ID:  <20020316093204.GF17902@elvis.mu.org>

next in thread | raw e-mail | index | archive | help

[-- Attachment #1 --]
	Hi,


Since the addition of optimized 3DES encryption for x86, the build of the
smbfs kernel module has been broken (on all platforms).  This is because
new files are now needed (des_enc.S for x86, des_enc.c for other
archs).  The attached patch fixes this problem.

Reviews would be appreciated.

Maxime

[-- Attachment #2 --]
Index: Makefile
===================================================================
RCS file: /home/ncvs/src/sys/modules/smbfs/Makefile,v
retrieving revision 1.4
diff -u -r1.4 Makefile
--- Makefile	11 Jan 2002 15:48:57 -0000	1.4
+++ Makefile	16 Mar 2002 02:52:31 -0000
@@ -1,6 +1,7 @@
 # $FreeBSD: src/sys/modules/smbfs/Makefile,v 1.4 2002/01/11 15:48:57 ru Exp $
 
 .PATH:	${.CURDIR}/../../crypto/des \
+	${.CURDIR}/../../crypto/des/arch/i386 \
 	${.CURDIR}/../../kern \
 	${.CURDIR}/../../libkern \
 	${.CURDIR}/../../netsmb \
@@ -22,6 +23,11 @@
 
 .if defined(NETSMBCRYPTO)
 SRCS+=	des_ecb.c des_setkey.c
+.if ${MACHINE_ARCH} == "i386"
+SRCS+=	des_enc.S
+.else
+SRCS+=	des_enc.c
+.endif
 .endif
 
 # Build with IPX support (1|0)

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020316093204.GF17902>