mirror of
https://github.com/apache/nuttx-apps.git
synced 2026-10-07 06:05:10 +00:00
apps/examples/igmp: Fill out empty Kconfig file; can now be built as an NSH builtin function. From Manuel Stühn
This commit is contained in:
parent
08565a0b07
commit
2fa8fdd94c
3 changed files with 33 additions and 3 deletions
|
|
@ -10,4 +10,21 @@ config EXAMPLES_IGMP
|
|||
Enable the IGMP example
|
||||
|
||||
if EXAMPLES_IGMP
|
||||
|
||||
config EXAMPLES_IGMP_IPADDR
|
||||
hex "Target IP address"
|
||||
default 0xc0a80a10
|
||||
|
||||
config EXAMPLES_IGMP_DRIPADDR
|
||||
hex "Default Router IP address (Gateway)"
|
||||
default 0xc0a80aFA
|
||||
|
||||
config EXAMPLES_IGMP_GRPADDR
|
||||
hex "Group address"
|
||||
default 0xE0000181
|
||||
|
||||
config EXAMPLES_IGMP_NETMASK
|
||||
hex "Network Mask"
|
||||
default 0xffffff00
|
||||
|
||||
endif
|
||||
|
|
|
|||
|
|
@ -37,6 +37,10 @@
|
|||
-include $(TOPDIR)/Make.defs
|
||||
include $(APPDIR)/Make.defs
|
||||
|
||||
APPNAME = igmp
|
||||
PRIORITY = SCHED_PRIORITY_DEFAULT
|
||||
STACKSIZE = 1024
|
||||
|
||||
# IGMP Networking Example
|
||||
|
||||
ASRCS =
|
||||
|
|
@ -77,7 +81,14 @@ $(COBJS): %$(OBJEXT): %.c
|
|||
$(call ARCHIVE, $(BIN), $(OBJS))
|
||||
@touch .built
|
||||
|
||||
ifeq ($(CONFIG_NSH_BUILTIN_APPS),y)
|
||||
$(BUILTIN_REGISTRY)$(DELIM)$(APPNAME)_main.bdat: $(DEPCONFIG) Makefile
|
||||
$(call REGISTER,$(APPNAME),$(PRIORITY),$(STACKSIZE),$(APPNAME)_main)
|
||||
|
||||
context: $(BUILTIN_REGISTRY)$(DELIM)$(APPNAME)_main.bdat
|
||||
else
|
||||
context:
|
||||
endif
|
||||
|
||||
.depend: Makefile $(SRCS)
|
||||
@$(MKDEP) $(ROOTDEPPATH) "$(CC)" -- $(CFLAGS) -- $(SRCS) >Make.dep
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue