you can add out-of-tree directories that contain CMakeLists.txt files that define zephyr libraries (like drivers), by doing
west build -b board_name . -- -DZEPHYR_EXTRA_MODULES<path_to_driver>
From: firstname.lastname@example.org <email@example.com> on behalf of Joris Offouga via Lists.Zephyrproject.Org <firstname.lastname@example.org>
Sent: Thursday, September 5, 2019 5:39:37 PM
Subject: [Zephyr-devel] How to build external drivers
How to build external drivers with zephyr, like board with example :
west build -b board_name . -- -DBOARD=board_name
is there a similar command for drivers?