genode/repos/base-hw/lib/mk/spec
Martin Stein ad059362d2 base-hw: reduce hardware-specific include paths
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
2021-10-13 14:46:53 +02:00
..
arm base: extend cache maintainance functionality 2021-06-25 11:43:41 +02:00
arm_64 base/base-hw: unify startup library builds 2021-02-23 12:07:15 +01:00
arm_v6 base-hw: simplify board support in external repo 2021-01-25 13:58:10 +01:00
arm_v7 base-hw: reduce hardware-specific include paths 2021-10-13 14:46:53 +02:00
arm_v8 base-hw: reduce hardware-specific include paths 2021-10-13 14:46:53 +02:00
cortex_a8 base-hw: reduce hardware-specific include paths 2021-10-13 14:46:53 +02:00
cortex_a9 base-hw: reduce hardware-specific include paths 2021-10-13 14:46:53 +02:00
cortex_a15 base-hw: reduce hardware-specific include paths 2021-10-13 14:46:53 +02:00
riscv riscv: Interrupt controller support 2021-03-12 12:01:38 +01:00
x86_64 base-hw: conform pc board header 2021-10-13 14:46:52 +02:00