[meta-freescale] [PATCH] imx-m4fwloader: Add recipe

Vanessa Maegima vanessa.maegima at nxp.com
Fri Mar 9 05:27:41 PST 2018


This patch includes a tool for loading firmware to the M4 core from Linux user space
on the i.MX6SX and i.MX7D boards.

Tested on an i.MX7D SabreSD board.

Signed-off-by: Vanessa Maegima <vanessa.maegima at nxp.com>
---
 .../imx-m4fwloader/imx-m4fwloader_0.1.bb           | 28 ++++++++++++++++++++++
 1 file changed, 28 insertions(+)
 create mode 100644 recipes-devtools/imx-m4fwloader/imx-m4fwloader_0.1.bb

diff --git a/recipes-devtools/imx-m4fwloader/imx-m4fwloader_0.1.bb b/recipes-devtools/imx-m4fwloader/imx-m4fwloader_0.1.bb
new file mode 100644
index 0000000..104c6b9
--- /dev/null
+++ b/recipes-devtools/imx-m4fwloader/imx-m4fwloader_0.1.bb
@@ -0,0 +1,28 @@
+# Copyright 2018 NXP
+
+DESCRIPTION = "Tool for loading firmware to M4 core from Linux user space"
+SECTION = "devel"
+
+LICENSE = "GPLv2.0"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=2c1c00f9d3ed9e24fa69b932b7e7aff2"
+
+SRCBRANCH = "github.com/master"
+SRC_URI = "git://source.codeaurora.org/external/imx/cafatgithub/imx-m4fwloader;protocol=https;branch=${SRCBRANCH}"
+SRCREV = "8cf4d17a09ba23250d43381b49ba00d92406fad9"
+
+SRC_URI[md5sum] = "98b49c87b4242a6c2cc3b7be6b5b46d9"
+SRC_URI[sha256sum] = "b3d5cf9a81e5ced9586d7d7b093f3d4e7166892c05383be14b21515c3d266ba9"
+
+S = "${WORKDIR}/git"
+
+do_compile() {
+	${CC} m4fwloader.c ${LDFLAGS} -o m4fwloader
+}
+
+do_install() {
+	install -m 0755 -D ${S}/m4fwloader ${D}/${bindir}/m4fwloader
+}
+
+PACKAGE_ARCH = "${MACHINE_ARCH}"
+
+COMPATIBLE_MACHINE = "(mx6sx|mx7d)"
-- 
2.7.4



More information about the meta-freescale mailing list