-
Notifications
You must be signed in to change notification settings - Fork 6.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cmake: enhanced board entry file handling
With a single board now covering what used to be several boards, and with the ability to omit SoC when building for a single SoC board, then <board>_defconfig and <board>.dts lookup is improved. A single SoC board may prefer to keep its defconfig entry point as <board>_defconfig instead of <board>_<soc>_defconfig. Also, a multi-SoC board / multi-core SoC board, which used to be implemented as n-boards may wish to have common _defconfig settings in a common <board>_defconfig file, and the SoC / cpuset specifics in <board>_<soc>_defconfig / <board>_<soc>_<core>_defconfig. Such defconfig support allows also to place build variant specifics in its own <board>_<soc>_<variant>_defconfig file. This commit allows multiple _defconfigs for a board and its identifiers. Similar is implemented for a board's dts file. If a <board>_<soc>_<core>.dts file is not found, the build system will instead use <board>_<soc>.dts, and finally fallback to <board>.dts. This allows a board to have a shared dts file for all board identifiers which are identical while still support specific dts where required. A dts file is a devicetree starting point and thus two dts files cannot be used in together. For such cases, an ordinary board overlay file must be used. Signed-off-by: Torsten Rasmussen <Torsten.Rasmussen@nordicsemi.no>
- Loading branch information
Showing
3 changed files
with
102 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters