ysyx-workbench/abstract-machine/cmake/nemu-settings.cmake

13 lines
407 B
CMake
Raw Normal View History

2024-03-25 08:56:16 +00:00
set(NEMU_COMPILE_OPTIONS -fdata-sections -ffunction-sections)
set(NEMU_LINK_OPTIONS
2024-08-15 03:56:34 +00:00
-nostartfiles
-nolibc
2024-03-25 08:56:16 +00:00
--defsym=_pmem_start=0x80000000
--defsym=_entry_offset=0x0
--gc-sections
2024-08-15 03:56:34 +00:00
-e
_start)
set(NEMU_INCLUDE_DIRECTORIES ${CMAKE_SOURCE_DIR}/am/src/platform/nemu/include)
file(GLOB_RECURSE NEMU_SOURCES ${CMAKE_SOURCE_DIR}/am/src/platform/nemu/*.[cS])
2024-03-25 08:56:16 +00:00
set(INCLUDE_LINKER_SCRIPT ON)