package/tbtools: install bash completion files and scripts

Add hooks to install the bash completion files and scripts provided by
the package.

Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
This commit is contained in:
Mika Westerberg 2024-06-18 16:04:02 +03:00 committed by Thomas Petazzoni
parent f525186541
commit 1ceb7b9711

View File

@ -10,4 +10,16 @@ TBTOOLS_LICENSE = MIT
TBTOOLS_LICENSE_FILES = LICENSE
TBTOOLS_DEPENDENCIES = udev
define TBTOOLS_INSTALL_SCRIPTS
$(MAKE) -C $(@D) PREFIX=$(TARGET_DIR)/usr install-scripts
endef
TBTOOLS_POST_INSTALL_TARGET_HOOKS += TBTOOLS_INSTALL_SCRIPTS
ifeq ($(BR2_PACKAGE_BASH_COMPLETION),y)
define TBTOOLS_INSTALL_COMPLETION
$(MAKE) -C $(@D) PREFIX=$(TARGET_DIR)/usr install-completion
endef
TBTOOLS_POST_INSTALL_TARGET_HOOKS += TBTOOLS_INSTALL_COMPLETION
endif
$(eval $(cargo-package))