mirror of
https://github.com/genodelabs/genode.git
synced 2024-12-22 06:57:51 +00:00
ad059362d2
For base-hw Core, we used to add quite some hardware-specific include paths to 'INC_DIR'. Generic code used to include, for instance, '<cpu.h>' and '<translation_table.h>' using these implicit path resolutions. This commit removes hardware-specific include paths except for 1) the '<board.h>' include paths (e.g., 'src/core/board/pbxa9'), 2) most architecture-specific include paths (e.g., 'src/core/spec/arm_v7'), 3) include paths that reflect usage of virtualization or ARM Trustzone (e.g., 'src/core/spec/arm/virtualization'). The first category is kept because, in contrast to the former "spec"-mechanism, the board variable used for this type of resolution is not deprecated and the board headers are meant to be the front end of hardware-specific headers towards generic code which is why they must be available generically via '<board.h>'. The second category is kept because it was suggested by other maintainers that simple arch-dependent headers (like for the declaration of a CPU state) should not imply the inclusion of the whole '<board.h>' and because the architecture is given also without the former "spec"-mechanism through the type of the build directory. I think this is questionable but am fine with it. The third category is kept because the whole way of saying whether virtualization resp. ARM Trustzone is used is done in an out-dated manner and changing it now would blow up this commit a lot and exceed the time that I'm willing to spend. This category should be subject to a future issue. Ref #4217 |
||
---|---|---|
.. | ||
bootstrap-hw-imx8q_evk.mk | ||
bootstrap-hw-rpi3.mk | ||
bootstrap-hw-virt_qemu.mk | ||
core-hw-imx8q_evk.mk | ||
core-hw-rpi3.mk | ||
core-hw-virt_qemu.mk | ||
core-hw.inc | ||
ld-hw.mk |