Move the common tunnel setup code to samples/net/common directory so that other network samples can utilize that too. Signed-off-by: Jukka Rissanen <jukka.rissanen@nordicsemi.no>
13 lines
437 B
CMake
13 lines
437 B
CMake
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
# Common routines used in net samples
|
|
|
|
target_include_directories(app PRIVATE ${ZEPHYR_BASE}/samples/net/common/)
|
|
target_sources(app PRIVATE $ENV{ZEPHYR_BASE}/samples/net/common/net_sample_common.c)
|
|
|
|
target_sources_ifdef(CONFIG_NET_VLAN app PRIVATE
|
|
$ENV{ZEPHYR_BASE}/samples/net/common/vlan.c)
|
|
|
|
target_sources_ifdef(CONFIG_NET_L2_IPIP app PRIVATE
|
|
$ENV{ZEPHYR_BASE}/samples/net/common/tunnel.c)
|