~aleteoryx/muditaos

ref: 1da915ace94b631914c768efcb878e0a6393195e muditaos/board/rt1051/puretx/CMakeLists.txt -rw-r--r-- 642 bytes
1da915ac — Wojtek Rzepecki [BH-777] Add Bell specific ld script configuration 4 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
if (${BOARD_REVISION} EQUAL 7)
    set (MEMORY_LINKER_FILE_PATH "${CMAKE_CURRENT_LIST_DIR}/memory_pure_T7.ld" CACHE INTERNAL "")
    target_compile_definitions(
        board
            PUBLIC
        PROJECT_CONFIG_USER_DYNMEM_SIZE=28*1024*1024
        HW_SDRAM_64_MB=1
    )
elseif (${BOARD_REVISION} EQUAL 6)
    set (MEMORY_LINKER_FILE_PATH "${CMAKE_CURRENT_LIST_DIR}/memory_pure_T6.ld" CACHE INTERNAL "")
    target_compile_definitions(
        board
            PUBLIC
        PROJECT_CONFIG_USER_DYNMEM_SIZE=9*1024*1024
        HW_SDRAM_64_MB=0
    )
else ()
    message (FATAL_ERROR "Unsupported board revision selected!") 
endif ()