Skip to content

Commit

Permalink
appplications: sdp: gpio: add asm_check to flpr_egpio
Browse files Browse the repository at this point in the history
Add asm_check target as a depency for flpr_egpio application.
This will generate new ASM file for every source file in
hrt folder and check if the new ones are the same as the
one saved in git. For every file that differs a warning
is printed.

By making asm_check a dependency of flpr_egpio application
asm_check will be run both for sysbuild application including
eGPIO and for stand-alone SDP application before the main
build starts.

Signed-off-by: Magdalena Pastula <[email protected]>
  • Loading branch information
magp-nordic committed Oct 24, 2024
1 parent 903b128 commit 1e37564
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions applications/sdp/gpio/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,13 @@ find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE})
project(emulated_gpio)

sdp_assembly_generate("${CMAKE_SOURCE_DIR}/src/hrt/hrt.c")
sdp_assembly_check("${CMAKE_SOURCE_DIR}/src/hrt/hrt.c")
sdp_assembly_prepare_install("${CMAKE_SOURCE_DIR}/src/hrt/hrt.c")

target_sources(app PRIVATE src/main.c)
target_sources(app PRIVATE src/hrt/hrt.s)
target_sources_ifdef(CONFIG_GPIO_NRFE_EGPIO_BACKEND_ICMSG app PRIVATE src/backend/backend_icmsg.c)
target_sources_ifdef(CONFIG_GPIO_NRFE_EGPIO_BACKEND_ICBMSG app PRIVATE src/backend/backend_icmsg.c)
target_sources_ifdef(CONFIG_GPIO_NRFE_EGPIO_BACKEND_MBOX app PRIVATE src/backend/backend_mbox.c)

add_dependencies(app asm_check)

0 comments on commit 1e37564

Please sign in to comment.