From owner-freebsd-drivers@FreeBSD.ORG Sat Sep 17 18:32:11 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 E684D16A420 for ; Sat, 17 Sep 2005 18:32:11 +0000 (GMT) (envelope-from fergus@cobbled.net) Received: from ni-mail3.dna.utvinternet.net (mail3.u.tv [194.46.8.37]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3944543D46 for ; Sat, 17 Sep 2005 18:32:10 +0000 (GMT) (envelope-from fergus@cobbled.net) Received: from mail.cobbled.net (unverified [195.218.107.162]) by ni-mail3.dna.utvinternet.net (Vircom SMTPRS 4.1.361.20) with ESMTP id ; Sat, 17 Sep 2005 19:32:02 +0100 Received: from eyore.cobbled.net (localhost [127.0.0.1]) by mail.cobbled.net (8.12.10/8.12.10) with ESMTP id j8HIVcm7007205; Sat, 17 Sep 2005 19:31:40 +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 j8HIVWfw007204; Sat, 17 Sep 2005 19:31:32 +0100 (BST) (envelope-from fergus) Date: Sat, 17 Sep 2005 19:31:32 +0100 From: n0g0013 To: "M. Warner Losh" Message-ID: <20050917183132.GK6440@eyore.cobbled.net> References: <20050917173941.GJ6440@eyore.cobbled.net> <20050917.120027.32524785.imp@bsdimp.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20050917.120027.32524785.imp@bsdimp.com> Cc: freebsd-drivers@freebsd.org Subject: Re: 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 18:32:12 -0000 On 17.09-12:00, M. Warner Losh wrote: [ ... ] > : a. cleaner config for building modules in random > : directory (thought '-I' to make would work but it doesn't) [ ... ] > When I'm developing a new module, I do the following: > > setenv SYSDIR /path/to/freebsd/src/sys > make > > The Makefile looks like > > # Maybe have a .PATH here > > KMOD= foo > SRCS= foo_a foo_b > > .include > > At work, we wrap setting SYSDIR in an include file, since our build > system knows about it. i get the following (plus more similar) error/s @/sys/bus.h:456:23: device_if.h: No such file or directory even when setting the SYSDIR to "/usr/src/sys". perhaps i'm missing something about the "wrap setting SYSDIR in an include file" to make it work??? if i understand correctly it's looking for the kernel architecture files from the kernel build (i.e in the 'obj' directory). apologies if i'm being braindamaged here. -- t t w