2014-02-10 18:35:12 +00:00
|
|
|
|
|
|
|
list(APPEND MINI_HAL_SOURCE
|
|
|
|
../generic/portio.c
|
|
|
|
../legacy/bus/bushndlr.c
|
|
|
|
../legacy/bus/cmosbus.c
|
|
|
|
../legacy/bus/isabus.c
|
|
|
|
../legacy/bus/pcibus.c
|
|
|
|
../legacy/bussupp.c
|
|
|
|
../generic/dma.c
|
|
|
|
../generic/drive.c
|
|
|
|
../generic/misc.c
|
2020-07-25 13:31:02 +00:00
|
|
|
../generic/nmi.c
|
2014-02-10 18:35:12 +00:00
|
|
|
../generic/spinlock.c
|
|
|
|
../generic/timer.c
|
|
|
|
../generic/usage.c
|
2021-03-14 23:42:49 +00:00
|
|
|
../pic/pic.c
|
|
|
|
../include/hal.h
|
|
|
|
halinit.c)
|
2014-02-10 18:35:12 +00:00
|
|
|
|
2020-07-25 13:31:02 +00:00
|
|
|
if(SARCH STREQUAL "xbox")
|
|
|
|
list(APPEND MINI_HAL_SOURCE
|
|
|
|
../generic/beep.c
|
|
|
|
../generic/cmos.c
|
|
|
|
../xbox/clock.c
|
|
|
|
../xbox/reboot.c)
|
|
|
|
elseif(SARCH STREQUAL "pc98")
|
|
|
|
list(APPEND MINI_HAL_SOURCE
|
|
|
|
../pc98/beep.c
|
|
|
|
../pc98/clock.c
|
|
|
|
../pc98/cmos.c
|
|
|
|
../pc98/reboot.c)
|
|
|
|
else()
|
|
|
|
list(APPEND MINI_HAL_SOURCE
|
|
|
|
../generic/beep.c
|
|
|
|
../generic/clock.c
|
|
|
|
../generic/cmos.c
|
|
|
|
../generic/reboot.c)
|
|
|
|
endif()
|
|
|
|
|
2014-02-10 18:35:12 +00:00
|
|
|
add_asm_files(mini_hal_asm ../generic/systimer.S)
|
|
|
|
add_library(mini_hal ${MINI_HAL_SOURCE} ${mini_hal_asm})
|
2022-05-08 01:06:27 +00:00
|
|
|
target_compile_definitions(mini_hal PRIVATE _MINIHAL_ _BLDR_ _NTSYSTEM_)
|
2014-02-10 18:35:12 +00:00
|
|
|
add_dependencies(mini_hal psdk bugcodes asm)
|
|
|
|
add_pch(mini_hal ../include/hal.h MINI_HAL_SOURCE)
|