Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 2 Feb 2016 13:07:33 +0100
From:      Marcin Mazurek <mma@semihalf.com>
To:        Hans Petter Selasky <hps@selasky.org>
Cc:        freebsd-arm@freebsd.org, freebsd-current@freebsd.org,  Bryan Drewery <bdrewery@freebsd.org>
Subject:   Re: Cannot include header files from sys/contrib directory
Message-ID:  <CAF-BqKpvNKwZ9VamATP2L0j9PKoNR-ErTCkNks=QCKRpbJWBrQ@mail.gmail.com>
In-Reply-To: <56B09AAE.9000909@selasky.org>
References:  <CAF-BqKpa56OB9rfvAkukMOE39j22xPb3Oj4U9UMkjhWrO0n5ag@mail.gmail.com> <56B09AAE.9000909@selasky.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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 <angled> include; use "quotes" instead
#include <al_hal_common.h>
         ^
         "al_hal_common.h"
1 error generated.

2016-02-02 13:01 GMT+01:00 Hans Petter Selasky <hps@selasky.org>:

> 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
>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAF-BqKpvNKwZ9VamATP2L0j9PKoNR-ErTCkNks=QCKRpbJWBrQ>