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