package/php: add FFI extension support

Signed-off-by: Tom Marcuzzi <tom.marcuzzi@orolia.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
This commit is contained in:
Tom Marcuzzi 2020-07-28 18:31:25 +02:00 committed by Thomas Petazzoni
parent 61ac7fcc6c
commit e16f05c0f0
2 changed files with 15 additions and 0 deletions

View File

@ -427,4 +427,14 @@ config BR2_PACKAGE_PHP_EXT_XSL
help
XSL transformation support
config BR2_PACKAGE_PHP_EXT_FFI
bool "FFI"
depends on BR2_TOOLCHAIN_HAS_THREADS
select BR2_PACKAGE_LIBFFI
help
Foreign Function Interface support
comment "PHP FFI extension needs a toolchain w/ threads"
depends on !BR2_TOOLCHAIN_HAS_THREADS
endmenu

View File

@ -333,6 +333,11 @@ PHP_CONF_OPTS += \
PHP_DEPENDENCIES += jpeg libpng freetype zlib
endif
ifeq ($(BR2_PACKAGE_PHP_EXT_FFI),y)
PHP_CONF_OPTS += --with-ffi
PHP_DEPENDENCIES += libffi
endif
ifeq ($(BR2_PACKAGE_PHP_SAPI_FPM),y)
define PHP_INSTALL_INIT_SYSV
$(INSTALL) -D -m 0755 $(@D)/sapi/fpm/init.d.php-fpm \