Files
linux-kernel-module-cheat/kernel_module/external.mk
Ciro Santilli 991397dede Remove redundant kernel module build commands.
They were rebuilding every time.

Fix run find for no patches
2017-06-05 01:16:38 +01:00

21 lines
558 B
Makefile

################################################################################
#
# kernel_module
#
################################################################################
KERNEL_MODULE_VERSION = 1.0
KERNEL_MODULE_SITE = $(BR2_EXTERNAL_KERNEL_MODULE_PATH)
KERNEL_MODULE_SITE_METHOD = local
define KERNEL_MODULE_BUILD_CMDS
$(MAKE) -C '$(@D)/test' CC="$(TARGET_CC)" LD="$(TARGET_LD)"
endef
define KERNEL_MODULE_INSTALL_TARGET_CMDS
$(INSTALL) -D -m 0755 $(@D)/test/*.out '$(TARGET_DIR)'
endef
$(eval $(kernel-module))
$(eval $(generic-package))