Files
Danny Lin 5f181e97bb ACPICA: Fix failed target detection with bare-metal compiler
The target environment macro checks in ACPICA fail when the compiler
targets bare-metal environments (i.e. plain ELF images) instead of Linux
userspace environments. The predefined __linux__ macro is not defined in
such cases, but this is all ACPICA checks for. Not being able to detect
the target environment causes hundreds of compile errors to be emitted
due to missing definitions, because those definitions are normally in
target-specific headers.

Fix the issue by using the proper method of detecting whether code is
being compiled as part of the kernel (__KERNEL__) in the ACPICA target
environment detection header, thus resulting in the appropriate target
headers being included.

Signed-off-by: Danny Lin <danny@kdrag0n.dev>
(cherry picked from commit b312c82e88f61837c8d45d9e31eb51f70b3adaba)
2021-07-19 08:18:58 +00:00
..