Re: How to build external drivers

Sebastian Boe


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: devel@... <devel@...> on behalf of Joris Offouga via Lists.Zephyrproject.Org <>
Sent: Thursday, September 5, 2019 5:39:37 PM
To: devel@...
Cc: devel@...
Subject: [Zephyr-devel] How to build external drivers

Hi all,

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?

Best regards,

Joris Offouga

Best Regards,

Joris Offouga

Join to automatically receive all group messages.