From owner-freebsd-arm@freebsd.org Tue Feb 2 11:59:31 2016 Return-Path: Delivered-To: freebsd-arm@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 988F1A98BA9; Tue, 2 Feb 2016 11:59:31 +0000 (UTC) (envelope-from hps@selasky.org) Received: from mail.turbocat.net (mail.turbocat.net [IPv6:2a01:4f8:d16:4514::2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 62955E89; Tue, 2 Feb 2016 11:59:31 +0000 (UTC) (envelope-from hps@selasky.org) Received: from laptop015.home.selasky.org (unknown [62.141.129.119]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.turbocat.net (Postfix) with ESMTPSA id 42EB21FE022; Tue, 2 Feb 2016 12:59:29 +0100 (CET) Subject: Re: Cannot include header files from sys/contrib directory To: Marcin Mazurek , freebsd-arm@freebsd.org, freebsd-current@freebsd.org, Bryan Drewery References: From: Hans Petter Selasky Message-ID: <56B09AAE.9000909@selasky.org> Date: Tue, 2 Feb 2016 13:01:50 +0100 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:38.0) Gecko/20100101 Thunderbird/38.5.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 02 Feb 2016 11:59:31 -0000 On 02/02/16 12:46, Marcin Mazurek wrote: > Hello all, > > I'm trying to include header files in the networking driver under sys/dev/, > however the headers are located in sys/contrib directory. > Does anyone have a clue or an advice on how to do this properly without > making too much trouble in the build system? > I would prefer to avoid changing content of the header files. > > I tried adding 'compile-with' + '-I' flags in files but that did not work > as expected. > > Thank you in advance for your help. Hi, Are you in the kernel or userspace? This part is a bit troublesome and Bryan Drewery has some changes pending in this area. See: https://svnweb.freebsd.org/changeset/base/294915 For example how it is currently done in the kernel. --HPS