diff options
author | Phil Sutter <phil.sutter@viprinet.com> | 2015-02-24 12:46:55 +0100 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2015-02-28 10:14:26 +0100 |
commit | 7d94131e28e98d79f04d7b4fb6b392dac56789ff (patch) | |
tree | 45e6a45243958f988e4fabbe0b4877062516e9d7 /package/cryptodev-linux/Makefile | |
parent | 983888f4a325d2af0b6b72f82d6ad90e210ee050 (diff) |
package/cryptodev-linux: improve Makefile
Diffstat (limited to 'package/cryptodev-linux/Makefile')
-rw-r--r-- | package/cryptodev-linux/Makefile | 22 |
1 files changed, 10 insertions, 12 deletions
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/ |