cmake nuttx build net if enabled

This commit is contained in:
Daniel Agar
2017-11-18 11:18:53 -05:00
committed by Lorenz Meier
parent 3c252d973d
commit c1c176d65b
3 changed files with 23 additions and 10 deletions

View File

@@ -202,6 +202,10 @@ add_nuttx_dir(c libc n "")
add_nuttx_dir(cxx libxx n "")
add_nuttx_dir(mm mm n "")
if (CONFIG_NET)
add_nuttx_dir(net net y -D__KERNEL__)
endif()
# oldconfig helper
add_custom_target(oldconfig
COMMAND make --no-print-directory --silent -C ${NUTTX_DIR} CONFIG_ARCH_BOARD=${BOARD} oldconfig