|
|
|
@ -85,6 +85,15 @@ endforeach()
|
|
|
|
|
|
|
|
|
|
message("+-------------------------------+")
|
|
|
|
|
message("${ColourReset}")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
####################################################################################################
|
|
|
|
|
#Stick All the libraries together, only for code redability futher down.
|
|
|
|
|
####################################################################################################
|
|
|
|
|
foreach(X IN LISTS STARTUP_UCODE PERIPHERAL_LIBS DRIVER_LIBS)
|
|
|
|
|
list(APPEND GENERATED_LIBRARIES ${X})
|
|
|
|
|
endforeach()
|
|
|
|
|
|
|
|
|
|
####################################################################################################
|
|
|
|
|
#Overview
|
|
|
|
|
####################################################################################################
|
|
|
|
@ -103,13 +112,19 @@ message(" |--> Periferal Implementation Dir\t : ${CSL_SOURCES}")
|
|
|
|
|
message(" |--> Startup uCode Submodule:")
|
|
|
|
|
message(" |->${STARTUP_UCODE}")
|
|
|
|
|
|
|
|
|
|
message(" |--> Periferals Submodules:")
|
|
|
|
|
foreach(X IN LISTS PERIPHERAL_LIBS)
|
|
|
|
|
message(" |--> Periferals which will be implemented:")
|
|
|
|
|
foreach(X IN LISTS PERIPHERALS_LIST)
|
|
|
|
|
message(" |->${X}")
|
|
|
|
|
endforeach()
|
|
|
|
|
|
|
|
|
|
message(" |--> Driver Submodules:")
|
|
|
|
|
foreach(X IN LISTS DRIVER_LIBS)
|
|
|
|
|
message(" |--> Drivers which will be implemented:")
|
|
|
|
|
foreach(X IN LISTS DRIVERS_LIST)
|
|
|
|
|
message(" |->${X}")
|
|
|
|
|
endforeach()
|
|
|
|
|
|
|
|
|
|
message(" |--> Generated Library Submodules ${Magenta}!!!This list order also defines the compilation order of submodules!!!${ColourReset}")
|
|
|
|
|
message("${BoldBlue}")
|
|
|
|
|
foreach(X IN LISTS GENERATED_LIBRARIES)
|
|
|
|
|
message(" |->${X}")
|
|
|
|
|
endforeach()
|
|
|
|
|
|
|
|
|
@ -133,10 +148,10 @@ message("Linker & Compiler Info")
|
|
|
|
|
message("+-------------------------------+")
|
|
|
|
|
|
|
|
|
|
if(IS_NO_SYS)
|
|
|
|
|
target_link_libraries(${EXECUTABLE} ${STARTUP_UCODE} ${PERIPHERAL_LIBS} ${DRIVER_LIBS})
|
|
|
|
|
target_link_libraries(${EXECUTABLE} ${GENERATED_LIBRARIES})
|
|
|
|
|
target_link_options(${EXECUTABLE} PRIVATE ${LINKER_FLAGS})
|
|
|
|
|
else ()
|
|
|
|
|
target_link_libraries(${EXECUTABLE} ${EXTRA_LIBS})
|
|
|
|
|
target_link_libraries(${EXECUTABLE} ${GENERATED_LIBRARIES})
|
|
|
|
|
endif()
|
|
|
|
|
|
|
|
|
|
message(" |--> LINKER: ${LINKER}")
|
|
|
|
@ -148,6 +163,7 @@ message(" |--> CMAKE_SIZE: ${CMAKE_SIZE}")
|
|
|
|
|
message(" |--> CMAKE_EXE_LINKER_FLAGS: ${CMAKE_EXE_LINKER_FLAGS}") #AS we provide our own linker nad not using the one from the curren OS (system)
|
|
|
|
|
message("+-------------------------------+")
|
|
|
|
|
message("${ColourReset}")
|
|
|
|
|
|
|
|
|
|
####################################################################################################
|
|
|
|
|
#CUSTOM COMMANDS
|
|
|
|
|
####################################################################################################
|
|
|
|
|