mirror of
https://github.com/genodelabs/genode.git
synced 2025-02-20 17:52:52 +00:00
The 'src/core/board/<board>/board.h' header is thought as front end of hardware-specific headers of a given board towards the generic base-hw Core code. Therefore it leads to problems (circular includes) if the board.h header is included from within another hardware-specific header. If hardware-specific headers access declarations from namespace Board in a definition, the definition should be moved to a compilation unit that may include board.h. If hardware-specific headers access declarations from board.h in a declaration, they should either use the primary declaration from the original header or, if the declaration must be selected according to the board, another board-specific header should be introduced to reflect this abstraction. This is applied by this commit for the current state of base-hw. Ref #4217