Prechádzať zdrojové kódy

package/nginx: add thread pool support

Signed-off-by: Martin Bark <martin@barkynet.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Martin Bark 9 rokov pred
rodič
commit
2748bc6b65
2 zmenil súbory, kde vykonal 9 pridanie a 1 odobranie
  1. 7 0
      package/nginx/Config.in
  2. 2 1
      package/nginx/nginx.mk

+ 7 - 0
package/nginx/Config.in

@@ -18,6 +18,13 @@ config BR2_PACKAGE_NGINX_FILE_AIO
 	depends on !BR2_aarch64
 	depends on !BR2_arc
 
+config BR2_PACKAGE_NGINX_THREADS
+	bool "thread pool support"
+	depends on BR2_TOOLCHAIN_HAS_THREADS
+
+comment "thread pool support needs a toolchain w/ threads"
+	depends on !BR2_TOOLCHAIN_HAS_THREADS
+
 config BR2_PACKAGE_NGINX_HTTP
 	bool "http server"
 	default y

+ 2 - 1
package/nginx/nginx.mk

@@ -64,7 +64,8 @@ NGINX_CONF_OPTS += \
 	--http-uwsgi-temp-path=/var/tmp/nginx/uwsgi
 
 NGINX_CONF_OPTS += \
-	$(if $(BR2_PACKAGE_NGINX_FILE_AIO),--with-file-aio)
+	$(if $(BR2_PACKAGE_NGINX_FILE_AIO),--with-file-aio) \
+	$(if $(BR2_PACKAGE_NGINX_THREADS),--with-threads)
 
 ifeq ($(BR2_PACKAGE_PCRE),y)
 NGINX_DEPENDENCIES += pcre