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