From 7d94131e28e98d79f04d7b4fb6b392dac56789ff Mon Sep 17 00:00:00 2001 From: Phil Sutter Date: Tue, 24 Feb 2015 12:46:55 +0100 Subject: package/cryptodev-linux: improve Makefile --- package/cryptodev-linux/Makefile | 22 ++++++++++------------ 1 file changed, 10 insertions(+), 12 deletions(-) (limited to 'package') diff --git a/package/cryptodev-linux/Makefile b/package/cryptodev-linux/Makefile index b02bcaf4c..82e019acd 100644 --- a/package/cryptodev-linux/Makefile +++ b/package/cryptodev-linux/Makefile @@ -22,25 +22,23 @@ include ${ADK_TOPDIR}/mk/kernel-vars.mk $(eval $(call PKG_template,CRYPTODEV_LINUX,cryptodev-linux,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION})) CONFIG_STYLE:= manual -BUILD_STYLE:= manual +XAKE_FLAGS+= CRYPTODEV_CFLAGS='-DENABLE_ASYNC -fhonour-copts' \ + ARCH='${ADK_TARGET_KARCH}' \ + KERNEL_DIR='${LINUX_DIR}' \ + CROSS_COMPILE='${TARGET_CROSS}' +ALL_TARGET:= build INSTALL_STYLE:= manual -do-build: - ${MAKE} -C "${WRKBUILD}"/tests check - ${MAKE} -C "${WRKBUILD}" version.h - GCC_HONOUR_COPTS=0 LDFLAGS="" ${MAKE} -C ${LINUX_DIR} ${KERNEL_MAKE_OPTS} \ - M="${WRKBUILD}" modules - ${INSTALL_DIR} ${WRKINST}/usr/include/crypto - ${INSTALL_DATA} ${WRKBUILD}/crypto/cryptodev.h \ - ${WRKINST}/usr/include/crypto/ +post-build: + -${MAKE} -C "${WRKBUILD}"/tests check do-install: ${INSTALL_DIR} ${IDIR_CRYPTODEV_LINUX}/usr/bin for i in cipher cipher-aead hmac speed async_cipher async_hmac \ - async_speed sha_speed hashcrypt_speed fullspeed cipher-gcm \ - cipher-aead-srtp cipher_comp hash_comp hmac_comp; do \ + async_speed sha_speed hashcrypt_speed fullspeed cipher-gcm \ + cipher-aead-srtp cipher_comp hash_comp hmac_comp; do \ $(INSTALL_BIN) ${WRKBUILD}/tests/$$i ${IDIR_CRYPTODEV_LINUX}/usr/bin; \ - done + done ${INSTALL_DIR} ${IDIR_CRYPTODEV_LINUX}/usr/include/crypto ${INSTALL_DATA} ${WRKBUILD}/crypto/cryptodev.h \ ${IDIR_CRYPTODEV_LINUX}/usr/include/crypto/ -- cgit v1.2.3