Commit 28021b84 authored by Daniel Leung's avatar Daniel Leung Committed by Christopher Friedt
Browse files

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: default avatarDaniel Leung <daniel.leung@intel.com>
parent 0f0c1788
Loading
Loading
Loading
Loading
+5 −3
Original line number Diff line number Diff line
# 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()