ACPICA: Added setting a custom path for the log.

git-svn-id: svn://kolibrios.org@9498 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
turbocat 2021-12-27 18:19:07 +00:00
parent 1a682e6e6d
commit c1d40e004d
2 changed files with 4 additions and 6 deletions

View File

@ -5,11 +5,9 @@ tup.include("../../../programs/use_gcc.lua")
DRV_DIR = "./../.." DRV_DIR = "./../.."
INCLUDES = string.format(" -I./include -I%s/include -I%s/include/linux -I%s/include/uapi ", DRV_DIR, DRV_DIR, DRV_DIR) INCLUDES = string.format(" -I./include -I%s/include -I%s/include/linux -I%s/include/uapi ", DRV_DIR, DRV_DIR, DRV_DIR)
DEFINES = " -DACPI_LIBRARY -D_SINGLE_THREADED -D__KERNEL__ -DCONFIG_X86_32 -DCONFIG_X86_L1_CACHE_SHIFT=6 -DCONFIG_ARCH_HAS_CACHE_LINE_SIZE -DLINUX_MOD_DEVICETABLE_H " DEFINES = [[ -DACPI_LIBRARY -D_SINGLE_THREADED -D__KERNEL__ -DCONFIG_X86_32 -DCONFIG_X86_L1_CACHE_SHIFT=6 -DCONFIG_ARCH_HAS_CACHE_LINE_SIZE -DLINUX_MOD_DEVICETABLE_H -DACPI_LOG="\"/tmp0/1/acpi.log"\"]]
CFLAGS = CFLAGS .. " -O2 -march=i686 -fno-ident -msse2 -fomit-frame-pointer -fno-builtin-printf -mno-stack-arg-probe -mpreferred-stack-boundary=2 -mincoming-stack-boundary=2 -mno-ms-bitfields " .. DEFINES CFLAGS = " -Os -march=i686 -fno-ident -msse2 -fomit-frame-pointer -fno-builtin-printf -mno-stack-arg-probe -mpreferred-stack-boundary=2 -mincoming-stack-boundary=2 -mno-ms-bitfields " .. DEFINES
NAME = "ACPICA"
compile_gcc{ compile_gcc{
"debugger/dbcmds.c" , "debugger/dbcmds.c" ,

View File

@ -166,9 +166,9 @@ typedef void* (*PTHREAD_CALLBACK) (void *);
ACPI_STATUS ACPI_STATUS
AcpiOsInitialize (void) AcpiOsInitialize (void)
{ {
if(!dbg_open("/rd/1/drivers/acpi.log")) if(!dbg_open(ACPI_LOG))
{ {
dbgprintf("Can't open /rd/1/drivers/acpi.log\nExit\n"); dbgprintf("Can't open %s\nExit\n", ACPI_LOG);
return AE_ERROR; return AE_ERROR;
} }