diff options
author | Trygve Laugstøl <trygvis@inamo.no> | 2016-07-16 07:57:28 +0200 |
---|---|---|
committer | Trygve Laugstøl <trygvis@inamo.no> | 2016-07-16 10:37:06 +0200 |
commit | ffa14762a506c39d897fd63f028b39904cf22a5f (patch) | |
tree | 361c863c7851f4c41797b5ec4fa8aa9c9213c4aa /cmake/intel | |
parent | 8fdcf6b00313829230a61da4dfe210e5f82b371e (diff) | |
download | intel-quark-d2000-playground-master.tar.gz intel-quark-d2000-playground-master.tar.bz2 intel-quark-d2000-playground-master.tar.xz intel-quark-d2000-playground-master.zip |
o Changing how the toolchain create the qmsi libraries etc. Replace the hardcoded library with a function that the user can use to create its own special target. This target can be further customized by normal CMake methods by setting properties.HEADmaster
o Adding start of a app for playing with MOD-LCD3310 which is a PCD8544 connected through SPI.
Diffstat (limited to 'cmake/intel')
-rw-r--r-- | cmake/intel/qmsi.cmake | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/cmake/intel/qmsi.cmake b/cmake/intel/qmsi.cmake new file mode 100644 index 0000000..0cffa5e --- /dev/null +++ b/cmake/intel/qmsi.cmake @@ -0,0 +1,27 @@ +function(qmsi_init) +endfunction() + +function(qmsi_create TARGET_SUFFIX) + set(qmsi qmsi_${TARGET_SUFFIX}) + set(bmc qmsi_bmc_${TARGET_SUFFIX}) + message("Creating QMSI targets ${qmsi} and ${bmc}") + + file(GLOB_RECURSE qmsi_sources + ${ISSM_DIR}/firmware/bsp/1.0/drivers/*.c + ${ISSM_DIR}/firmware/bsp/1.0/sys/*.c) + add_library(${qmsi} STATIC ${qmsi_sources}) + target_include_directories(${qmsi} PUBLIC "${ISSM_DIR}/firmware/bsp/1.0/include") + target_include_directories(${qmsi} PUBLIC "${ISSM_DIR}/firmware/bsp/1.0/drivers/include") + + message("INTEL_QUARK_CHIP=${INTEL_QUARK_CHIP}") + if (INTEL_QUARK_CHIP STREQUAL D2000) + target_include_directories(${qmsi} PUBLIC "${ISSM_DIR}/firmware/bsp/1.0/soc/quark_d2000/include") + elseif (INTEL_QUARK_CHIP STREQUAL SE) + target_include_directories(${qmsi} PUBLIC "${ISSM_DIR}/firmware/bsp/1.0/soc/quark_se/include") + endif () + + file(GLOB_RECURSE bmc_sources ${ISSM_DIR}/firmware/bsp/1.0/board/drivers/bmc150/*.c) + add_library(${bmc} STATIC ${bmc_sources}) + target_link_libraries(${bmc} PUBLIC ${qmsi}) + target_include_directories(${bmc} PUBLIC "${ISSM_DIR}/firmware/bsp/1.0/board/drivers") +endfunction() |