Makefile 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. # This file is part of the OpenADK project. OpenADK is copyrighted
  2. # material, please see the LICENCE file in the top-level directory.
  3. include $(ADK_TOPDIR)/rules.mk
  4. PKG_NAME:= cryptodev-linux
  5. PKG_VERSION:= 1.7
  6. PKG_RELEASE:= 1
  7. PKG_HASH:= 41880533b53de4d7b3f054e230f576988dafb8eed7bef5ebcf6422bb2e3a3b25
  8. PKG_DESCR:= device that allows access to kernel cryptographic drivers
  9. PKG_SECTION:= app/crypto
  10. PKG_BUILDDEP:= openssl
  11. PKG_URL:= http://home.gna.org/cryptodev-linux/
  12. PKG_SITES:= http://download.gna.org/cryptodev-linux/
  13. DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.gz
  14. include $(ADK_TOPDIR)/mk/package.mk
  15. include ${ADK_TOPDIR}/mk/kernel-ver.mk
  16. include ${ADK_TOPDIR}/mk/kernel-vars.mk
  17. $(eval $(call PKG_template,CRYPTODEV_LINUX,cryptodev-linux,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  18. CONFIG_STYLE:= manual
  19. XAKE_FLAGS+= CRYPTODEV_CFLAGS='-DENABLE_ASYNC -fhonour-copts' \
  20. ARCH='${ADK_TARGET_KARCH}' \
  21. KERNEL_DIR='${LINUX_DIR}' \
  22. CROSS_COMPILE='${TARGET_CROSS}'
  23. ALL_TARGET:= build
  24. INSTALL_STYLE:= manual
  25. post-build:
  26. -${MAKE} -C "${WRKBUILD}"/tests check
  27. do-install:
  28. ${INSTALL_DIR} ${IDIR_CRYPTODEV_LINUX}/usr/bin
  29. for i in cipher cipher-aead hmac speed async_cipher async_hmac \
  30. async_speed sha_speed hashcrypt_speed fullspeed cipher-gcm \
  31. cipher-aead-srtp cipher_comp hash_comp hmac_comp; do \
  32. $(INSTALL_BIN) ${WRKBUILD}/tests/$$i ${IDIR_CRYPTODEV_LINUX}/usr/bin; \
  33. done
  34. ${INSTALL_DIR} ${IDIR_CRYPTODEV_LINUX}/usr/include/crypto
  35. ${INSTALL_DATA} ${WRKBUILD}/crypto/cryptodev.h \
  36. ${IDIR_CRYPTODEV_LINUX}/usr/include/crypto/
  37. ${INSTALL_DIR} ${IDIR_CRYPTODEV_LINUX}/etc/modules.d/
  38. echo "cryptodev" > ${IDIR_CRYPTODEV_LINUX}/etc/modules.d/90-cryptodev
  39. ${INSTALL_DIR} ${IDIR_CRYPTODEV_LINUX}/lib/modules/${KERNEL_VERSION}/
  40. $(INSTALL_DATA) $(WRKBUILD)/cryptodev.ko \
  41. $(IDIR_CRYPTODEV_LINUX)/lib/modules/${KERNEL_VERSION}/
  42. include ${ADK_TOPDIR}/mk/pkg-bottom.mk