From owner-freebsd-current@FreeBSD.ORG Fri Sep 1 16:55:26 2006 Return-Path: X-Original-To: freebsd-current@freebsd.org Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5E5AA16A4DD for ; Fri, 1 Sep 2006 16:55:26 +0000 (UTC) (envelope-from davidch@broadcom.com) Received: from mms1.broadcom.com (mms1.broadcom.com [216.31.210.17]) by mx1.FreeBSD.org (Postfix) with ESMTP id 450AB43D45 for ; Fri, 1 Sep 2006 16:55:21 +0000 (GMT) (envelope-from davidch@broadcom.com) Received: from 10.10.64.154 by mms1.broadcom.com with ESMTP (Broadcom SMTP Relay (Email Firewall v6.2.0)); Fri, 01 Sep 2006 09:55:12 -0700 X-Server-Uuid: F962EFE0-448C-40EE-8100-87DF498ED0EA Received: by mail-irva-10.broadcom.com (Postfix, from userid 47) id C4EC92AF; Fri, 1 Sep 2006 09:55:11 -0700 (PDT) Received: from mail-irva-8.broadcom.com (mail-irva-8 [10.10.64.221]) by mail-irva-10.broadcom.com (Postfix) with ESMTP id 9EF472AE; Fri, 1 Sep 2006 09:55:11 -0700 (PDT) Received: from mail-irva-12.broadcom.com (mail-irva-12.broadcom.com [10.10.64.146]) by mail-irva-8.broadcom.com (MOS 3.7.5a-GA) with ESMTP id EEE59215; Fri, 1 Sep 2006 09:55:10 -0700 (PDT) Received: from NT-IRVA-0750.brcm.ad.broadcom.com (nt-irva-0750 [10.8.194.64]) by mail-irva-12.broadcom.com (Postfix) with ESMTP id 9834269CA5; Fri, 1 Sep 2006 09:55:10 -0700 (PDT) X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Date: Fri, 1 Sep 2006 09:55:09 -0700 Message-ID: <09BFF2FA5EAB4A45B6655E151BBDD90301E2F6C8@NT-IRVA-0750.brcm.ad.broadcom.com> In-Reply-To: <86k64nenu8.fsf@dwp.des.no> Thread-Topic: Simplified Steps for Building a Loadable module on -CURRENT Thread-Index: AcbNx74r/xIrEDiRSyy3LF/0mY+gEAAH2oGA From: "David Christensen" To: des@des.no X-TMWD-Spam-Summary: SEV=1.1; DFV=A2006090106; IFV=2.0.6,4.0-7; RPD=4.00.0004; RPDID=303030312E30413031303230352E34344638363439362E303035322D412D; ENG=IBF; TS=20060901165512; CAT=NONE; CON=NONE; X-MMS-Spam-Filter-ID: A2006090106_4.00.0004_2.0.6,4.0-7 X-WSS-ID: 68E6BA7A3CC3785561-01-01 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Cc: freebsd-current@freebsd.org, Stefan Bethke Subject: RE: Simplified Steps for Building a Loadable module on -CURRENT X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 Sep 2006 16:55:26 -0000 > "David Christensen" writes: > > 2) My Makefile: > > .PATH: . > > KMOD=3D if_bge > > SRCS=3D bus_if.h device_if.h pci_if.h miibus_if.h miidevs.h > > SRCS+=3D if_bge.c if_bgereg.h=20 > > DEBUG_FLAGS =3D -g > > > > .include >=20 > What's wrong with the one in /sys/modules/bge? >=20 Nothing. When I originally started my driver development I didn't know it existed there so I created one from scratch and I've been using it until now.