Created
April 28, 2020 05:53
-
-
Save mmitti/664a99743e4b491ee47d1f1353995265 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# This file is the dnndk recipe. | |
# | |
SUMMARY = "DNNDK Libraries" | |
SECTION = "libs" | |
LICENSE = "MIT" | |
LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302" | |
SRC_URI = "file://bin/dexplorer \ | |
file://bin/dsight \ | |
file://bin/ddump \ | |
file://lib/echarts.js \ | |
file://lib/libdputils.so.3.4 \ | |
file://lib/libdsight.a \ | |
file://lib/libhineon.so \ | |
file://lib/libn2cube.so \ | |
file://include/dnndk.h \ | |
file://include/dputils.h \ | |
file://include/n2cube.h \ | |
" | |
inherit module-base | |
S = "${WORKDIR}" | |
DEPENDS += "opencv" | |
TARGET_CC_ARCH += "${LDFLAGS}" | |
do_install() { | |
install -d ${D}/${bindir} | |
install -m 0755 ${S}/bin/dexplorer ${D}/${bindir} | |
install -m 0755 ${S}/bin/dsight ${D}/${bindir} | |
install -m 0755 ${S}/bin/ddump ${D}/${bindir} | |
install -d ${D}/usr/local/include | |
install -d ${D}/usr/local/include/dnndk | |
install -m 0644 ${S}/include/dnndk.h ${D}/usr/local/include/dnndk | |
install -m 0644 ${S}/include/dputils.h ${D}/usr/local/include/dnndk | |
install -m 0644 ${S}/include/n2cube.h ${D}/usr/local/include/dnndk | |
install -d ${D}/usr/lib | |
install -m 0655 ${S}/lib/echarts.js ${D}/usr/lib | |
install -m 0655 ${S}/lib/libdputils.so.3.4 ${D}/usr/lib | |
install -m 0655 ${S}/lib/libdsight.a ${D}/usr/lib | |
install -m 0655 ${S}/lib/libhineon.so ${D}/usr/lib | |
install -m 0655 ${S}/lib/libn2cube.so ${D}/usr/lib | |
cd ${D}${libdir} | |
ln -s libdputils.so.3.4 libdputils.so | |
install -d ${D}/usr/local/lib | |
cd ${D}/usr/local/lib | |
ln -s ../../lib/libn2cube.so libn2cube.so | |
} | |
INSANE_SKIP_${PN} += "ldflags" | |
INSANE_SKIP_${PN} += "dev-so" | |
FILES_SOLIBSDEV = "" | |
FILES_${PN} += "/usr/lib /usr/local/include /usr/local/include/dnndk /usr/local/lib" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment