Return-Path: Received: from fllv0016.ext.ti.com (fllv0016.ext.ti.com [198.47.19.142]) by arago-project.org (Postfix) with ESMTPS id B99C1529E6 for ; Thu, 22 Aug 2019 20:32:33 +0000 (UTC) Received: from lelv0266.itg.ti.com ([10.180.67.225]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id x7MKVXvA073618 for ; Thu, 22 Aug 2019 15:31:33 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1566505893; bh=oZOR3J0za4pSOAWIpRsUojIyvgyYOuokmekRo8sN+dw=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=GgoTGUYGSGsv4MASnbe00r9oS9vBi1le4vGyT1Fu7v9mfnhhRW6VofjdlHB43dtpH A28QJvrwyNzrcEIQurLLv0Is+s6cP+T6nQPSVaZrmYR05c8L2+MjB4+1QXutzPxLDK 9VIDB2/cTLCfqc0EPT+BPEqkMBQXVeJYXcqMdjBA= Received: from DLEE113.ent.ti.com (dlee113.ent.ti.com [157.170.170.24]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id x7MKVXmj034447 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL) for ; Thu, 22 Aug 2019 15:31:33 -0500 Received: from DLEE106.ent.ti.com (157.170.170.36) by DLEE113.ent.ti.com (157.170.170.24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1713.5; Thu, 22 Aug 2019 15:31:32 -0500 Received: from fllv0040.itg.ti.com (10.64.41.20) by DLEE106.ent.ti.com (157.170.170.36) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1713.5 via Frontend Transport; Thu, 22 Aug 2019 15:31:32 -0500 Received: from UDA0271529.gt.design.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by fllv0040.itg.ti.com (8.15.2/8.15.2) with ESMTP id x7MKVVqG015899; Thu, 22 Aug 2019 15:31:32 -0500 From: Hongmei Gou To: Date: Thu, 22 Aug 2019 16:31:25 -0400 Message-ID: <20190822203126.4155-3-a0271529@ti.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190822203126.4155-1-a0271529@ti.com> References: <20190822203126.4155-1-a0271529@ti.com> MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Cc: Hongmei Gou Subject: [PATCH v2 2/3] tensorflow-lite: install minimal and benchmark_model examples, and all .a files X-BeenThere: meta-arago@arago-project.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Arago metadata layer for TI SDKs - OE-Core/Yocto compatible List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Aug 2019 20:32:34 -0000 Content-Type: text/plain Signed-off-by: Hongmei Gou --- .../tensorflow-lite/tensorflow-lite_1.12.bb | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/meta-arago-extras/recipes-support/tensorflow-lite/tensorflow-lite_1.12.bb b/meta-arago-extras/recipes-support/tensorflow-lite/tensorflow-lite_1.12.bb index ebd175e1..38df078f 100644 --- a/meta-arago-extras/recipes-support/tensorflow-lite/tensorflow-lite_1.12.bb +++ b/meta-arago-extras/recipes-support/tensorflow-lite/tensorflow-lite_1.12.bb @@ -35,7 +35,7 @@ SRC_URI = "git://github.com/tensorflow/tensorflow.git;branch=r1.12;protocol=http SRCREV = "5b900cfe4b3b848f577315a0dde09a729f770e95" -PR = "r1" +PR = "r2" S = "${WORKDIR}/git" @@ -94,7 +94,7 @@ do_compile() { do_install() { install -d ${D}${libdir} - install -m 0644 ${S}/tensorflow/contrib/lite/tools/make/gen/${TARGET_OS}_${TUNE_ARCH}/lib/libtensorflow-lite.a ${D}${libdir}/ + install -m 0644 ${S}/tensorflow/contrib/lite/tools/make/gen/${TARGET_OS}_${TUNE_ARCH}/lib/*.a ${D}${libdir}/ install -d ${D}${includedir}/tensorflow/contrib/lite install -m 0644 ${S}/tensorflow/contrib/lite/*.h ${D}${includedir}/tensorflow/contrib/lite/ install -d ${D}${includedir}/tensorflow/contrib/lite/c @@ -114,6 +114,16 @@ do_install() { sed -i 's:@version@:${PV}:g s:@libdir@:${libdir}:g s:@includedir@:${includedir}:g' ${D}${libdir}/pkgconfig/tensorflow-lite.pc + # install examples + install -d ${D}${datadir}/${PN}-${PV}/examples + install -m 0755 ${S}/tensorflow/contrib/lite/tools/make/gen/${TARGET_OS}_${TUNE_ARCH}/bin/minimal ${D}${datadir}/${PN}-${PV}/examples + install -m 0755 ${S}/tensorflow/contrib/lite/tools/make/gen/${TARGET_OS}_${TUNE_ARCH}/bin/benchmark_model ${D}${datadir}/${PN}-${PV}/examples } +PACKAGES += "${PN}-examples" + +FILES_${PN}-examples = " \ + ${datadir}/${PN}-${PV}/examples/minimal \ + ${datadir}/${PN}-${PV}/examples/benchmark_model \ " + ALLOW_EMPTY_${PN} = "1" -- 2.17.1