xref: /OK3568_Linux_fs/buildroot/package/ima-evm-utils/ima-evm-utils.mk (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1################################################################################
2#
3# ima-evm-utils
4#
5################################################################################
6
7IMA_EVM_UTILS_VERSION = 1.3.2
8IMA_EVM_UTILS_SITE = http://downloads.sourceforge.net/project/linux-ima/ima-evm-utils
9IMA_EVM_UTILS_LICENSE = GPL-2.0
10IMA_EVM_UTILS_LICENSE_FILES = COPYING
11IMA_EVM_UTILS_DEPENDENCIES = host-pkgconf keyutils openssl tpm2-tss
12
13# Tarball doesn't contain configure
14IMA_EVM_UTILS_AUTORECONF = YES
15
16# Build and install in the src subdirectory. This avoids building the
17# documentation, which requires asciidoc and xsltproc. Note that configure still
18# needs to be run from the top dir, so _SUBDIR can't be used.
19
20define IMA_EVM_UTILS_BUILD_CMDS
21	$(TARGET_MAKE_ENV) $(MAKE) -C $(@D)/src all
22endef
23
24define IMA_EVM_UTILS_INSTALL_STAGING_CMDS
25	$(TARGET_MAKE_ENV) $(MAKE) DESTDIR="$(STAGING_DIR)" -C $(@D)/src install
26endef
27
28define IMA_EVM_UTILS_INSTALL_TARGET_CMDS
29	$(TARGET_MAKE_ENV) $(MAKE) DESTDIR="$(TARGET_DIR)" -C $(@D)/src install
30endef
31
32$(eval $(autotools-package))
33