drivers: net: 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:
Daniel Leung 2021-08-04 14:49:41 -07:00 committed by Christopher Friedt
commit 28021b8484

View file

@ -1,8 +1,10 @@
# SPDX-License-Identifier: Apache-2.0
zephyr_sources_ifdef(CONFIG_NET_LOOPBACK loopback.c)
zephyr_library()
zephyr_library_sources_ifdef(CONFIG_NET_LOOPBACK loopback.c)
if(CONFIG_NET_NATIVE)
zephyr_sources_ifdef(CONFIG_SLIP slip.c)
zephyr_sources_ifdef(CONFIG_NET_PPP ppp.c)
zephyr_library_sources_ifdef(CONFIG_SLIP slip.c)
zephyr_library_sources_ifdef(CONFIG_NET_PPP ppp.c)
endif()