It seems that the structure of the newer version of Zephyr has changed, making it impossible to compile this sample. While attempting to build, I encountered the following error:
CMake Error at drivers/CMakeLists.txt:4 (add_subdirectory_ifdef):
Unknown CMake command "add_subdirectory_ifdef".
This indicates that the add_subdirectory_ifdef CMake function cannot be found.
I am using:
cmake version 3.22.1