| SUMMARY = "HSM Crypto Library" |
| LICENSE = "MediaTekProprietary" |
| |
| DEPENDS = "gcc-arc" |
| |
| inherit workonsrc |
| WORKONSRC = "${TOPDIR}/../src/bsp/hsm/private/crypto/${TARGET_PLATFORM}" |
| |
| EXTRA_OEMAKE = "ARC_GNU_PATH=$(find ${WORKDIR}/../.. -maxdepth 3 -name arc_gnu_*_prebuilt_elf32_le_linux_install)" |
| |
| FILES_${PN}-dev = "${includedir}" |
| FILES_${PN}-staticdev = "${libdir}/*.a" |
| |
| do_compile() { |
| oe_runmake |
| } |
| |
| do_install() { |
| if [ -d "${WORKONSRC}" ]; then |
| # install header |
| install -d ${D}/${includedir} |
| install -m 644 include/public/crypto_*.h ${D}/${includedir} |
| |
| # install lib |
| install -d ${D}/${libdir} |
| install -m 644 libcrypto_ex.a ${D}/${libdir} |
| else |
| # install header |
| install -d ${D}/${includedir} |
| install -m 644 usr/include/crypto_*.h ${D}/${includedir} |
| |
| # install lib |
| install -d ${D}/${libdir} |
| install -m 644 usr/lib/libcrypto_ex.a ${D}/${libdir} |
| fi |
| } |