zephyr/subsys/net/CMakeLists.txt
Jukka Rissanen 8ae6bad21d net: l2: Move the layer 2 code into subsys/net/
The subsys/net/ directory is more logical place for L2 code instead
of ip/ directory. No functionality changes by this commit.

Signed-off-by: Jukka Rissanen <jukka.rissanen@linux.intel.com>
2018-06-27 17:02:59 +03:00

16 lines
337 B
CMake

zephyr_library()
zephyr_library_sources_ifdef(CONFIG_NET_BUF buf.c)
zephyr_library_sources_ifdef(CONFIG_NET_HOSTNAME_ENABLE hostname.c)
if(CONFIG_NETWORKING)
add_subdirectory(l2)
if(CONFIG_NET_RAW_MODE)
zephyr_library_sources(ip/net_pkt.c)
else()
add_subdirectory(ip)
endif()
endif()
add_subdirectory(lib)