package/fwts: add optional bash-completion dependency
authorFabrice Fontaine <fontaine.fabrice@gmail.com>
Sun, 13 Jan 2019 17:58:21 +0000 (18:58 +0100)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Sun, 13 Jan 2019 20:55:12 +0000 (21:55 +0100)
fwts uses the completionsdir variable from bash-completion.pc to decide
where to install things.

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
package/fwts/fwts.mk

index aa006f3b8bbafd6231993760ffab32159c84fd13..b29de2cf2592f82ce735e39cf36d3e5a051dac3f 100644 (file)
@@ -11,6 +11,7 @@ FWTS_LICENSE = GPL-2.0, LGPL-2.1, Custom
 FWTS_LICENSE_FILES = debian/copyright
 FWTS_AUTORECONF = YES
 FWTS_DEPENDENCIES = host-bison host-flex host-pkgconf json-c libglib2 libbsd \
+       $(if $(BR2_PACKAGE_BASH_COMPLETION),bash-completion) \
        $(if $(BR2_PACKAGE_DTC),dtc)
 
 ifdef BR2_PACKAGE_FWTS_EFI_RUNTIME_MODULE