nuttx-patches FATAL_ERROR if patch isn't included

This commit is contained in:
Daniel Agar 2017-05-25 12:33:59 -04:00
parent 6b3a665e33
commit 1b2c54836f

View File

@ -58,7 +58,7 @@ set(nuttx_patches
00024-BACKPORT-stm32f7-serial-dma-hotfix.patch
00025-BACKPORT-add-set-ex-to-nsh.patch
00026-BACKPORT-stm32fX-serial-fix-freezing.patch
00027-BACKPORT-stm32-sdio-1-bit-and-16G-fix.patch
00027-BACKPORT-stm32-sdio-1-bit-and-16G-fix.patch
90000-PENDING-wip-inflight-to-upstream.patch
)
@ -74,6 +74,6 @@ file(GLOB patches_found *.patch)
foreach(patch_file ${patches_found})
list (FIND px4_nuttx_patches ${patch_file} _index)
if (${_index} EQUAL -1)
message(WARNING "${patch_file} missing from nuttx-patches/CMakeLists.txt")
message(FATAL_ERROR "${patch_file} missing from nuttx-patches/CMakeLists.txt")
endif()
endforeach()