kumquat-buildroot/package/keyutils/keyutils.mk
Fabrice Fontaine 876be2b0f3 package/keyutils: add KEYUTILS_CPE_ID_VENDOR
cpe:2.3🅰️keyutils_project:keyutils is a valid CPE identifier for this
package:

  https://nvd.nist.gov/products/cpe/search/results?namingFormat=2.3&keyword=cpe%3A2.3%3Aa%3Akeyutils_project%3Akeyutils

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
2022-07-06 23:12:29 +02:00

44 lines
1.2 KiB
Makefile

################################################################################
#
# keyutils
#
################################################################################
KEYUTILS_VERSION = 1.6.3
KEYUTILS_SITE = https://git.kernel.org/pub/scm/linux/kernel/git/dhowells/keyutils.git/snapshot
KEYUTILS_LICENSE = GPL-2.0+, LGPL-2.1+
KEYUTILS_LICENSE_FILES = LICENCE.GPL LICENCE.LGPL
KEYUTILS_CPE_ID_VENDOR = keyutils_project
KEYUTILS_INSTALL_STAGING = YES
KEYUTILS_MAKE_PARAMS = \
INSTALL=$(INSTALL) \
LIBDIR=/usr/lib \
USRLIBDIR=/usr/lib \
CFLAGS="$(TARGET_CFLAGS)" \
CPPFLAGS="$(TARGET_CPPFLAGS) -I." \
LNS="$(HOSTLN) -sf"
ifeq ($(BR2_SHARED_LIBS),y)
KEYUTILS_MAKE_PARAMS += NO_ARLIB=1
endif
# Touch cxx.stamp to avoid adding a C++ dependency
define KEYUTILS_CONFIGURE_CMDS
touch $(@D)/cxx.stamp
endef
define KEYUTILS_BUILD_CMDS
$(TARGET_CONFIGURE_OPTS) $(MAKE) $(KEYUTILS_MAKE_PARAMS) -C $(@D)
endef
define KEYUTILS_INSTALL_STAGING_CMDS
$(TARGET_CONFIGURE_OPTS) $(MAKE) $(KEYUTILS_MAKE_PARAMS) -C $(@D) DESTDIR=$(STAGING_DIR) install
endef
define KEYUTILS_INSTALL_TARGET_CMDS
$(TARGET_CONFIGURE_OPTS) $(MAKE) $(KEYUTILS_MAKE_PARAMS) -C $(@D) DESTDIR=$(TARGET_DIR) install
endef
$(eval $(generic-package))