aboutsummaryrefslogtreecommitdiff
path: root/package/ktap
diff options
context:
space:
mode:
authorGravatar Yann E. MORIN <yann.morin.1998@free.fr>2015-07-12 02:21:35 +0200
committerGravatar Thomas Petazzoni <thomas.petazzoni@free-electrons.com>2015-07-12 11:56:18 +0200
commit84d97e6200f3f0b97485825728e9bdcc644f5830 (patch)
treeb21226bc95d0c2920f939e59fd01537fd0c63749 /package/ktap
parent95f52a7b7eac7696a6f627ba0cd68de11b12cfce (diff)
downloadbuildroot-84d97e6200f3f0b97485825728e9bdcc644f5830.tar.gz
buildroot-84d97e6200f3f0b97485825728e9bdcc644f5830.tar.bz2
package/ktap: use kernel-module helper
Passing the KERNEL_SRC variable is no longer needed, since it was only used to run commands like: $(MAKE) -C $(KERNEL_SRC) M=$(PWD) modules which is basically what the new kernel-module infra is now doing. Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Reviewed-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'package/ktap')
-rw-r--r--package/ktap/ktap.mk7
1 files changed, 3 insertions, 4 deletions
diff --git a/package/ktap/ktap.mk b/package/ktap/ktap.mk
index 4a0e51cf96..966b51c9a1 100644
--- a/package/ktap/ktap.mk
+++ b/package/ktap/ktap.mk
@@ -9,8 +9,6 @@ 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
@@ -19,12 +17,13 @@ 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
+KTAP_MODULE_MAKE_OPTS = KVERSION=$(LINUX_VERSION_PROBED)
+
+$(eval $(kernel-module))
$(eval $(generic-package))