Files
Danny Lin 8302aa7846 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>
Signed-off-by: Panchajanya1999 <panchajanya@azure-dev.live>
Signed-off-by: UtsavBalar1231 <utsavbalar1231@gmail.com>
2020-06-23 10:48:14 +05:30
..
2017-08-03 23:34:18 +02:00
2017-06-12 14:50:34 +02:00