drivers: sensors: build as static libraries
Instead of putting object files inside libzephyr.a, simply build a separate static library for the top level of sensor drivers. Also, for those that were not building its own static library, make them do so as majority of sensor drivers are building their own static libraries. Signed-off-by: Daniel Leung <daniel.leung@intel.com>
This commit is contained in:
parent
378ad046c8
commit
bcdff8220a
4 changed files with 13 additions and 7 deletions
|
@ -3,4 +3,6 @@
|
|||
#
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
zephyr_sources_ifdef(CONFIG_LSM303DLHC_MAGN lsm303dlhc_magn.c)
|
||||
zephyr_library()
|
||||
|
||||
zephyr_library_sources_ifdef(CONFIG_LSM303DLHC_MAGN lsm303dlhc_magn.c)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue