summaryrefslogtreecommitdiffstats
path: root/package/php
diff options
context:
space:
mode:
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>2016-10-25 12:32:46 +0200
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>2016-10-25 12:35:20 +0200
commit2d1ceeba0264c32b782d3a27ffbf532230274efd (patch)
tree054626918391570aedc10db94b53fe3ed6ad8c3d /package/php
parent63ed0574e50cea85c3cc203c7e9cc999d28ea845 (diff)
downloadbuildroot-2d1ceeba0264c32b782d3a27ffbf532230274efd.tar.gz
buildroot-2d1ceeba0264c32b782d3a27ffbf532230274efd.zip
php: fix selection of interfaces depending on BR2_USE_MMU
Commit c457213fbca5f3493544c8a4335b623620458b0c reworked the selection of PHP interfaces, moving from a choice..endchoice to a three independent sub-options. Thanks to how choices are handled by kconfig, an option suitable for noMMU platforms was automatically chosen by default. When the choice...endchoice got removed in c457213fbca5f3493544c8a4335b623620458b0c, we introduced a "select" for one of the interfaces, to make sure at least one interface is selected. Unfortunately, the selected interface does not build on noMMU platforms. In order to preserve the previous behavior (CGI interface is selected by default on MMU capable platforms), this commit makes the select logic a bit more complicated: - CGI is selected on MMU-capable platforms if neither CLI or FPM are selected - CLI is selected on MMU-less platforms, since this is anyway the only available interface. Fixes: http://autobuild.buildroot.net/results/85ea09188f1e996cb14b4b83a17736c096c569a8/ Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'package/php')
-rw-r--r--package/php/Config.in4
1 files changed, 3 insertions, 1 deletions
diff --git a/package/php/Config.in b/package/php/Config.in
index 2e9e344339..3020bccd8f 100644
--- a/package/php/Config.in
+++ b/package/php/Config.in
@@ -2,7 +2,9 @@ config BR2_PACKAGE_PHP
bool "php"
select BR2_PACKAGE_PHP_SAPI_CGI if \
!BR2_PACKAGE_PHP_SAPI_CLI && \
- !BR2_PACKAGE_PHP_SAPI_FPM
+ !BR2_PACKAGE_PHP_SAPI_FPM && \
+ BR2_USE_MMU
+ select BR2_PACKAGE_PHP_SAPI_CLI if !BR2_USE_MMU
help
PHP is a widely-used general-purpose scripting
language that is especially suited for Web development
OpenPOWER on IntegriCloud