libftdi: add explicit dependencies for host variant
[buildroot-gz.git] / package / ktap / ktap.mk
blob966b51c9a17c8cbbd1c9a66610cf7b6859a54431
1 ################################################################################
3 # ktap
5 ################################################################################
7 KTAP_VERSION = eb66d40310c93dc82bc8eac889744c1ed1f01f7b
8 KTAP_SITE = $(call github,ktap,ktap,$(KTAP_VERSION))
9 KTAP_LICENSE = GPLv2
10 KTAP_LICENSE_FILES = LICENSE-GPL
12 ifeq ($(BR2_PACKAGE_ELFUTILS),y)
13 KTAP_DEPENDENCIES += elfutils
14 else
15 KTAP_FLAGS += NO_LIBELF=1
16 endif
18 define KTAP_BUILD_CMDS
19 $(MAKE) -C $(@D) $(TARGET_CONFIGURE_OPTS) $(KTAP_FLAGS) ktap
20 endef
22 define KTAP_INSTALL_TARGET_CMDS
23 $(INSTALL) -D -m755 $(@D)/ktap $(TARGET_DIR)/usr/bin/ktap
24 endef
26 KTAP_MODULE_MAKE_OPTS = KVERSION=$(LINUX_VERSION_PROBED)
28 $(eval $(kernel-module))
29 $(eval $(generic-package))