From owner-freebsd-drivers@FreeBSD.ORG Sat Sep 17 17:40:03 2005 Return-Path: X-Original-To: freebsd-drivers@freebsd.org Delivered-To: freebsd-drivers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C973216A41F for ; Sat, 17 Sep 2005 17:40:03 +0000 (GMT) (envelope-from fergus@cobbled.net) Received: from ni-mail2.dna.utvinternet.net (mail2.u.tv [194.46.8.26]) by mx1.FreeBSD.org (Postfix) with ESMTP id 395AB43D49 for ; Sat, 17 Sep 2005 17:40:03 +0000 (GMT) (envelope-from fergus@cobbled.net) Received: from mail.cobbled.net (unverified [195.218.107.162]) by ni-mail2.dna.utvinternet.net (Vircom SMTPRS 4.1.361.18) with ESMTP id for ; Sat, 17 Sep 2005 18:39:56 +0100 Received: from eyore.cobbled.net (localhost [127.0.0.1]) by mail.cobbled.net (8.12.10/8.12.10) with ESMTP id j8HHdgm7007108 for ; Sat, 17 Sep 2005 18:39:42 +0100 (BST) (envelope-from fergus@eyore.public.cobbled.net) Received: (from fergus@localhost) by eyore.cobbled.net (8.12.10/8.12.10/Submit) id j8HHdgsT007107 for freebsd-drivers@freebsd.org; Sat, 17 Sep 2005 18:39:42 +0100 (BST) (envelope-from fergus) Date: Sat, 17 Sep 2005 18:39:41 +0100 From: n0g0013 To: freebsd-drivers@freebsd.org Message-ID: <20050917173941.GJ6440@eyore.cobbled.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Subject: basic driver build environment X-BeenThere: freebsd-drivers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Writing device drivers for FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 17 Sep 2005 17:40:03 -0000 trying to write a PCI driver and finding it awkward to build it outside the source tree. will i have to wire in the new driver "sys" source tree to get a clean edit/build environment? currently i'm doing two things 1. merging my current kernel build directory with my new driver directory and building there. it produces a module but leaves a hell of a mess. the module reboots the system currently (no crash -- just reboot) but that may be something else. 2. getting a copy of CVS so i can wire into tree when i understand how if anyone could guide me on a. cleaner config for building modules in random directory (thought '-I' to make would work but it doesn't) b. how to actually wire in a new driver to the "sys" source tree (once i have a copy) i'd appreciate it. -- t t w