From 7682862695848f216f3e712fecd92288454066e8 Mon Sep 17 00:00:00 2001 From: Hector Palacios Date: Tue, 26 Jun 2018 13:22:31 +0200 Subject: [PATCH] imx-m4-demos: add recipe for M4 binary demo This recipe takes a binary demo for the Cortex M4 CPU. This is later used by imx-boot recipe to bundle it with the bootable image for the i.MX8 (together with the SC firmware, U-Boot, etc). Signed-off-by: Hector Palacios --- .../m4-demos/imx-m4-demos_2.2.0.bb | 41 +++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 meta-digi-arm/recipes-cpu/m4-demos/imx-m4-demos_2.2.0.bb diff --git a/meta-digi-arm/recipes-cpu/m4-demos/imx-m4-demos_2.2.0.bb b/meta-digi-arm/recipes-cpu/m4-demos/imx-m4-demos_2.2.0.bb new file mode 100644 index 000000000..40f064413 --- /dev/null +++ b/meta-digi-arm/recipes-cpu/m4-demos/imx-m4-demos_2.2.0.bb @@ -0,0 +1,41 @@ +# Copyright (C) 2016 Freescale Semiconductor +# Copyright 2017 NXP +# Released under the MIT license (see COPYING.MIT for the terms) + +SUMMARY = "i.MX M4 core Demo images" +SECTION = "app" +LICENSE = "Proprietary" +LIC_FILES_CHKSUM = "file://COPYING;md5=08fd295cce89b0a9c74b9b83ed74f671" + +inherit deploy fsl-eula-unpack2 + +SOC ?= "imx8qm" +SOC_mx8mq= "imx8mq" +SOC_mx8qm= "imx8qm" +SOC_mx8qxp= "imx8qx" + +IMX_PACKAGE_NAME = "${SOC}-m4-demo-${PV}" +SRC_URI_NAME = "${SOC}" + +SRC_URI[imx8mq.md5sum] = "69cc4f9955003229687112320efc5cc2" +SRC_URI[imx8mq.sha256sum] = "bd19040df61df7e9157984c9d005a2fe977bec5b97e9269ad0a9ffc9f1a33bb5" + +SRC_URI[imx8qm.md5sum] = "7580970903ffc10d9c4c963e36905529" +SRC_URI[imx8qm.sha256sum] = "5d127b64d5b75eca623cc47cd3408e2b729359ac093ca7819df9af3759a61516" + +SRC_URI[imx8qx.md5sum] = "70a22aa0607843f39b38412c95d5e149" +SRC_URI[imx8qx.sha256sum] = "a2e55f078a3c762c7f87b60d514722ab97656a4705e62b46a8948ee434c16889" + +SCR = "SCR-${SOC}-m4-demo.txt" + +do_deploy () { + # Install the demo binaries + install -d ${DEPLOYDIR} + cp ${S}/*.bin ${DEPLOYDIR}/ + ls ${DEPLOYDIR}/ +} + +addtask deploy before do_build after do_compile + +PACKAGE_ARCH = "${MACHINE_ARCH}" +COMPATIBLE_MACHINE = "(mx8mq|mx8qm|mx8qxp)"