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>
This commit is contained in:
parent
95f52a7b7e
commit
84d97e6200
@ -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))
|
||||
|
Loading…
Reference in New Issue
Block a user