Skip to content

Commit

Permalink
package/php: add option for libargon2 support
Browse files Browse the repository at this point in the history
Signed-off-by: Pascal de Bruijn <[email protected]>
Signed-off-by: Thomas Petazzoni <[email protected]>
  • Loading branch information
unilogicbv authored and tpetazzoni committed Nov 26, 2019
1 parent 4064107 commit 8d229c1
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
6 changes: 6 additions & 0 deletions package/php/Config.ext
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,12 @@ config BR2_PACKAGE_PHP_EXT_HASH
help
HASH message digest framework

config BR2_PACKAGE_PHP_EXT_LIBARGON2
bool "libargon2"
select BR2_PACKAGE_LIBARGON2
help
libargon2 support

config BR2_PACKAGE_PHP_EXT_LIBSODIUM
bool "libsodium"
select BR2_PACKAGE_LIBSODIUM
Expand Down
5 changes: 5 additions & 0 deletions package/php/php.mk
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,11 @@ PHP_CONF_OPTS += \
$(if $(BR2_PACKAGE_PHP_EXT_MBSTRING),--enable-mbstring) \
$(if $(BR2_PACKAGE_PHP_EXT_PHAR),--enable-phar)

ifeq ($(BR2_PACKAGE_PHP_EXT_LIBARGON2),y)
PHP_CONF_OPTS += --with-password-argon2=$(STAGING_DIR)/usr
PHP_DEPENDENCIES += libargon2
endif

ifeq ($(BR2_PACKAGE_PHP_EXT_LIBSODIUM),y)
PHP_CONF_OPTS += --with-sodium=$(STAGING_DIR)/usr
PHP_DEPENDENCIES += libsodium
Expand Down

0 comments on commit 8d229c1

Please sign in to comment.