buildrootschalter/package/ktap/ktap.mk
Maxime Hadjinlian 30f43bed60 ktap: bump version
We switch from a tag to a commit ID, because the last release is from
December 2013, even though many new changes have been made to ktap
since then (~80 commits). Ktap has had 4 releases in its history, all
made during the first 7 months of its existence, but then no more
releases have been made.

[Thomas: reword commit log, add patch to fix build with uClibc, remove
KTAP_SOURCE since we're fetching from github.]

Signed-off-by: Maxime Hadjinlian <maxime.hadjinlian@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2014-11-01 19:06:23 +01:00

31 lines
894 B
Makefile

################################################################################
#
# ktap
#
################################################################################
KTAP_VERSION = 5b16b61deb6c8a99d71e5167706a5f5566135828
KTAP_SITE = $(call github,ktap,ktap,$(KTAP_VERSION))
KTAP_LICENSE = GPLv2
KTAP_LICENSE_FILES = LICENSE-GPL
KTAP_DEPENDENCIES = linux
ifeq ($(BR2_PACKAGE_ELFUTILS),y)
KTAP_DEPENDENCIES += elfutils
else
KTAP_FLAGS += NO_LIBELF=1
endif
define KTAP_BUILD_CMDS
$(MAKE) -C $(@D) $(TARGET_CONFIGURE_OPTS) $(KTAP_FLAGS) ktap
$(MAKE) -C $(@D) $(LINUX_MAKE_FLAGS) KERNEL_SRC=$(LINUX_DIR) KVERSION=$(LINUX_VERSION_PROBED) mod
endef
define KTAP_INSTALL_TARGET_CMDS
$(INSTALL) -D -m755 $(@D)/ktap $(TARGET_DIR)/usr/bin/ktap
$(MAKE) -C $(@D) $(LINUX_MAKE_FLAGS) KERNEL_SRC=$(LINUX_DIR) KVERSION=$(LINUX_VERSION_PROBED) modules_install
endef
$(eval $(generic-package))