Building project and board configuration outside chibios tree Topic is solved

ChibiOS public support forum for all topics not covered by a specific support forum.

Moderators: RoccoMarco, lbednarz, tfAteba

Post Reply
mikl74
Posts: 2
Joined: Mon Feb 12, 2018 1:40 pm

Building project and board configuration outside chibios tree

Post 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.
User avatar
Giovanni
Site Admin
Posts: 14895
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 997 times

Re: Building project and board configuration outside chibios tree

Post 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
User avatar
wurstnase
Posts: 121
Joined: Tue Oct 17, 2017 2:24 pm
Has thanked: 43 times
Been thanked: 30 times

Re: Building project and board configuration outside chibios tree

Post 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
User avatar
Giovanni
Site Admin
Posts: 14895
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 997 times

Re: Building project and board configuration outside chibios tree

Post 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
mikl74
Posts: 2
Joined: Mon Feb 12, 2018 1:40 pm

Re: Building project and board configuration outside chibios tree

Post by mikl74 »

It helped, thanks
Post Reply