1
0

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 $(TOPDIR)/rules.mk
  4. PKG_NAME:= cryptodev-linux
  5. PKG_VERSION:= 1.6
  6. PKG_RELEASE:= 1
  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. include $(TOPDIR)/mk/package.mk
  15. include ${TOPDIR}/mk/kernel-vars.mk
  16. $(eval $(call PKG_template,CRYPTODEV_LINUX,cryptodev-linux,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  17. CONFIG_STYLE:= manual
  18. BUILD_STYLE:= manual
  19. INSTALL_STYLE:= manual
  20. do-build:
  21. ${MAKE} -C "${WRKBUILD}"/tests check
  22. ${MAKE} -C "${WRKBUILD}" version.h
  23. GCC_HONOUR_COPTS=0 LDFLAGS="" ${MAKE} ${KERNEL_MAKE_OPTS} \
  24. M="${WRKBUILD}" modules
  25. ${INSTALL_DIR} ${WRKINST}/usr/include/crypto
  26. ${INSTALL_DATA} ${WRKBUILD}/crypto/cryptodev.h \
  27. ${WRKINST}/usr/include/crypto/
  28. do-install:
  29. ${INSTALL_DIR} ${IDIR_CRYPTODEV_LINUX}/usr/bin
  30. for i in cipher cipher-aead hmac speed async_cipher async_hmac \
  31. async_speed sha_speed hashcrypt_speed fullspeed cipher-gcm \
  32. cipher-aead-srtp cipher_comp hash_comp hmac_comp; do \
  33. $(INSTALL_BIN) ${WRKBUILD}/tests/$$i ${IDIR_CRYPTODEV_LINUX}/usr/bin; \
  34. done
  35. ${INSTALL_DIR} ${IDIR_CRYPTODEV_LINUX}/usr/include/crypto
  36. ${INSTALL_DATA} ${WRKBUILD}/crypto/cryptodev.h \
  37. ${IDIR_CRYPTODEV_LINUX}/usr/include/crypto/
  38. ${INSTALL_DIR} ${IDIR_CRYPTODEV_LINUX}/etc/modules.d/
  39. echo "cryptodev" > ${IDIR_CRYPTODEV_LINUX}/etc/modules.d/90-cryptodev
  40. ${INSTALL_DIR} ${IDIR_CRYPTODEV_LINUX}/lib/modules/${KERNEL_VERSION}/
  41. $(INSTALL_DATA) $(WRKBUILD)/cryptodev.ko \
  42. $(IDIR_CRYPTODEV_LINUX)/lib/modules/${KERNEL_VERSION}/
  43. include ${TOPDIR}/mk/pkg-bottom.mk