ccportab.h

Report here problems in any of ChibiOS components. This forum is NOT for support.
steved
Posts: 606
Joined: Fri Nov 09, 2012 2:22 pm
Has thanked: 5 times
Been thanked: 76 times

ccportab.h

Postby steved » Fri Aug 09, 2019 11:00 am

It's not included into most ports on 19.1.3 (just ARMCAx-TZ, that I could see).

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

Re: ccportab.h

Postby Giovanni » Fri Aug 09, 2019 12:06 pm

The problem is that I have not yet decided to which layer it should belongs to: port, HAL or startup? there are pro and cons for each place, main problem is that HAL and RT/NIL/ports can work independently from each other.

So, undecided.

Giovanni

steved
Posts: 606
Joined: Fri Nov 09, 2012 2:22 pm
Has thanked: 5 times
Been thanked: 76 times

Re: ccportab.h

Postby steved » Wed Aug 14, 2019 1:35 pm

Does it have to belong to a layer?

It really belongs with the compiler in use, to be included at the top of every file that is compiled.

For gcc, -include file (or maybe -imacros file) on the command line would do it; no doubt other compilers have similar options.

That command line value could be appended to the definition for CC and CPPC in arm-non-eabi.mk (I realise that file is in the 'startup' directory, but its actually only compiler-specific, I think)

This could be extended to allow inclusion of other arbitrary files in the same way.


Return to “Bug Reports”

Who is online

Users browsing this forum: No registered users and 1 guest