mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-28 16:13:34 +08:00
Change all occurrences of CONFIG_EXAMPLE_ to CONFIG_EXAMPLES_ for consistency; fleshed out a few more Kconfig files
git-svn-id: http://svn.code.sf.net/p/nuttx/code/trunk@5211 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
@@ -42,7 +42,7 @@ include $(APPDIR)/Make.defs
|
||||
TARG_ASRCS =
|
||||
|
||||
TARG_CSRCS = target.c
|
||||
ifeq ($(CONFIG_EXAMPLE_UDP_SERVER),y)
|
||||
ifeq ($(CONFIG_EXAMPLES_UDP_SERVER),y)
|
||||
TARG_CSRCS += udp-server.c
|
||||
else
|
||||
TARG_CSRCS += udp-client.c
|
||||
@@ -60,14 +60,14 @@ else
|
||||
TARG_BIN = "$(APPDIR)/libapps$(LIBEXT)"
|
||||
endif
|
||||
|
||||
HOSTCFLAGS += -DCONFIG_EXAMPLE_UDP_HOST=1
|
||||
ifeq ($(CONFIG_EXAMPLE_UDP_SERVER),y)
|
||||
HOSTCFLAGS += -DCONFIG_EXAMPLE_UDP_SERVER=1 \
|
||||
-DCONFIG_EXAMPLE_UDP_SERVERIP="$(CONFIG_EXAMPLE_UDP_SERVERIP)"
|
||||
HOSTCFLAGS += -DCONFIG_EXAMPLES_UDP_HOST=1
|
||||
ifeq ($(CONFIG_EXAMPLES_UDP_SERVER),y)
|
||||
HOSTCFLAGS += -DCONFIG_EXAMPLES_UDP_SERVER=1 \
|
||||
-DCONFIG_EXAMPLES_UDP_SERVERIP="$(CONFIG_EXAMPLES_UDP_SERVERIP)"
|
||||
endif
|
||||
|
||||
HOST_SRCS = host.c
|
||||
ifeq ($(CONFIG_EXAMPLE_UDP_SERVER),y)
|
||||
ifeq ($(CONFIG_EXAMPLES_UDP_SERVER),y)
|
||||
HOST_SRCS += udp-client.c
|
||||
else
|
||||
HOST_SRCS += udp-server.c
|
||||
|
||||
Reference in New Issue
Block a user