aboutsummaryrefslogtreecommitdiff
path: root/package/powervr
diff options
context:
space:
mode:
authorGravatar eric.le.bihan.dev@free.fr <eric.le.bihan.dev@free.fr>2014-02-25 16:45:36 +0100
committerGravatar Peter Korsgaard <peter@korsgaard.com>2014-02-25 21:29:34 +0100
commitf72fe5736c806e6079830f3d953dc9875827b86b (patch)
tree00014c55581c4ac22461f37c3d4cbbb414b295b4 /package/powervr
parent4c10eedc103ba9648f73439f1ab5d801da9d2ed7 (diff)
downloadbuildroot-f72fe5736c806e6079830f3d953dc9875827b86b.tar.gz
buildroot-f72fe5736c806e6079830f3d953dc9875827b86b.tar.bz2
packages: improve dependency check in virtual packages.
The current version of dependency check for virtual package <foo> defines FOO_CONFIGURE_CMDS to print an error message if the dependencies are not met. This patch updates all the virtual packages to use the GNU Make control function $(error text...) instead. This makes the error happen at the beginning of the build, with a clearer message. Signed-off-by: Eric Le Bihan <eric.le.bihan.dev@free.fr> Reviewed-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Reviewed-by: Samuel Martin <s.martin49@gmail.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Diffstat (limited to 'package/powervr')
-rw-r--r--package/powervr/powervr.mk7
1 files changed, 3 insertions, 4 deletions
diff --git a/package/powervr/powervr.mk b/package/powervr/powervr.mk
index 1f43505611..b36eb16b0a 100644
--- a/package/powervr/powervr.mk
+++ b/package/powervr/powervr.mk
@@ -7,11 +7,10 @@
POWERVR_SOURCE =
POWERVR_DEPENDENCIES = $(call qstrip,$(BR2_PACKAGE_PROVIDES_POWERVR))
+ifeq ($(BR2_PACKAGE_HAS_POWERVR),y)
ifeq ($(POWERVR_DEPENDENCIES),)
-define POWERVR_CONFIGURE_CMDS
- echo "No PowerVR implementation selected. Configuration error."
- exit 1
-endef
+$(error No PowerVR implementation selected. Configuration error.)
+endif
endif
$(eval $(generic-package))