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: barthess, RoccoMarco, utzig, lbednarz, tfAteba

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

Building project and board configuration outside chibios tree

Postby mikl74 » Mon Feb 12, 2018 2:56 pm

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: 10574
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 268 times
Been thanked: 231 times
Contact:

Re: Building project and board configuration outside chibios tree

Postby Giovanni » Mon Feb 12, 2018 3:21 pm

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: 21
Joined: Tue Oct 17, 2017 2:24 pm
Has thanked: 9 times
Been thanked: 4 times
Contact:

Re: Building project and board configuration outside chibios tree

Postby wurstnase » Mon Feb 12, 2018 3:26 pm

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
\o/ Nico

User avatar
Giovanni
Site Admin
Posts: 10574
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 268 times
Been thanked: 231 times
Contact:

Re: Building project and board configuration outside chibios tree  Topic is solved

Postby Giovanni » Mon Feb 12, 2018 3:39 pm

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

Postby mikl74 » Sat Feb 17, 2018 5:55 pm

It helped, thanks


Return to “General Support”

Who is online

Users browsing this forum: No registered users and 4 guests