comparison src/CMakeLists.txt @ 287:b73c5bd61c37

merge
author menikon <e165723@ie.u-ryukyu.ac.jp>
date Thu, 23 Jan 2020 01:55:03 +0900
parents 1301727600cc
children cd9092628a63 08cd784ddbc0
comparison
equal deleted inserted replaced
286:34fae66beb7e 287:b73c5bd61c37
92 92
93 #target_link_libraries(syslib) 93 #target_link_libraries(syslib)
94 file(COPY "${CMAKE_SOURCE_DIR}/interface/" DESTINATION ${CMAKE_KERNEL_DIR_C}) 94 file(COPY "${CMAKE_SOURCE_DIR}/interface/" DESTINATION ${CMAKE_KERNEL_DIR_C})
95 file(GLOB XV6_HEADERS "${CMAKE_SOURCE_DIR}/*.h") 95 file(GLOB XV6_HEADERS "${CMAKE_SOURCE_DIR}/*.h")
96 file(COPY ${XV6_HEADERS} DESTINATION ${CMAKE_KERNEL_DIR_C}) 96 file(COPY ${XV6_HEADERS} DESTINATION ${CMAKE_KERNEL_DIR_C})
97 file(GLOB XV6_IMPL_HEADERS "${CMAKE_SOURCE_DIR}/impl/*.h")
98 file(COPY ${XV6_IMPL_HEADERS} DESTINATION ${CMAKE_KERNEL_DIR_C})
97 include_directories(${CMAKE_KERNEL_DIR_C}) 99 include_directories(${CMAKE_KERNEL_DIR_C})
98 add_custom_command ( 100 add_custom_command (
99 OUTPUT ${CMAKE_KERNEL_DIR_C}/c/${_Gears_TARGET}-context.c 101 OUTPUT ${CMAKE_KERNEL_DIR_C}/c/${_Gears_TARGET}-context.c
100 DEPENDS ${_Gears_CBC_SOURCES} fs.img initcode 102 DEPENDS ${_Gears_CBC_SOURCES} fs.img initcode
101 COMMAND "cd" "CMakeFiles/kernel.dir" ";" "perl" "${CMAKE_SOURCE_DIR}/gearsTools/generate_context.pl" "-o" ${_Gears_TARGET} "-w" ${_Gears_CBC_SOURCES} 103 COMMAND "cd" "CMakeFiles/kernel.dir" ";" "perl" "${CMAKE_SOURCE_DIR}/gearsTools/generate_context.pl" "-o" ${_Gears_TARGET} "-w" ${_Gears_CBC_SOURCES}
124 TARGET 126 TARGET
125 kernel 127 kernel
126 SOURCES 128 SOURCES
127 string.c arm.c asm.S bio.c buddy.c console.cbc exec.c file.cbc fs.c log.c main.c memide.c pipe.cbc proc.cbc spinlock.cbc 129 string.c arm.c asm.S bio.c buddy.c console.cbc exec.c file.cbc fs.c log.c main.c memide.c pipe.cbc proc.cbc spinlock.cbc
128 start.c swtch.S syscall.cbc sysfile.cbc sysproc.c trap_asm.S trap.c vm.c device/picirq.c device/timer.c device/uart.c 130 start.c swtch.S syscall.cbc sysfile.cbc sysproc.c trap_asm.S trap.c vm.c device/picirq.c device/timer.c device/uart.c
129 SingleLinkedStack.cbc entry.S impl/vm_impl.cbc 131 SingleLinkedStack.cbc entry.S impl/vm_impl.cbc impl/vm_impl_private.cbc
130 ) 132 )
131 133
132 # sys_read_impl.cbc 134 # sys_read_impl.cbc