From owner-freebsd-arm@freebsd.org Tue Feb 2 12:07:34 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 13B2FA97766 for ; Tue, 2 Feb 2016 12:07:34 +0000 (UTC) (envelope-from mma@semihalf.com) Received: from mail-ig0-x236.google.com (mail-ig0-x236.google.com [IPv6:2607:f8b0:4001:c05::236]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id DC5771632 for ; Tue, 2 Feb 2016 12:07:33 +0000 (UTC) (envelope-from mma@semihalf.com) Received: by mail-ig0-x236.google.com with SMTP id ik10so58938626igb.1 for ; Tue, 02 Feb 2016 04:07:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=semihalf-com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=g9kGJ684NASq8Fd3YGyG2IsFaQIW/lPi2tXW+ZTOZFI=; b=G5ajAxoCOEdH6zPgsmSfUcAQ/Aj4TVqgUkLx93qFt/KDJiWVT/yo+whGIuICHBrIFn wkkeoD7Igb8kLEnPWynVXern1Vjz0F2dh9cHC9JN2t+BbYw3n8BBCUl+9dE4glGlUM7Q bKfwx/hklypTx5/BxnVWhIJpHMGkVVZYsL8WC0spnlxAjhtCgnKhYRUa5eWMBbZlr2IR bZ4n/JyBVZ2PCbBomDHx5qLGiBkVgdmIbij9VsJdyGCOS5t3F91S95FnIGviiI5HcV5o kYiDZLR5mgdTpoT1vnTXmGdHXzCX8IsqiJZYqFLhTNUGDcaNz69UZYC8+0SDnhzP5NTh 2k5A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=g9kGJ684NASq8Fd3YGyG2IsFaQIW/lPi2tXW+ZTOZFI=; b=lQ8bUjZOxwBg9QItF2W6aIyG9J0Cn+jXK0iCrjA0x1Liyqfs4VQKwcmHzUrJgLuvkC 45JUpa4/3onRXZDpgPXWKUgGTedPj1vsjAhxBpeE/QR6JSdprYe7UMInpZNp0G4TQBDY 9RlSFlRphPck71qzoDDiiQZ1dw6rFRpuyR1NG+kOKk3DSpeJSr4nx63imD0bh5y8WuYb YvoceAmFv/KMQqsfPy+a9hZqm3+zi+7PJrwriSBby2x3vYkkT/DylresnI05/bCZQef9 E8X1QlO2cjfATwJ1BRPJeabmgZYM4j8QvKbj4laHNSUH2n9370DJ3AUujc7WqMcPjPHF 9kHA== X-Gm-Message-State: AG10YOT6nCItsccT75i0rw7Rs8ZcFWbrMuwLwRqAoh7coskRJVaAJ2t8CWZSXIGfdo3/eY9F6evg74Ps6FohZA== MIME-Version: 1.0 X-Received: by 10.50.43.195 with SMTP id y3mr17818312igl.9.1454414853176; Tue, 02 Feb 2016 04:07:33 -0800 (PST) Received: by 10.107.4.8 with HTTP; Tue, 2 Feb 2016 04:07:33 -0800 (PST) In-Reply-To: <56B09AAE.9000909@selasky.org> References: <56B09AAE.9000909@selasky.org> Date: Tue, 2 Feb 2016 13:07:33 +0100 Message-ID: Subject: Re: Cannot include header files from sys/contrib directory From: Marcin Mazurek To: Hans Petter Selasky Cc: freebsd-arm@freebsd.org, freebsd-current@freebsd.org, Bryan Drewery Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.20 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 12:07:34 -0000 Thanks for your response. I saw that and I tried doing it this way: dev/al_eth/al_eth.c optional al_eth compile-with "-I$S/contrib/alpine-hal -I$S/contrib/alpine-hal/eth" Unfortunately it didn't work for me, I got some error messages like: In file included from /root/mma/anpa-fbsd/sys/contrib/alpine-hal/eth/al_hal_eth_kr.h:51: /root/mma/anpa-fbsd/sys/contrib/alpine-hal/eth/al_hal_eth.h:53:10: fatal error: 'al_hal_common.h' file not found #include "al_hal_common.h" ^ 1 error generated. In file included from /root/mma/anpa-fbsd/sys/contrib/alpine-hal/al_hal_iofic.c:45: /root/mma/anpa-fbsd/sys/contrib/alpine-hal/al_hal_iofic.h:52:10: error: 'al_hal_common.h' file not found with include; use "quotes" instead #include ^ "al_hal_common.h" 1 error generated. 2016-02-02 13:01 GMT+01:00 Hans Petter Selasky : > 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 >