2013-06-05 23:53:30 +00:00
|
|
|
################################################################################
|
2013-04-27 10:09:45 +00:00
|
|
|
#
|
|
|
|
# cryptodev-linux
|
|
|
|
#
|
2013-06-05 23:53:30 +00:00
|
|
|
################################################################################
|
2013-04-27 10:09:45 +00:00
|
|
|
|
2023-07-06 20:46:11 +00:00
|
|
|
CRYPTODEV_LINUX_VERSION = 1.13
|
2021-10-26 19:43:29 +00:00
|
|
|
CRYPTODEV_LINUX_SITE = $(call github,cryptodev-linux,cryptodev-linux,cryptodev-linux-$(CRYPTODEV_LINUX_VERSION))
|
2013-04-27 10:09:45 +00:00
|
|
|
CRYPTODEV_LINUX_INSTALL_STAGING = YES
|
2017-03-30 13:43:32 +00:00
|
|
|
CRYPTODEV_LINUX_LICENSE = GPL-2.0+
|
2014-07-03 20:00:39 +00:00
|
|
|
CRYPTODEV_LINUX_LICENSE_FILES = COPYING
|
2021-02-05 07:45:09 +00:00
|
|
|
CRYPTODEV_LINUX_CPE_ID_VENDOR = cryptodev-linux
|
2013-04-27 10:09:45 +00:00
|
|
|
|
package/cryptodev-linux: use the kernel-module helper
The kernel module needs the version.h headers at build-time, but the
Makefile only generates it when the module is built with that Makefile,
because it has this rule:
build: version.h
make ${KERNEL_MAKE_OPTS} modules
So, we must explicitly build this header, which we do in a pre-build hook
to ensure it comes before the kernel-module's own hooks. This header needs
not be installed in staging.
However, the cryptodev.h header still needs to be installed in staging,
which we still do in a staging-install command.
The KERNEL_DIR and PREFIX variables are no longer needed, because we're
no longer calling the rules that needed them (build, above, and
modules_install, both now handled by the kernel-module infra).
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
[Doug: add pre-build hook to build version.h]
Signed-off-by: Doug Kehn <rdkehn@yahoo.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2015-07-12 00:21:36 +00:00
|
|
|
define CRYPTODEV_LINUX_MODULE_GEN_VERSION_H
|
2016-10-17 16:07:20 +00:00
|
|
|
$(TARGET_MAKE_ENV) $(MAKE) -C $(@D) version.h
|
2013-04-27 10:09:45 +00:00
|
|
|
endef
|
package/cryptodev-linux: use the kernel-module helper
The kernel module needs the version.h headers at build-time, but the
Makefile only generates it when the module is built with that Makefile,
because it has this rule:
build: version.h
make ${KERNEL_MAKE_OPTS} modules
So, we must explicitly build this header, which we do in a pre-build hook
to ensure it comes before the kernel-module's own hooks. This header needs
not be installed in staging.
However, the cryptodev.h header still needs to be installed in staging,
which we still do in a staging-install command.
The KERNEL_DIR and PREFIX variables are no longer needed, because we're
no longer calling the rules that needed them (build, above, and
modules_install, both now handled by the kernel-module infra).
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
[Doug: add pre-build hook to build version.h]
Signed-off-by: Doug Kehn <rdkehn@yahoo.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2015-07-12 00:21:36 +00:00
|
|
|
CRYPTODEV_LINUX_PRE_BUILD_HOOKS += CRYPTODEV_LINUX_MODULE_GEN_VERSION_H
|
2013-04-27 10:09:45 +00:00
|
|
|
|
|
|
|
define CRYPTODEV_LINUX_INSTALL_STAGING_CMDS
|
|
|
|
$(INSTALL) -D -m 644 $(@D)/crypto/cryptodev.h \
|
|
|
|
$(STAGING_DIR)/usr/include/crypto/cryptodev.h
|
|
|
|
endef
|
|
|
|
|
2022-04-26 21:20:26 +00:00
|
|
|
define CRYPTODEV_LINUX_CONFIG_FIXUPS
|
|
|
|
$(call KCONFIG_ENABLE_OPT,CONFIG_CRYPTO)
|
|
|
|
$(call KCONFIG_ENABLE_OPT,CONFIG_CRYPTO_USER_API_AEAD)
|
|
|
|
endef
|
|
|
|
|
package/cryptodev-linux: use the kernel-module helper
The kernel module needs the version.h headers at build-time, but the
Makefile only generates it when the module is built with that Makefile,
because it has this rule:
build: version.h
make ${KERNEL_MAKE_OPTS} modules
So, we must explicitly build this header, which we do in a pre-build hook
to ensure it comes before the kernel-module's own hooks. This header needs
not be installed in staging.
However, the cryptodev.h header still needs to be installed in staging,
which we still do in a staging-install command.
The KERNEL_DIR and PREFIX variables are no longer needed, because we're
no longer calling the rules that needed them (build, above, and
modules_install, both now handled by the kernel-module infra).
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
[Doug: add pre-build hook to build version.h]
Signed-off-by: Doug Kehn <rdkehn@yahoo.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2015-07-12 00:21:36 +00:00
|
|
|
$(eval $(kernel-module))
|
2013-04-27 10:09:45 +00:00
|
|
|
$(eval $(generic-package))
|