Page 1 of 1

Building project and board configuration outside chibios tree

Posted: Mon Feb 12, 2018 2:56 pm
by mikl74
Hi !
I'm trying to make project with my own board configuration. I want to have it outside Chibios tree just changing Chibios makefile variable to chibios path. Also I'v changed board.mk BOARDSRC path to path in my dir. But still sometimes chconf.h is found not from mine directory.

Thanks.

Re: Building project and board configuration outside chibios tree

Posted: Mon Feb 12, 2018 3:21 pm
by Giovanni
Hi,

Changing the board path is OK, I have not enough info about that chconf.h problem, it depends on your makefile.

Giovanni

Re: Building project and board configuration outside chibios tree

Posted: Mon Feb 12, 2018 3:26 pm
by wurstnase
Hi,

I checked my folder and Makefile.

You can add a CONFDIR in your Makefile which points to the chconf.h, mcuconf.h and halconf.h.

In my case:

Code: Select all

CHIBIOS = ../../chibios
CONFDIR = ./conf

Re: Building project and board configuration outside chibios tree

Posted: Mon Feb 12, 2018 3:39 pm
by Giovanni
wurstnase wrote:Hi,

I checked my folder and Makefile.

You can add a CONFDIR in your Makefile which points to the chconf.h, mcuconf.h and halconf.h.

In my case:

Code: Select all

CHIBIOS = ../../chibios
CONFDIR = ./conf


Correct, this is true starting from version 18.2.0.

Giovanni

Re: Building project and board configuration outside chibios tree

Posted: Sat Feb 17, 2018 5:55 pm
by mikl74
It helped, thanks