add receipe for uhttpd-3p server.
This commit is contained in:
20
bsp/buildroot_external/package/uhttpd-3p/Config.in
Normal file
20
bsp/buildroot_external/package/uhttpd-3p/Config.in
Normal file
@@ -0,0 +1,20 @@
|
||||
menuconfig BR2_PACKAGE_UHTTPD_3P
|
||||
bool "uhttpd (override)"
|
||||
default n
|
||||
help
|
||||
uHTTPd is a tiny single threaded HTTP server with TLS, CGI and Lua
|
||||
support. It is intended as a drop-in replacement for the Busybox
|
||||
HTTP daemon.
|
||||
|
||||
if BR2_PACKAGE_UHTTPD_3P
|
||||
|
||||
config BR2_PACKAGE_UHTTPD_UBUS_SUPPORT
|
||||
depends on BR2_PACKAGE_UHTTPD_3P
|
||||
select BR2_PACKAGE_JSON_C
|
||||
select BR2_PACKAGE_LIBUBUS_CPP
|
||||
bool "UBus JSON_RPC plugin"
|
||||
default n
|
||||
help
|
||||
Enables remote UBus calls over HTTP
|
||||
|
||||
endif
|
||||
25
bsp/buildroot_external/package/uhttpd-3p/uhttpd-3p.mk
Normal file
25
bsp/buildroot_external/package/uhttpd-3p/uhttpd-3p.mk
Normal file
@@ -0,0 +1,25 @@
|
||||
################################################################################
|
||||
#
|
||||
# UHTTPD_3P
|
||||
#
|
||||
################################################################################
|
||||
|
||||
UHTTPD_3P_VERSION:= 2016.10.25
|
||||
|
||||
UHTTPD_3P_SITE = $(TOPDIR)/../../src/3P/uhttpd/builders/cmake
|
||||
UHTTPD_3P_SITE_METHOD = local
|
||||
UHTTPD_3P_INSTALL_STAGING = YES
|
||||
|
||||
ifeq ($(BR2_PACKAGE_UHTTPD_REST_API_PLUGIN),y)
|
||||
UHTTPD_3P_CONF_OPTS += -DREST_API_PLUGING=ON
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_UHTTPD_UBUS_SUPPORT),y)
|
||||
UHTTPD_3P_CONF_OPTS += -DUBUS_SUPPORT=ON
|
||||
endif
|
||||
# blobmsg_json crypt json_script
|
||||
UHTTPD_3P_DEPENDENCIES = libubox json-c
|
||||
|
||||
UHTTPD_3P_CONF_OPTS += -DworkspaceRoot=$(TOPDIR)/../.. -DMODULE_PATH=$(TOPDIR)/../../bsp/cmake-modules -DCMAKE_BUILD_TYPE=$(BUILD_TYPE)
|
||||
|
||||
$(eval $(cmake-package))
|
||||
Reference in New Issue
Block a user