Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id B8BE6E00EBB; Fri, 2 Aug 2019 10:59:00 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on yocto-www.yoctoproject.org X-Spam-Level: X-Spam-Status: No, score=-4.3 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 X-Spam-HAM-Report: * -2.3 RCVD_IN_DNSWL_MED RBL: Sender listed at https://www.dnswl.org/, * medium trust * [198.47.19.142 listed in list.dnswl.org] * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] * -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's * domain * -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature * 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily * valid Received: from fllv0016.ext.ti.com (fllv0016.ext.ti.com [198.47.19.142]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id C84E8E00EB4 for ; Fri, 2 Aug 2019 10:58:59 -0700 (PDT) Received: from fllv0035.itg.ti.com ([10.64.41.0]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id x72Hwxic095734 for ; Fri, 2 Aug 2019 12:58:59 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1564768739; bh=Cob0JH36FYe4bO4hxtKGdwtU1l3qVgQ4to7sZj+3D2E=; h=Date:From:To:CC:Subject:References:In-Reply-To; b=EGD69zi+PsB8RP9s7j5ACXoc98ycsN1XRhlCKmpZa7kW6vV0cxkJ3qoUWydE0bCM8 f1aVxIhtErud+LA0vnPfsuCxUzmQlswNgSoHLHCiZ7BFwbLXG6kj701+D6PNLE8VH+ rxnGylLrNOx5y31GxyslRFJ3RXcQ5IzH951tNzjs= Received: from DFLE104.ent.ti.com (dfle104.ent.ti.com [10.64.6.25]) by fllv0035.itg.ti.com (8.15.2/8.15.2) with ESMTPS id x72HwxtI111758 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL) for ; Fri, 2 Aug 2019 12:58:59 -0500 Received: from DFLE100.ent.ti.com (10.64.6.21) by DFLE104.ent.ti.com (10.64.6.25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1713.5; Fri, 2 Aug 2019 12:58:58 -0500 Received: from lelv0326.itg.ti.com (10.180.67.84) by DFLE100.ent.ti.com (10.64.6.21) 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; Fri, 2 Aug 2019 12:58:58 -0500 Received: from localhost (ileax41-snat.itg.ti.com [10.172.224.153]) by lelv0326.itg.ti.com (8.15.2/8.15.2) with ESMTP id x72HwwVe046935; Fri, 2 Aug 2019 12:58:58 -0500 Date: Fri, 2 Aug 2019 13:58:58 -0400 From: Denys Dmytriyenko To: Jonathan Bergsagel Message-ID: <20190802175858.GR20944@beryl> References: <20190802173446.23892-1-jbergsagel@ti.com> MIME-Version: 1.0 In-Reply-To: <20190802173446.23892-1-jbergsagel@ti.com> User-Agent: Mutt/1.5.24 (2015-08-30) X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Cc: meta-ti@yoctoproject.org, Suman Anna Subject: Re: [PATCH] ipc-lld: add AM65xx IPC echo_test firmware binaries X-BeenThere: meta-ti@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Usage and development list for the meta-ti layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Aug 2019 17:59:00 -0000 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline Jonathan, Can you combine the recipes? Instead of adding new ipc-lld-fw-am65x, you can re-use existing J7 ipc-lld-fw. Especially since they both pull binaries from the same repo and the same SRCREV. You can install and deploy only binaries needed for the platform - see PRU FW recipe for example how to do that: http://git.yoctoproject.org/cgit/cgit.cgi/meta-ti/tree/recipes-bsp/pru/pru-icss_git.bb -- Denys On Fri, Aug 02, 2019 at 12:34:46PM -0500, Jonathan Bergsagel wrote: > Use IPC/LLD based IPC echo test firmware for AM65xx > Linux IPC testing. > Updated location of J721E firmware binaries as well, > with latest IPC/LLD commit. > > Signed-off-by: Jonathan Bergsagel > --- > recipes-bsp/ipc-lld/ipc-lld-fw-am65x_git.bb | 68 +++++++++++++++++++++ > recipes-bsp/ipc-lld/ipc-lld-fw_git.bb | 6 +- > 2 files changed, 72 insertions(+), 2 deletions(-) > create mode 100644 recipes-bsp/ipc-lld/ipc-lld-fw-am65x_git.bb > > diff --git a/recipes-bsp/ipc-lld/ipc-lld-fw-am65x_git.bb b/recipes-bsp/ipc-lld/ipc-lld-fw-am65x_git.bb > new file mode 100644 > index 000000000000..afe3ce240816 > --- /dev/null > +++ b/recipes-bsp/ipc-lld/ipc-lld-fw-am65x_git.bb > @@ -0,0 +1,68 @@ > +SUMMARY = "AM65x R5 IPC Echo Test Firmware Binaries" > + > +LICENSE = "TI-TFL" > +LIC_FILES_CHKSUM = "file://LICENSE;md5=7eae093f2b09fd39307f30028a068b91" > + > +inherit deploy > +inherit update-alternatives > + > +COMPATIBLE_MACHINE = "am65xx" > + > +PV = "1.0-git${SRCPV}" > +PACKAGE_ARCH = "${MACHINE_ARCH}" > + > +PROTOCOL = "git" > +BRANCH = "master" > +SRCREV = "81392da08fab2b5cfc23d63dbe71b7244a6af477" > + > +SRC_URI = "git://git.ti.com/keystone-rtos/ipc-lld.git;protocol=${PROTOCOL};branch=${BRANCH}" > + > +S = "${WORKDIR}/git" > + > +R5_FW_DIR = "${S}/examples/echo_test/binaries/am65xx" > + > +# make sure that lib/firmware, and all its contents are part of the package > +FILES_${PN} += "${base_libdir}/firmware" > + > +# install the R5 ipc echo test binaries in lib/firmware/pdk-ipc, with softlinks up a level > +do_install() { > + install -d ${D}${base_libdir}/firmware/pdk-ipc > + install -m 0644 ${R5_FW_DIR}/ipc_echo_test_mcu1_0_release.xer5f ${D}${base_libdir}/firmware/pdk-ipc/ > + install -m 0644 ${R5_FW_DIR}/ipc_echo_test_mcu1_0_release.strip.xer5f ${D}${base_libdir}/firmware/pdk-ipc/ > + install -m 0644 ${R5_FW_DIR}/ipc_echo_test_mcu1_1_release.xer5f ${D}${base_libdir}/firmware/pdk-ipc/ > + install -m 0644 ${R5_FW_DIR}/ipc_echo_test_mcu1_1_release.strip.xer5f ${D}${base_libdir}/firmware/pdk-ipc/ > +} > + > +TARGET_MCU_R5FSS0_0 = "am65x-mcu-r5f0_0-fw" > +TARGET_MCU_R5FSS0_1 = "am65x-mcu-r5f0_1-fw" > +ALTERNATIVE_${PN} = "\ > + am65x-mcu-r5f0_0-fw \ > + am65x-mcu-r5f0_1-fw \ > + " > +ALTERNATIVE_LINK_NAME[am65x-mcu-r5f0_0-fw] = "${base_libdir}/firmware/${TARGET_MCU_R5FSS0_0}" > +ALTERNATIVE_LINK_NAME[am65x-mcu-r5f0_1-fw] = "${base_libdir}/firmware/${TARGET_MCU_R5FSS0_1}" > +ALTERNATIVE_TARGET[am65x-mcu-r5f0_0-fw] = "${base_libdir}/firmware/pdk-ipc/ipc_echo_test_mcu1_0_release.strip.xer5f" > +ALTERNATIVE_TARGET[am65x-mcu-r5f0_1-fw] = "${base_libdir}/firmware/pdk-ipc/ipc_echo_test_mcu1_1_release.strip.xer5f" > + > +ALTERNATIVE_PRIORITY = "10" > + > +# copy the executables into the deploy directory > +do_deploy () { > + install ${R5_FW_DIR}/ipc_echo_test_mcu1_0_release.xer5f ${DEPLOYDIR}/ > + install ${R5_FW_DIR}/ipc_echo_test_mcu1_0_release.strip.xer5f ${DEPLOYDIR}/ > + install ${R5_FW_DIR}/ipc_echo_test_mcu1_1_release.xer5f ${DEPLOYDIR}/ > + install ${R5_FW_DIR}/ipc_echo_test_mcu1_1_release.strip.xer5f ${DEPLOYDIR}/ > +} > +addtask deploy after do_install before do_build > + > +# This is used to prevent the build system to strip the executables > +INHIBIT_PACKAGE_STRIP = "1" > +INHIBIT_SYSROOT_STRIP = "1" > +# This is used to prevent the build system to split the debug info in a separate file > +INHIBIT_PACKAGE_DEBUG_SPLIT = "1" > +# As it likely to be a different arch from the Yocto build, disable checking by adding "arch" to INSANE_SKIP > +INSANE_SKIP_${PN} += "arch" > + > +# we don't want to configure and build the source code > +do_compile[noexec] = "1" > +do_configure[noexec] = "1" > diff --git a/recipes-bsp/ipc-lld/ipc-lld-fw_git.bb b/recipes-bsp/ipc-lld/ipc-lld-fw_git.bb > index f8157d8c6e5b..82cc11186aac 100644 > --- a/recipes-bsp/ipc-lld/ipc-lld-fw_git.bb > +++ b/recipes-bsp/ipc-lld/ipc-lld-fw_git.bb > @@ -6,18 +6,20 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=7eae093f2b09fd39307f30028a068b91" > inherit deploy > inherit update-alternatives > > +COMPATIBLE_MACHINE = "j7-evm" > + > PV = "1.0-git${SRCPV}" > PACKAGE_ARCH = "${MACHINE_ARCH}" > > PROTOCOL = "git" > BRANCH = "master" > -SRCREV = "66764a5f063db606ea9db23380694bfd7d4aeafb" > +SRCREV = "81392da08fab2b5cfc23d63dbe71b7244a6af477" > > SRC_URI = "git://git.ti.com/keystone-rtos/ipc-lld.git;protocol=${PROTOCOL};branch=${BRANCH}" > > S = "${WORKDIR}/git" > > -R5_DSP_FW_DIR = "${S}/examples/echo_test/binaries" > +R5_DSP_FW_DIR = "${S}/examples/echo_test/binaries/j721e" > > # make sure that lib/firmware, and all its contents are part of the package > FILES_${PN} += "${base_libdir}/firmware" > -- > 2.17.1 >