blob: 5945d811cb4fced7db21b723d495e4017cb89b58 [file] [log] [blame]
SUMMARY = "HSM Efuse Library"
LICENSE = "MediaTekProprietary"
inherit workonsrc
WORKONSRC = "${TOPDIR}/../src/bsp/hsm/private/efuse"
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/efuse*.h ${D}/${includedir}
# install lib
install -d ${D}/${libdir}
install -m 644 efuse.a ${D}/${libdir}
else
# install header
install -d ${D}/${includedir}
install -m 644 usr/include/efuse*.h ${D}/${includedir}
# install lib
install -d ${D}/${libdir}
install -m 644 usr/lib/efuse.a ${D}/${libdir}
fi
}