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>
This commit is contained in:
parent
099fe7b98f
commit
8ae6bad21d
|
@ -1,4 +1,4 @@
|
|||
zephyr_library_include_directories(${ZEPHYR_BASE}/subsys/net/ip/l2)
|
||||
zephyr_library_include_directories(${ZEPHYR_BASE}/subsys/net/l2)
|
||||
|
||||
zephyr_sources_ifdef(CONFIG_ETH_SAM_GMAC
|
||||
eth_sam_gmac.c
|
||||
|
|
|
@ -3,6 +3,8 @@ 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()
|
||||
|
|
|
@ -93,6 +93,8 @@ if NETWORKING
|
|||
|
||||
source "subsys/net/Kconfig.hostname"
|
||||
|
||||
source "subsys/net/l2/Kconfig"
|
||||
|
||||
source "subsys/net/ip/Kconfig"
|
||||
|
||||
source "subsys/net/lib/Kconfig"
|
||||
|
|
|
@ -28,8 +28,6 @@ zephyr_library_sources_ifdef(CONFIG_NET_TCP connection.c tcp.c)
|
|||
zephyr_library_sources_ifdef(CONFIG_NET_TRICKLE trickle.c)
|
||||
zephyr_library_sources_ifdef(CONFIG_NET_UDP connection.c udp.c)
|
||||
|
||||
add_subdirectory(l2)
|
||||
|
||||
if(CONFIG_NET_SHELL)
|
||||
zephyr_link_interface_ifdef(CONFIG_MBEDTLS mbedTLS)
|
||||
zephyr_library_link_libraries_ifdef(CONFIG_MBEDTLS mbedTLS)
|
||||
|
|
|
@ -439,8 +439,6 @@ config NET_PKT_TIMESTAMP_STACK_SIZE
|
|||
|
||||
source "subsys/net/ip/Kconfig.stack"
|
||||
|
||||
source "subsys/net/ip/l2/Kconfig"
|
||||
|
||||
source "subsys/net/ip/Kconfig.mgmt"
|
||||
|
||||
source "subsys/net/ip/Kconfig.rpl"
|
||||
|
|
|
@ -4,7 +4,7 @@ if(CONFIG_NET_L2_BT OR
|
|||
CONFIG_NET_L2_WIFI_MGMT)
|
||||
|
||||
zephyr_library()
|
||||
zephyr_library_include_directories(. ..)
|
||||
zephyr_library_include_directories(. ${ZEPHYR_BASE}/subsys/net/ip)
|
||||
zephyr_library_compile_definitions_ifdef(
|
||||
CONFIG_NEWLIB_LIBC __LINUX_ERRNO_EXTENSIONS__
|
||||
)
|
|
@ -91,11 +91,11 @@ config NET_L2_BT_SHELL
|
|||
This can be used for testing Bluetooth management commands through the
|
||||
console via a shell module named "net_bt".
|
||||
|
||||
source "subsys/net/ip/l2/ethernet/Kconfig"
|
||||
source "subsys/net/l2/ethernet/Kconfig"
|
||||
|
||||
source "subsys/net/ip/l2/ieee802154/Kconfig"
|
||||
source "subsys/net/l2/ieee802154/Kconfig"
|
||||
|
||||
source "subsys/net/ip/l2/openthread/Kconfig"
|
||||
source "subsys/net/l2/openthread/Kconfig"
|
||||
|
||||
config NET_L2_WIFI_MGMT
|
||||
bool "Enable WiFi Management support"
|
|
@ -1,5 +1,5 @@
|
|||
zephyr_library()
|
||||
zephyr_library_include_directories(. ../..)
|
||||
zephyr_library_include_directories(. ${ZEPHYR_BASE}/subsys/net/ip)
|
||||
zephyr_library_compile_definitions_ifdef(
|
||||
CONFIG_NEWLIB_LIBC __LINUX_ERRNO_EXTENSIONS__
|
||||
)
|
|
@ -1,5 +1,5 @@
|
|||
zephyr_library()
|
||||
zephyr_library_include_directories(. ../..)
|
||||
zephyr_library_include_directories(. ${ZEPHYR_BASE}/subsys/net/ip)
|
||||
zephyr_library_compile_definitions_ifdef(
|
||||
CONFIG_NEWLIB_LIBC __LINUX_ERRNO_EXTENSIONS__
|
||||
)
|
|
@ -150,6 +150,6 @@ config NET_L2_IEEE802154_SECURITY_CRYPTO_DEV_NAME
|
|||
IEEE 802.15.4 soft MAC will use to run authentication, encryption and
|
||||
decryption operations on incoming/outgoing frames.
|
||||
|
||||
source "subsys/net/ip/l2/ieee802154/Kconfig.radio"
|
||||
source "subsys/net/l2/ieee802154/Kconfig.radio"
|
||||
|
||||
endif
|
|
@ -1,5 +1,6 @@
|
|||
zephyr_library_named(subsys__net__ip__l2__openthread)
|
||||
zephyr_library_include_directories(. ../.. ../../../lib/openthread/platform)
|
||||
zephyr_library_include_directories(. ../../lib/openthread/platform
|
||||
${ZEPHYR_BASE}/subsys/net/ip)
|
||||
zephyr_library_compile_definitions_ifdef(
|
||||
CONFIG_NEWLIB_LIBC __LINUX_ERRNO_EXTENSIONS__
|
||||
)
|
Loading…
Reference in a new issue