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:
parent
0f0c17880e
commit
28021b8484
1 changed files with 5 additions and 3 deletions
|
@ -1,8 +1,10 @@
|
||||||
# SPDX-License-Identifier: Apache-2.0
|
# 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)
|
if(CONFIG_NET_NATIVE)
|
||||||
zephyr_sources_ifdef(CONFIG_SLIP slip.c)
|
zephyr_library_sources_ifdef(CONFIG_SLIP slip.c)
|
||||||
zephyr_sources_ifdef(CONFIG_NET_PPP ppp.c)
|
zephyr_library_sources_ifdef(CONFIG_NET_PPP ppp.c)
|
||||||
endif()
|
endif()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue