1 2list(APPEND HAL_GENERIC_SOURCE 3 generic/beep.c 4 generic/cmos.c 5 generic/display.c 6 generic/dma.c 7 generic/drive.c 8 generic/halinit.c 9 generic/memory.c 10 generic/misc.c 11 generic/reboot.c 12 generic/sysinfo.c 13 generic/usage.c) 14 15if(ARCH STREQUAL "i386") 16 list(APPEND HAL_GENERIC_SOURCE 17 generic/bios.c 18 generic/portio.c) 19 20 list(APPEND HAL_GENERIC_ASM_SOURCE 21 generic/v86.S) 22endif() 23 24add_asm_files(lib_hal_generic_asm ${HAL_GENERIC_ASM_SOURCE}) 25add_object_library(lib_hal_generic ${HAL_GENERIC_SOURCE} ${lib_hal_generic_asm}) 26add_dependencies(lib_hal_generic asm) 27add_pch(lib_hal_generic include/hal.h) 28