View | Details | Raw Unified | Return to bug 189621 | Differences between
and this patch

Collapse All | Expand All

(-)Makefile (-7 / +4 lines)
Lines 7-33 Link Here
7
MASTER_SITES=	http://mrp3.com/
7
MASTER_SITES=	http://mrp3.com/
8
8
9
MAINTAINER=	bobf@mrp3.com
9
MAINTAINER=	bobf@mrp3.com
10
COMMENT=	FreeBSD Kernel Driver for the Arduino Uno USB interface
10
COMMENT=	FreeBSD Kernel Driver for the Arduino Uno USB interface
11
11
12
NO_PACKAGE=	You must (re)build this port with your kernel source
13
14
SSP_UNSAFE=	kernel module does not support ssp
12
SSP_UNSAFE=	kernel module does not support ssp
15
13
16
# need to enforce installation into kernel module directory
14
# need to enforce installation into kernel module directory
17
MAKE_ENV+=	KMODDIR=${KMODDIR}
15
MAKE_ENV+=	KMODDIR=${KMODDIR}
18
PREFIX=		${KMODDIR}
16
PREFIX=		${KMODDIR}
17
MAKEOBJDIRPREFIX=
19
18
20
NO_STAGE=	yes
19
USES=		kmod
21
.include <bsd.port.pre.mk>
20
.include <bsd.port.pre.mk>
22
21
23
SRCPREFIX?=	${SRC_BASE}
22
SRCPREFIX?=	${SRC_BASE}
24
23
25
# disable mtree or you'll get a /boot/kernel/... directory hierarchy put there
24
# disable mtree or you'll get a /boot/kernel/... directory hierarchy put there
26
NO_MTREE= yes
25
NO_MTREE= yes
27
26
28
# some test targets need a predictable source directory
27
## some test targets need a predictable source directory
29
WRKSRC=		${WRKDIR}/uarduno
28
WRKSRC=		${WRKDIR}/uarduno
30
29
31
PLIST_FILES=	uarduno.ko \
30
PLIST_FILES=	uarduno.ko \
32
		"@unexec kldxref ${KMODDIR}"
31
		"@unexec kldxref ${KMODDIR}"
33
32
Lines 61-73 Link Here
61
60
62
# post-install target, make sure kernel module is unloaded
61
# post-install target, make sure kernel module is unloaded
63
post-install:
62
post-install:
64
	@if kldstat -q -m uhub/uarduno ; then \
63
	@if kldstat -q -m uhub/uarduno ; then \
65
	 echo "" ; echo " +++ Unloading uarduno.ko (related devices will need to be re-attached)" ; kldunload uarduno ; fi
64
	 echo "" ; echo " +++ Unloading uarduno.ko (related devices will need to be re-attached)" ; kldunload uarduno ; fi
66
	@${ECHO_MSG}
65
	${STRIP_CMD} ${STAGEDIR}${PREFIX}/uarduno.ko
67
	@${CAT} ${PKGMESSAGE}
68
	@${ECHO_MSG}
69
66
70
#
67
#
71
# these next 2 targets are for developer use
68
# these next 2 targets are for developer use
72
#
69
#
73
# building a source tarball and related files
70
# building a source tarball and related files
(-)files/ids.txt (-3 / +11 lines)
Lines 14-32 Link Here
14
//     { 0xaaaa, 0xbbbb },
14
//     { 0xaaaa, 0xbbbb },
15
//
15
//
16
// Where '0xaaaa' is the vendor ID, and '0xbbbb' is the product ID that you
16
// Where '0xaaaa' is the vendor ID, and '0xbbbb' is the product ID that you
17
// want the driver to recognize as an Arduino UNO.  It must end with a ','
17
// want the driver to recognize as an Arduino UNO.  It must end with a ','
18
//
18
//
19
// The default value of { 0x2341, 0x0001 } is already included as a reference.
19
// The default values for Arduino UNO and MEGA are included as a reference.
20
// NOTE:  do not remove or modify this entry unless you really really mean it.
20
// These are provided 'as-is' though testing suggests they are correct.
21
//
21
//
22
// If you change this file, you will need to update it each
22
// When new Arduino products are released, you can add the new information to
23
// this file.  Please let me know so I can update it, too (thanks).  Send
24
// new submissions to 'bobf@mrp3.com', with an appropriate subject line and
25
// description of the entry.  Please test it first, thanks.
26
//
27
// If you change this file yourself, you will need to update it each
23
// time you obtain a fresh copy of the ports tree.
28
// time you obtain a fresh copy of the ports tree.
24
//
29
//
25
//
30
//
26
31
27
    { 0x2341, 0x0001 },  // Arduino UNO, vendor 2341H, product 0001H
32
    { 0x2341, 0x0001 },  // Arduino UNO, vendor 2341H, product 0001H
33
    { 0x2341, 0x0042 },  // Arduino MEGA (rev 3), vendor 2341H, product 0042H
34
    { 0x2341, 0x0043 },  // Arduino UNO (rev 3), vendor 2341H, product 0043H
35
    { 0x2341, 0x0010 },  // Arduino MEGA 2560 R3, vendor 2341H, product 0010H 
28
36
29
// place your entries below this line
37
// place your entries below this line

Return to bug 189621