Separate path variables for *conf.h files
Posted: Wed Nov 07, 2018 1:42 am
I'm currently integrating ChibiOS into another framework, and it is evident that I need separate configuration paths for where to find chconf.h, halconf.h, and mcuconf.h . It makes sense too from a Chibi product offering standpoint since the OS and HAL are separate modules.
Currently the makefiles (rt.mk, hal.mk, and platform.mk) assume that the related ch/hal/mcuconf.h are in a single directory $CONFDIR . It would be good to have those makefile reference CHCONFDIR, HALCONFDIR, and MCUCONFDIF. The user's project makefile may set all of them to be the same if they want - but it allows for greater flexibility in those projects where ChibiOS is part of a larger system.
Currently the makefiles (rt.mk, hal.mk, and platform.mk) assume that the related ch/hal/mcuconf.h are in a single directory $CONFDIR . It would be good to have those makefile reference CHCONFDIR, HALCONFDIR, and MCUCONFDIF. The user's project makefile may set all of them to be the same if they want - but it allows for greater flexibility in those projects where ChibiOS is part of a larger system.