Aim:
I am trying to build Gen AVB TSN stack for MIMXRT1180-EVK board on CM7 target running Zephyr.
https://github.com/NXP/GenAVB_TSN
It has configuration file for FreeRTOS: config_freertos_rt1189_cm7.cmake
But not for Zephyr. It has the following for Zephyr:
config_zephyr_imx8mm_ca53.cmake
config_zephyr_imx8mn_ca53.cmake
config_zephyr_imx8mp_ca53.cmake
config_zephyr_imx93_ca55.cmake
Input needed in:
Can someone share how to build it for one of the Zephyr targets mentioned above for me to take as a reference.
Also it would be great if someone can have a look at my approach and see if I am on the right track
What I have tried:
The approach that I am taking is that I am trying to build Zephyr application inncluding the GEN AVB TSN stack as a library. In my workspace I have pulled the source codes from github:
|- workspace
| |- GenAVB_TSN
| |- rtos-abstraction-layer
| |- zephyrproject
| |- mcux_sdk_main
| |- zephyr-genavb-demo --> Zephyr application
| | |- CMakeLists.txt
| | |- local_config_mimxrt1180_evk_mimxrt1189_cm7.cmake
| | |- src
| | | |- main.c
Note, that Zephyr setup is already done and I am able to build hello_world application for CM7 target using the following commands:
cd ~/zephyrproject/zephyr
west build -p -b mimxrt1180_evk/mimxrt1189/cm7 samples/hello_world
The GenAVB_TSN is on 7_1 branch and I added config_zephyr_imxrt1189_cm7.cmake:
The Zephyr application has a 2 main files. CMakeLists.txt and local_config_mimxrt1180_evk_mimxrt1189_cm7.cmake
Command that I use for build:
cd ~/zephyrproject/zephyr
west build -p -b mimxrt1180_evk/mimxrt1189/cm7 ~/zephyr-genavb-demo/ --sysbuild