Skip to content

Commit 5e2c4da

Browse files
authored
Merge pull request #40 from toppers/athrill-deveice
Fixed building athrill device
2 parents 8800818 + e4e376b commit 5e2c4da

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

CMakeLists.txt

+3-4
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ else()
1919
message(STATUS "CMAKE_HOST_SYSTEM_NAME is others")
2020
endif()
2121

22+
add_definitions(-D DISABLE_DEVICE_VDEV -D CPUEMU_CLOCK_BUG_FIX -DSEARCH_REGION_OPTIMIZE -DCPU_PERMISSION_OPTIMIZE -DDISABLE_SERIAL_CLOCK -DDISABLE_BUS_ACCESS_LOG -DOPTIMIZE_USE_ONLY_1CPU -DMINIMUM_DEVICE_CONFIG -DENABLE_REUSE_UDP_SOCKET -DEXDEV_ENABLE)
23+
2224
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -g -Wall -Wunknown-pragmas -Wimplicit-int -Wtrigraphs -std=gnu99 -O3")
2325

2426

@@ -128,7 +130,7 @@ target_sources(device PRIVATE
128130
"${CORE_DIR}/device/peripheral/serial/fifo/serial_fifo.c"
129131
"${TARGET_DIR}/device/device.c"
130132
"${TARGET_DIR}/device/intc/intc.c"
131-
"${TARGET_DIR}/device/peripheral/timer/timer.c"
133+
"${TARGET_DIR}/device/peripheral/timer/timer32.c"
132134
"${TARGET_DIR}/device/peripheral/serial/serial.c"
133135
"${TARGET_DIR}/device/peripheral/can/can.c"
134136
"${TARGET_DIR}/debugger/executor/concrete_executor/dbg_target_serial.c"
@@ -140,9 +142,6 @@ target_sources(device PRIVATE
140142
"${CORE_DIR}/device/peripheral/athrill_device.c"
141143
"${CORE_DIR}/device/peripheral/athrill_syscall_device.c"
142144
"${CORE_DIR}/device/peripheral/athrill_mpthread.c"
143-
"${TARGET_DIR}/device/peripheral/vdev/vdev.c"
144-
"${TARGET_DIR}/device/peripheral/vdev/vdev_mmap.c"
145-
"${TARGET_DIR}/device/peripheral/vdev/vdev_udp.c"
146145
)
147146
endif()
148147

0 commit comments

Comments
 (0)