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/nmi.c 12 generic/pic.c 13 generic/reboot.c 14 generic/sysinfo.c 15 generic/usage.c) 16 17if(ARCH STREQUAL "i386") 18 list(APPEND HAL_GENERIC_SOURCE 19 generic/bios.c 20 generic/portio.c) 21 22 list(APPEND HAL_GENERIC_ASM_SOURCE 23 generic/v86.S) 24endif() 25 26add_asm_files(lib_hal_generic_asm ${HAL_GENERIC_ASM_SOURCE}) 27add_object_library(lib_hal_generic ${HAL_GENERIC_SOURCE} ${lib_hal_generic_asm}) 28add_dependencies(lib_hal_generic asm) 29