Skip to contentSkip to conversation

package/php: add FFI support

PATCH New Tom Marcuzzi 2 participants 3 messages Apr 28, 2020 – Apr 30, 2020

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/php: add FFI support

---
 package/php/Config.ext | 6 ++++++
 package/php/php.mk     | 5 +++++
 2 files changed, 11 insertions(+)
package/php/Config.ext +6 -0
index 66ee935cf0..fc28a523e1 100644
@@ -425,4 +425,10 @@ config BR2_PACKAGE_PHP_EXT_XSL
 	help
 	  XSL transformation support
 
+config BR2_PACKAGE_PHP_EXT_FFI
+	bool "FFI"
+	select BR2_PACKAGE_LIBFFI
+	help
+	  Foreign Function Interface support
+
 endmenu
package/php/php.mk +5 -0
index 4d2f1b8f63..fd78b36b51 100644
@@ -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 \
Signature · 1 line
2.17.1
#1 lore raw

PATCH 1/1 package/php: add FFI support

Hello Tom,

Quoted 4 lines · On Tue, 28 Apr 2020 10:56:01 +0200 Tom Marcuzzi <[email protected]> wrote:
---
 package/php/Config.ext | 6 ++++++
 package/php/php.mk     | 5 +++++
 2 files changed, 11 insertions(+)

Thanks, this looks good. Could you just resend with your Signed-off-by added to the commit log ?

Best regards,

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
#2 lore raw

PATCH 1/1 package/php: add FFI support

Quoted 5 lines · Thomas Petazzoni

Hello Tom,

On Tue, 28 Apr 2020 10:56:01 +0200
Tom Marcuzzi <[email protected]> wrote:

Quoted 7 lines
Quoted 4 lines
---
  package/php/Config.ext | 6 ++++++
  package/php/php.mk     | 5 +++++
  2 files changed, 11 insertions(+)

Thanks, this looks good. Could you just resend with your Signed-off-by added to the commit log ?

---
  package/php/Config.ext | 6 ++++++
  package/php/php.mk     | 5 +++++
  2 files changed, 11 insertions(+)
package/php/Config.ext +6 -0
index 66ee935cf0..fc28a523e1 100644
@@ -425,4 +425,10 @@ config BR2_PACKAGE_PHP_EXT_XSL
  	help
  	  XSL transformation support
 
+config BR2_PACKAGE_PHP_EXT_FFI
+	bool "FFI"
+	select BR2_PACKAGE_LIBFFI
+	help
+	  Foreign Function Interface support
+
  endmenu
package/php/php.mk +5 -0
index 4d2f1b8f63..fd78b36b51 100644
@@ -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 \

--
2.17.1