Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id BFEC8E00C25; Mon, 24 Jul 2017 15:31:12 -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=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 X-Spam-HAM-Report: * -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no * trust * [198.47.19.17 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_SIGNED Message has a DKIM or DK signature, not necessarily * valid * -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature Received: from fllnx210.ext.ti.com (fllnx210.ext.ti.com [198.47.19.17]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 15D8DE00C1B for ; Mon, 24 Jul 2017 15:31:11 -0700 (PDT) Received: from dflxv15.itg.ti.com ([128.247.5.124]) by fllnx210.ext.ti.com (8.15.1/8.15.1) with ESMTP id v6OMVAZG007349 for ; Mon, 24 Jul 2017 17:31:10 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ti.com; s=ti-com-17Q1; t=1500935471; bh=n2OG/AcrmzGx5F8rBU6y3ociQOd7LnaOBXirh9LOy9Y=; h=From:To:Subject:Date:In-Reply-To:References; b=rKZrz+vBRHSV0tVj3o5M2u6Zswf66SKc6d6i8QCMkrWIANZ4mThzlWt5E0IPr1oAR rUeoLdwEo0HZHdi5OJsCQ13LrC+IviREfyS3gdE+huLoW5+D4rgY22Mn97rY5kAyj6 RnUavh5cPkzNfLHDdsLqLDp+CFYNytawPgcDHFqE= Received: from DFLE72.ent.ti.com (dfle72.ent.ti.com [128.247.5.109]) by dflxv15.itg.ti.com (8.14.3/8.13.8) with ESMTP id v6OMVA97008020 for ; Mon, 24 Jul 2017 17:31:10 -0500 Received: from dlep32.itg.ti.com (157.170.170.100) by DFLE72.ent.ti.com (128.247.5.109) with Microsoft SMTP Server id 14.3.294.0; Mon, 24 Jul 2017 17:31:10 -0500 Received: from uda0868762.dhcp.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by dlep32.itg.ti.com (8.14.3/8.13.8) with ESMTP id v6OMVAtO008103 for ; Mon, 24 Jul 2017 17:31:10 -0500 From: Ivan Pang To: Date: Mon, 24 Jul 2017 17:31:09 -0500 Message-ID: <1500935470-11179-3-git-send-email-i-pang@ti.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1500935470-11179-1-git-send-email-i-pang@ti.com> References: <1500935470-11179-1-git-send-email-i-pang@ti.com> MIME-Version: 1.0 Subject: [PATCH 3/4] mad-utils-rtos: added recipe for MAD utils 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: Mon, 24 Jul 2017 22:31:12 -0000 Content-Type: text/plain This recipe adds the Multicore Application Deployment (MAD) utility for c665x-evm and c667x-evm. Signed-off-by: Ivan Pang --- recipes-bsp/mad-utils/mad-utils-rtos_git.bb | 66 +++++++++++++++++++++++++++++ 1 file changed, 66 insertions(+) create mode 100644 recipes-bsp/mad-utils/mad-utils-rtos_git.bb diff --git a/recipes-bsp/mad-utils/mad-utils-rtos_git.bb b/recipes-bsp/mad-utils/mad-utils-rtos_git.bb new file mode 100644 index 0000000..0fab610 --- /dev/null +++ b/recipes-bsp/mad-utils/mad-utils-rtos_git.bb @@ -0,0 +1,66 @@ +LICENSE = "BSD-3-Clause" +LIC_FILES_CHKSUM = "file://README.txt;md5=44b2180aec0657f6b0e42e5611c0bafb" + +require recipes-ti/includes/ti-paths.inc + +DEPENDS = "ti-cgt6x-7-native" + +PACKAGE_ARCH = "${MACHINE_ARCH}" +COMPATIBLE_MACHINE = "c66x" + +CLEANBROKEN = "1" + +BRANCH = "master" +SRC_URI = "git://git.ti.com/keystone-rtos/mad-utils.git;protocol=git;branch=${BRANCH}" +SRCREV = "2458510f76eddfa837c2b83448965e233156944b" +PR = "r0" + +S = "${WORKDIR}/git" + +export C6X_BASE_DIR="${TI_CGT6X_7_INSTALL_DIR}" + +DEVICE = "" +DEVICE_c665x-evm = "C6657" +DEVICE_c667x-evm = "C6678" + +ENDIAN = "" +ENDIAN_c665x-evm = "little big" +ENDIAN_c667x-evm = "little big" + +do_compile() { + cd mad-loader + cp mal/malLib/build/Makefile mal/malLib/build/Makefile_save + sed -i "s@cl6x@${C6X_BASE_DIR}/bin/cl6x@g" mal/malLib/build/Makefile + sed -i "s@ar6x@${C6X_BASE_DIR}/bin/ar6x@g" mal/malLib/build/Makefile + sed -i "s@strip6x@${C6X_BASE_DIR}/bin/strip6x@g" mal/malLib/build/Makefile + cp mal/malApp/build/Makefile mal/malApp/build/Makefile_save + sed -i "s@cl6x@${C6X_BASE_DIR}/bin/cl6x@g" mal/malApp/build/Makefile + sed -i "s@ar6x@${C6X_BASE_DIR}/bin/ar6x@g" mal/malApp/build/Makefile + sed -i "s@strip6x@${C6X_BASE_DIR}/bin/strip6x@g" mal/malApp/build/Makefile + cp nmlLoader/build/Makefile nmlLoader/build/Makefile_save + sed -i "s@cl6x@${C6X_BASE_DIR}/bin/cl6x@g" nmlLoader/build/Makefile + sed -i "s@ar6x@${C6X_BASE_DIR}/bin/ar6x@g" nmlLoader/build/Makefile + sed -i "s@strip6x@${C6X_BASE_DIR}/bin/strip6x@g" nmlLoader/build/Makefile + for e in ${ENDIAN} + do + mkdir -p bin/${DEVICE}/${e} + make -C mal/malLib/build clean all DEVICE=${DEVICE} ENDIAN=${e} C_DIR=${C6X_BASE_DIR} + make -C mal/malApp/build clean all DEVICE=${DEVICE} ENDIAN=${e} C_DIR=${C6X_BASE_DIR} + cp mal/malApp/build/mal_app.exe bin/${DEVICE}/${e} + make -C nmlLoader/build clean all DEVICE=${DEVICE} ENDIAN=${e} C_DIR=${C6X_BASE_DIR} + cp nmlLoader/build/nml.exe bin/${DEVICE}/${e} + done + mv -f mal/malLib/build/Makefile_save mal/malLib/build/Makefile + mv -f mal/malApp/build/Makefile_save mal/malApp/build/Makefile + mv -f nmlLoader/build/Makefile_save nmlLoader/build/Makefile + cd - +} + +do_install() { + install -d ${D}${PDK_INSTALL_DIR_RECIPE}/packages/ti/boot/mad-utils + cp -r * ${D}${PDK_INSTALL_DIR_RECIPE}/packages/ti/boot/mad-utils +} + +FILES_${PN} += "${PDK_INSTALL_DIR_RECIPE}/packages/ti/boot/mad-utils" + +INSANE_SKIP_${PN} += "arch staticdev ldflags file-rdeps" -- 1.9.1