This commit is contained in:
Ciro Santilli
2017-05-09 19:59:56 +01:00
parent 8eb878c24e
commit 338756a029
9 changed files with 67 additions and 3 deletions

20
external.mk Normal file
View File

@@ -0,0 +1,20 @@
################################################################################
#
# kernel_module
#
################################################################################
KERNEL_MODULE_VERSION = 1.0
KERNEL_MODULE_SITE = ..
KERNEL_MODULE_SITE_METHOD = local
define KERNEL_MODULE_BUILD_CMDS
$(MAKE) -C '$(@D)' LINUX_DIR='$(LINUX_DIR)' PWD='$(@D)' CC='$(TARGET_CC)' LD='$(TARGET_LD)'
endef
define KERNEL_MODULE_INSTALL_TARGET_CMDS
$(INSTALL) -D -m 0755 '$(@D)/kernel_module.ko' '$(TARGET_DIR)/kernel_module.ko'
endef
$(eval $(kernel-module))
$(eval $(generic-package))