generic/legacy/bus/pcidata.c
generic/legacy/bus/sysbus.c
generic/legacy/bussupp.c
+ generic/legacy/halpnpdd.c
generic/legacy/halpcat.c)
list(APPEND HAL_GENERIC_ACPI_SOURCE
generic/legacy/bus/pcibus.c)
if(ARCH MATCHES i386)
+ list(APPEND HAL_GENERIC_ACPI_SOURCE
+ generic/halinit.c)
list(APPEND HAL_GENERIC_UP_SOURCE
generic/spinlock.c
up/pic.c
up/processor.c)
- spec2def(hal.dll ../hal.spec ADD_IMPORTLIB)
+ spec2def(hal.dll ../hal.spec)
list(APPEND HAL_SOURCE
${HAL_GENERIC_SOURCE}
add_pch(hal include/hal.h)
add_dependencies(hal psdk bugcodes)
- set_entrypoint(hal HalInitSystem@8)
+ set_entrypoint(hal HalInitSystem 8)
set_subsystem(hal native)
set_image_base(hal 0x00010000)
add_importlibs(hal ntoskrnl)
add_cd_file(TARGET hal DESTINATION reactos/system32 NO_CAB FOR all)
+ # hal acpi
+ spec2def(halacpi.dll ../hal.spec halacpi)
+ add_library(halacpi SHARED
+ ${HAL_GENERIC_SOURCE}
+ ${HAL_GENERIC_ACPI_SOURCE}
+ ${HAL_GENERIC_UP_SOURCE}
+ up/halinit_up.c
+ up/halup.rc
+ ${CMAKE_CURRENT_BINARY_DIR}/halacpi.def)
+ add_dependencies(halacpi psdk bugcodes)
+ set_entrypoint(halacpi HalInitSystem@8)
+ set_subsystem(halacpi native)
+ set_image_base(halacpi 0x00010000)
+ add_importlibs(halacpi ntoskrnl)
+ target_link_libraries(halacpi libcntpr)
+ set_property(TARGET halacpi PROPERTY COMPILE_DEFINITIONS CONFIG_ACPI)
+ add_cd_file(TARGET halacpi DESTINATION reactos/system32 NO_CAB FOR all)
+
# mini_hal
add_library(mini_hal ${MINI_HAL_SOURCE})
set_property(TARGET mini_hal PROPERTY COMPILE_DEFINITIONS "_BLDR_;_MINIHAL_")