mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-26 11:41:35 +01:00
sample-package: create
This commit is contained in:
21
sample_package/external.mk
Normal file
21
sample_package/external.mk
Normal file
@@ -0,0 +1,21 @@
|
||||
################################################################################
|
||||
#
|
||||
# sample_package
|
||||
#
|
||||
################################################################################
|
||||
|
||||
SAMPLE_PACKAGE_VERSION = 1.0
|
||||
SAMPLE_PACKAGE_SITE = $(BR2_EXTERNAL_SAMPLE_PACKAGE_PATH)
|
||||
SAMPLE_PACKAGE_SITE_METHOD = local
|
||||
|
||||
define SAMPLE_PACKAGE_BUILD_CMDS
|
||||
# D contains the source code of this package.
|
||||
$(MAKE) -C '$(@D)' CC="$(TARGET_CC)" LD="$(TARGET_LD)"
|
||||
endef
|
||||
|
||||
define SAMPLE_PACKAGE_INSTALL_TARGET_CMDS
|
||||
# Anything put inside TARGET_DIR will end up on the guest relative to the root directory.
|
||||
$(INSTALL) -D -m 0755 $(@D)/*.out '$(TARGET_DIR)'
|
||||
endef
|
||||
|
||||
$(eval $(generic-package))
|
||||
Reference in New Issue
Block a user