Add basic build structure for Unix domain sockets
This commit is contained in:
parent
d7189558a6
commit
81a3daca6d
@ -202,6 +202,7 @@ endmenu # Internet Protocol Selection
|
||||
|
||||
source "net/socket/Kconfig"
|
||||
source "net/pkt/Kconfig"
|
||||
source "net/local/Kconfig"
|
||||
source "net/tcp/Kconfig"
|
||||
source "net/udp/Kconfig"
|
||||
source "net/icmp/Kconfig"
|
||||
|
@ -63,9 +63,10 @@ include icmp/Make.defs
|
||||
include icmpv6/Make.defs
|
||||
include neighbor/Make.defs
|
||||
include igmp/Make.defs
|
||||
include pkt/Make.defs
|
||||
include local/Make.defs
|
||||
include tcp/Make.defs
|
||||
include udp/Make.defs
|
||||
include pkt/Make.defs
|
||||
include devif/Make.defs
|
||||
include route/Make.defs
|
||||
include utils/Make.defs
|
||||
|
@ -13,6 +13,7 @@ Directory Structure
|
||||
+- icmp - Internet Control Message Protocol (IPv4)
|
||||
+- icmpv6 - Internet Control Message Protocol (IPv6)
|
||||
+- iob - I/O buffering logic
|
||||
+- local - Unix domain (local) sockets
|
||||
+- neighbor - Neighbor Discovery Protocol (IPv6)
|
||||
+- netdev - Socket network device interface
|
||||
+- pkt - "Raw" packet socket support
|
||||
|
19
net/local/Kconfig
Normal file
19
net/local/Kconfig
Normal file
@ -0,0 +1,19 @@
|
||||
#
|
||||
# For a description of the syntax of this configuration file,
|
||||
# see misc/tools/kconfig-language.txt.
|
||||
#
|
||||
|
||||
menu "Unix Domain Socket Support"
|
||||
depends on NET && EXPERIMENTAL
|
||||
|
||||
config NET_LOCAL
|
||||
bool "Unix domain (local) sockets"
|
||||
default n
|
||||
---help---
|
||||
Enable or disable Unix domain (aka Local) sockets.
|
||||
|
||||
if NET_LOCAL
|
||||
|
||||
endif # NET_LOCAL
|
||||
|
||||
endmenu # Unix Domain Sockets
|
47
net/local/Make.defs
Normal file
47
net/local/Make.defs
Normal file
@ -0,0 +1,47 @@
|
||||
############################################################################
|
||||
# net/local/Make.defs
|
||||
#
|
||||
# Copyright (C) 2015 Gregory Nutt. All rights reserved.
|
||||
# Author: Gregory Nutt <gnutt@nuttx.org>
|
||||
#
|
||||
# Redistribution and use in source and binary forms, with or without
|
||||
# modification, are permitted provided that the following conditions
|
||||
# are met:
|
||||
#
|
||||
# 1. Redistributions of source code must retain the above copyright
|
||||
# notice, this list of conditions and the following disclaimer.
|
||||
# 2. Redistributions in binary form must reproduce the above copyright
|
||||
# notice, this list of conditions and the following disclaimer in
|
||||
# the documentation and/or other materials provided with the
|
||||
# distribution.
|
||||
# 3. Neither the name NuttX nor the names of its contributors may be
|
||||
# used to endorse or promote products derived from this software
|
||||
# without specific prior written permission.
|
||||
#
|
||||
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
|
||||
# FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
|
||||
# COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
|
||||
# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
|
||||
# BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
|
||||
# OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
|
||||
# AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
||||
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
|
||||
# ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
# POSSIBILITY OF SUCH DAMAGE.
|
||||
#
|
||||
############################################################################
|
||||
|
||||
# UDP source files
|
||||
|
||||
ifeq ($(CONFIG_NET_LOCAL),y)
|
||||
|
||||
# NET_CSRCS +=
|
||||
|
||||
# Include UDP build support
|
||||
|
||||
DEPPATH += --dep-path local
|
||||
VPATH += :local
|
||||
|
||||
endif # CONFIG_NET_LOCAL
|
Loading…
Reference in New Issue
Block a user