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