Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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 <[email protected]> Conflicts: include/acpi/platform/acenv.h
- Loading branch information