drivers: can: build as static library
Instead of putting object files inside libzephyr.a, simply build a separate static library as most other driver types are doing this already. Signed-off-by: Daniel Leung <daniel.leung@intel.com>
This commit is contained in:
parent
bcdff8220a
commit
a062463d7b
1 changed files with 13 additions and 11 deletions
|
@ -1,14 +1,16 @@
|
|||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
zephyr_sources_ifdef(CONFIG_CAN can_common.c)
|
||||
zephyr_sources_ifdef(CONFIG_CAN_LOOPBACK can_loopback.c)
|
||||
zephyr_sources_ifdef(CONFIG_CAN_MCP2515 can_mcp2515.c)
|
||||
zephyr_sources_ifdef(CONFIG_CAN_STM32 can_stm32.c)
|
||||
zephyr_sources_ifdef(CONFIG_CAN_STM32FD can_stm32fd.c)
|
||||
zephyr_sources_ifdef(CONFIG_CAN_MCAN can_mcan.c)
|
||||
zephyr_sources_ifdef(CONFIG_CAN_MCUX_FLEXCAN can_mcux_flexcan.c)
|
||||
zephyr_sources_ifdef(CONFIG_CAN_RCAR can_rcar.c)
|
||||
zephyr_library()
|
||||
|
||||
zephyr_sources_ifdef(CONFIG_USERSPACE can_handlers.c)
|
||||
zephyr_sources_ifdef(CONFIG_CAN_SHELL can_shell.c)
|
||||
zephyr_sources_ifdef(CONFIG_CAN_NET can_net.c)
|
||||
zephyr_library_sources_ifdef(CONFIG_CAN can_common.c)
|
||||
zephyr_library_sources_ifdef(CONFIG_CAN_LOOPBACK can_loopback.c)
|
||||
zephyr_library_sources_ifdef(CONFIG_CAN_MCAN can_mcan.c)
|
||||
zephyr_library_sources_ifdef(CONFIG_CAN_MCP2515 can_mcp2515.c)
|
||||
zephyr_library_sources_ifdef(CONFIG_CAN_MCUX_FLEXCAN can_mcux_flexcan.c)
|
||||
zephyr_library_sources_ifdef(CONFIG_CAN_STM32 can_stm32.c)
|
||||
zephyr_library_sources_ifdef(CONFIG_CAN_STM32FD can_stm32fd.c)
|
||||
zephyr_library_sources_ifdef(CONFIG_CAN_RCAR can_rcar.c)
|
||||
|
||||
zephyr_library_sources_ifdef(CONFIG_USERSPACE can_handlers.c)
|
||||
zephyr_library_sources_ifdef(CONFIG_CAN_SHELL can_shell.c)
|
||||
zephyr_library_sources_ifdef(CONFIG_CAN_NET can_net.c)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue