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 <hector.palacios@digi.com>
This commit is contained in:
Hector Palacios 2018-06-26 13:22:31 +02:00
parent 59d1d37c2f
commit 7682862695
1 changed files with 41 additions and 0 deletions

View File

@ -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)"