Files
phelter 08d0cff40d Feature/fixing clang gnu compiler warnings (#45)
* Support for CMake builds. Added Linux stub port for now to allow cross
compilation.

* Fixing misuse of doxygen documentation

* Converting prints from %lu to %u where possible as per request in comments related to (#35)

* Fixing clang compiler warnings.

* Fixing build test to work regardless of configuration.

* Adding in for Zynq port dependency on uncached_memory target.

* Excluding build_test from all build - must request it explicitly.

* Ensuring XPAR_XSDPS_0_IS_CACHE_COHERENT is 1 for this build since using
a modified xsdps driver that requires it.

* Updating compiler warnings.

* Fixing documentation, signed/unsigned conversion. Bugfix for time based code for removing failure in 2032 due to uint32_t used for time.

* Fixing error creation using FF_createERR everywhere missed.

* Fixing build_test in ci.yml

* Uncrustify: triggered by comment.

---------

Co-authored-by: Nikhil Kamath <110539926+amazonKamath@users.noreply.github.com>
Co-authored-by: GitHub Action <action@github.com>
2023-05-16 12:16:58 -07:00

39 lines
1.4 KiB
CMake

add_library( freertos_plus_fat_config_common INTERFACE )
target_include_directories(freertos_plus_fat_config_common INTERFACE Common/include )
# -------------------------------------------------------------------
add_library( freertos_plus_fat_config_default INTERFACE)
target_include_directories(freertos_plus_fat_config_default INTERFACE DefaultConf)
target_link_libraries(freertos_plus_fat_config_default INTERFACE freertos_plus_fat_config_common)
# -------------------------------------------------------------------
# Configuration for FreeRTOS-Plus-FAT tests
if(FREERTOS_PLUS_FAT_TEST_CONFIGURATION STREQUAL "CUSTOM" )
# Check Config target is available. And then do nothing.
if(NOT TARGET freertos_config )
message(FATAL_ERROR "FREERTOS_PLUS_FAT_TEST_CONFIGURATION = CUSTOM, but no freertos_config target defined.")
endif()
else()
add_library( freertos_config ALIAS freertos_plus_fat_config_default)
endif()
add_executable(freertos_plus_fat_build_test EXCLUDE_FROM_ALL)
target_sources(freertos_plus_fat_build_test
PRIVATE
Common/main.c
)
target_compile_options(freertos_plus_fat_build_test
PRIVATE
$<$<COMPILE_LANG_AND_ID:C,Clang>:-Wno-missing-noreturn>
$<$<COMPILE_LANG_AND_ID:C,Clang>:-Wno-missing-prototypes>
)
target_link_libraries(freertos_plus_fat_build_test
PRIVATE
freertos_plus_fat
freertos_plus_fat_port
freertos_kernel
)