1
0

Makefile 1.9 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 $(TOPDIR)/rules.mk
  4. PKG_NAME:= cryptodev-linux
  5. PKG_VERSION:= 1.6
  6. PKG_RELEASE:= 3
  7. PKG_MD5SUM:= eade38998313c25fd7934719cdf8a2ea
  8. PKG_DESCR:= cryptodev-linux kernel module
  9. PKG_SECTION:= crypto
  10. PKG_BUILDDEP:= openssl
  11. PKG_DEPENDS:= kmod-crypto-manager2
  12. PKG_URL:= http://home.gna.org/cryptodev-linux/
  13. PKG_SITES:= http://download.gna.org/cryptodev-linux/
  14. DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.gz
  15. include $(TOPDIR)/mk/package.mk
  16. include ${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 ${TOPDIR}/mk/pkg-bottom.mk