All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH] package/php: add FFI support
@ 2020-04-28  8:56 Tom Marcuzzi
  2020-04-29 21:05 ` Thomas Petazzoni
  0 siblings, 1 reply; 3+ messages in thread
From: Tom Marcuzzi @ 2020-04-28  8:56 UTC (permalink / raw)
  To: buildroot

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

diff --git a/package/php/Config.ext b/package/php/Config.ext
index 66ee935cf0..fc28a523e1 100644
--- a/package/php/Config.ext
+++ b/package/php/Config.ext
@@ -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
diff --git a/package/php/php.mk b/package/php/php.mk
index 4d2f1b8f63..fd78b36b51 100644
--- a/package/php/php.mk
+++ b/package/php/php.mk
@@ -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

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [Buildroot] [PATCH] package/php: add FFI support
  2020-04-28  8:56 [Buildroot] [PATCH] package/php: add FFI support Tom Marcuzzi
@ 2020-04-29 21:05 ` Thomas Petazzoni
  2020-04-30  8:07   ` Tom Marcuzzi
  0 siblings, 1 reply; 3+ messages in thread
From: Thomas Petazzoni @ 2020-04-29 21:05 UTC (permalink / raw)
  To: buildroot

Hello Tom,

On Tue, 28 Apr 2020 10:56:01 +0200
Tom Marcuzzi <tom.marcuzzi@orolia.com> 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
-- 
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Buildroot] [PATCH] package/php: add FFI support
  2020-04-29 21:05 ` Thomas Petazzoni
@ 2020-04-30  8:07   ` Tom Marcuzzi
  0 siblings, 0 replies; 3+ messages in thread
From: Tom Marcuzzi @ 2020-04-30  8:07 UTC (permalink / raw)
  To: buildroot

On 4/29/20 11:05 PM, Thomas Petazzoni wrote:
> Hello Tom,
> 
> On Tue, 28 Apr 2020 10:56:01 +0200
> Tom Marcuzzi <tom.marcuzzi@orolia.com> 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 ?

Signed-off-by: Tom Marcuzzi <tom.marcuzzi@orolia.com>
---
  package/php/Config.ext | 6 ++++++
  package/php/php.mk     | 5 +++++
  2 files changed, 11 insertions(+)

diff --git a/package/php/Config.ext b/package/php/Config.ext
index 66ee935cf0..fc28a523e1 100644
--- a/package/php/Config.ext
+++ b/package/php/Config.ext
@@ -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
diff --git a/package/php/php.mk b/package/php/php.mk
index 4d2f1b8f63..fd78b36b51 100644
--- a/package/php/php.mk
+++ b/package/php/php.mk
@@ -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

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-04-30  8:07 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-28  8:56 [Buildroot] [PATCH] package/php: add FFI support Tom Marcuzzi
2020-04-29 21:05 ` Thomas Petazzoni
2020-04-30  8:07   ` Tom Marcuzzi

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.