[meta-ti] [master/thud/ti2019.01][PATCH v3 3/5] prueth-fw-am65xx: build am65xx prueth-fw from source
Jacob Stiffler
j-stiffler at ti.com
Wed Jun 26 08:49:51 PDT 2019
* The sources for the am65xx prueth-fw are located in within the
emac-lld sources.
Signed-off-by: Jacob Stiffler <j-stiffler at ti.com>
---
recipes-bsp/prueth-fw/prueth-fw-am65x_git.bb | 43 ++++++++++++++++++++++++++++
1 file changed, 43 insertions(+)
create mode 100644 recipes-bsp/prueth-fw/prueth-fw-am65x_git.bb
diff --git a/recipes-bsp/prueth-fw/prueth-fw-am65x_git.bb b/recipes-bsp/prueth-fw/prueth-fw-am65x_git.bb
new file mode 100644
index 0000000..17f527a
--- /dev/null
+++ b/recipes-bsp/prueth-fw/prueth-fw-am65x_git.bb
@@ -0,0 +1,43 @@
+DESCRIPTION = "PRU Ethernet firmware for AM65x"
+
+require recipes-ti/includes/ti-paths.inc
+require recipes-bsp/emac-lld/emac-lld.inc
+
+LICENSE = "TI-TFL"
+LIC_FILES_CHKSUM = "file://src/makefile;beginline=6;endline=53;md5=3f9129d208f240940749757214bdc191"
+
+PR = "r0"
+
+S = "${WORKDIR}/git/firmware/icss_dualmac"
+
+COMPATIBLE_MACHINE = "am65xx"
+
+PACKAGE_ARCH = "${MACHINE_ARCH}"
+
+DEPENDS = "ti-cgt-pru-native"
+
+EXTRA_OEMAKE += "CL_PRU_INSTALL_PATH="${TI_CGT_PRU_INSTALL_DIR}""
+
+do_compile() {
+ oe_runmake -C src
+}
+
+do_install() {
+ install -d ${D}${base_libdir}/firmware/ti-pruss
+
+ install -m 0644 bin/rxl2_txl2_rgmii0/rxl2_txl2.out \
+ ${D}${base_libdir}/firmware/ti-pruss/am65x-pru0-prueth-fw.elf
+
+ install -m 0644 bin/rtu_test0/rtu_v2.out \
+ ${D}${base_libdir}/firmware/ti-pruss/am65x-rtu0-prueth-fw.elf
+
+ install -m 0644 bin/rxl2_txl2_rgmii1/rxl2_txl2.out \
+ ${D}${base_libdir}/firmware/ti-pruss/am65x-pru1-prueth-fw.elf
+
+ install -m 0644 bin/rtu_test1/rtu_v2.out \
+ ${D}${base_libdir}/firmware/ti-pruss/am65x-rtu1-prueth-fw.elf
+}
+
+FILES_${PN} = "${base_libdir}/firmware"
+
+INSANE_SKIP_${PN} = "arch"
--
2.7.4
More information about the meta-ti
mailing list