mirror of
https://github.com/zephyrproject-rtos/zephyr
synced 2025-08-19 09:55:22 +00:00
... because it is (required). This makes a difference when building with CMake and forgetting ZEPHYR_BASE or not registering Zephyr in the CMake package registry. In this particular case, REQUIRED turns this harmless looking log statement: -- Could NOT find Zephyr (missing: Zephyr_DIR) -- The C compiler identification is GNU 9.3.0 -- The CXX compiler identification is GNU 9.3.0 -- Check for working C compiler: /usr/bin/cc -- ... -- ... -- ... -- Detecting CXX compile features -- Detecting CXX compile features - done CMake Error at CMakeLists.txt:8 (target_sources): Cannot specify sources for target "app" which is not built by this project. ... into this louder, clearer, faster and (last but not least) final error: CMake Error at CMakeLists.txt:5 (find_package): Could not find a package configuration file provided by "Zephyr" with any of the following names: ZephyrConfig.cmake zephyr-config.cmake Add the installation prefix of "Zephyr" to CMAKE_PREFIX_PATH or set "Zephyr_DIR" to a directory containing one of the above files. If "Zephyr" provides a separate development package or SDK, be sure it has been installed. -- Configuring incomplete, errors occurred! Signed-off-by: Marc Herbert <marc.herbert@intel.com> |
||
---|---|---|
.. | ||
src | ||
CMakeLists.txt | ||
prj_newlib.conf | ||
prj_newlibnano.conf | ||
prj.conf | ||
README.txt | ||
testcase.yaml |
Title: Kernel Access to Dynamic Memory Allocation functions provided by Standard Libraries Description: This test verifies kernel access to the dynamic memory allocation functions provided by standard C libraries supported in Zephyr: NEWLIB and MINIMAL_LIB. It is intended to catch issues in which a library is completely absent or non-functional, and is NOT intended to be a comprehensive test suite of all functionality provided by the libraries. -------------------------------------------------------------------------------- Building and Running Project: This project outputs to the console. It can be built and executed on QEMU as follows: make run -------------------------------------------------------------------------------- Troubleshooting: Problems caused by outdated project information can be addressed by issuing one of the following commands then rebuilding the project: make clean # discard results of previous builds # but keep existing configuration info or make pristine # discard results of previous builds # and restore pre-defined configuration info -------------------------------------------------------------------------------- Sample Output: ***** BOOTING ZEPHYR OS vxxxx - BUILD: xxxx ***** Running test suite test_c_lib_dynamic_memalloc =================================================================== starting test - test_malloc PASS - test_malloc =================================================================== starting test - test_free PASS - test_free =================================================================== starting test - test_calloc PASS - test_calloc =================================================================== starting test - test_realloc PASS - test_realloc =================================================================== starting test - test_reallocarray PASS - test_reallocarray =================================================================== starting test - test_memalloc_all PASS - test_memalloc_all =================================================================== starting test - test_memalloc_max PASS - test_memalloc_max =================================================================== =================================================================== PROJECT EXECUTION SUCCESSFUL