1
0

Makefile 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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.6
  6. PKG_RELEASE:= 3
  7. PKG_HASH:= 75f1425c8ea1f8cae523905a5a046a35092327a6152800b0b86efc4e56fb3e2f
  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. BUILD_STYLE:= manual
  20. INSTALL_STYLE:= manual
  21. do-build:
  22. ${MAKE} -C "${WRKBUILD}"/tests check
  23. ${MAKE} -C "${WRKBUILD}" version.h
  24. GCC_HONOUR_COPTS=0 LDFLAGS="" ${MAKE} -C ${LINUX_DIR} ${KERNEL_MAKE_OPTS} \
  25. M="${WRKBUILD}" modules
  26. ${INSTALL_DIR} ${WRKINST}/usr/include/crypto
  27. ${INSTALL_DATA} ${WRKBUILD}/crypto/cryptodev.h \
  28. ${WRKINST}/usr/include/crypto/
  29. do-install:
  30. ${INSTALL_DIR} ${IDIR_CRYPTODEV_LINUX}/usr/bin
  31. for i in cipher cipher-aead hmac speed async_cipher async_hmac \
  32. async_speed sha_speed hashcrypt_speed fullspeed cipher-gcm \
  33. cipher-aead-srtp cipher_comp hash_comp hmac_comp; do \
  34. $(INSTALL_BIN) ${WRKBUILD}/tests/$$i ${IDIR_CRYPTODEV_LINUX}/usr/bin; \
  35. done
  36. ${INSTALL_DIR} ${IDIR_CRYPTODEV_LINUX}/usr/include/crypto
  37. ${INSTALL_DATA} ${WRKBUILD}/crypto/cryptodev.h \
  38. ${IDIR_CRYPTODEV_LINUX}/usr/include/crypto/
  39. ${INSTALL_DIR} ${IDIR_CRYPTODEV_LINUX}/etc/modules.d/
  40. echo "cryptodev" > ${IDIR_CRYPTODEV_LINUX}/etc/modules.d/90-cryptodev
  41. ${INSTALL_DIR} ${IDIR_CRYPTODEV_LINUX}/lib/modules/${KERNEL_VERSION}/
  42. $(INSTALL_DATA) $(WRKBUILD)/cryptodev.ko \
  43. $(IDIR_CRYPTODEV_LINUX)/lib/modules/${KERNEL_VERSION}/
  44. include ${ADK_TOPDIR}/mk/pkg-bottom.mk