THTTPD: Depends on !DISABLE_POLL

webserver:  Allow to build webserver as an application

Signed-off-by: Anton D. Kachalov mouse@yandex-team.ru
This commit is contained in:
Anton D. Kachalov 2015-08-10 14:44:11 -06:00 committed by Gregory Nutt
parent 7c13bac893
commit b43c5a6b1e
2 changed files with 14 additions and 1 deletions

View File

@ -75,6 +75,12 @@ PROGNAME = $(CONFIG_XYZ_PROGNAME)
ROOTDEPPATH = --dep-path .
# Webserver built-in application info
APPNAME = webserver
PRIORITY = SCHED_PRIORITY_DEFAULT
STACKSIZE = 2048
# Common build
VPATH =
@ -108,7 +114,14 @@ install:
endif
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

View File

@ -6,7 +6,7 @@
config NETUTILS_THTTPD
bool "THTTPD webserver"
default n
depends on NXFLAT || FS_BINFS
depends on (NXFLAT || FS_BINFS) && !DISABLE_POLL
---help---
Enable support for the THTTPD webservert.