From owner-freebsd-hackers@FreeBSD.ORG Fri Jul 11 01:09:40 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D1C0D37B401 for ; Fri, 11 Jul 2003 01:09:40 -0700 (PDT) Received: from mx2.ngi.de (mx2.ngi.de [213.191.74.84]) by mx1.FreeBSD.org (Postfix) with ESMTP id CB61343F75 for ; Fri, 11 Jul 2003 01:09:39 -0700 (PDT) (envelope-from gerald.heinig@ngi.de) Received: (qmail 24288 invoked from network); 11 Jul 2003 08:11:34 -0000 Received: from unknown (HELO mx2.ngi.de) ([213.191.74.86]) (envelope-sender ) by 0 (qmail-ldap-1.03) with SMTP for ; 11 Jul 2003 08:11:34 -0000 From: To: freebsd-hackers@freebsd.org Date: Fri, 11 Jul 2003 10:11:46 +0100 X-Mailer: NGI Webmail X-AntiVirus: scanned for viruses by NGI Next Generation Internet (http://www.ngi.de/) Message-Id: <20030711080939.CB61343F75@mx1.FreeBSD.org> Subject: Problem with kernel mod compilation X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 11 Jul 2003 08:09:41 -0000 Hi everyone, I'm currently developing a kernel module for a Gig. Ethernet card and I've run into problems with my file tree and the kernel mkdep mechanism. I have two files in my source directory which I've created under /usr/src/sys/dev/yk yk being my driver I've updated /usr/src/sys/conf/files (since I want this beast to work under all architectures) and I've created a copy of GENERIC, called YK, with my device yk as an option. Now, the problem is that I have a number of files in a header subdirectory under /dev/yk which I have to include. I cannot modify these header files, since they're company-wide include files which get included by just about everybody. They're only changed if ABSOLUTELY necessary. My subtree looks like this: ../dev/yk/if_yk.c ../dev/yk/if_yk.h ../dev/yk/h/headerfile1.h ../dev/yk/common/h/headerfile2.h .... These additional header files get included by if_yk.h (which gets included by if_yk.c) When I do a make depend, it says it can't find h/headerfile1.h etc etc. I need to pass a -I flag to mkdep, but I have no idea how to do this ie. what files to modify. Can anyone help, please? Cheers, Gerald -- S y s K o n n e c t G m b H A Marvell Company Siemensstr. 23 D-76275 Ettlingen, Germany --------------------------------- Gerald Heinig Software Engineer ------------------------------------- phone: + 49 (0) 7243 502 354 fax: +49 (0) 7243 502 364 email: gheinig@syskonnect.de http://www.syskonnect.com