From 3db629082bca3c6dd6f052e30a2428dd51d28f3a Mon Sep 17 00:00:00 2001 From: Jacob Stiffler Date: Wed, 26 Jun 2019 21:49:51 +0000 Subject: prueth-fw-am65xx: build am65xx prueth-fw from source * The sources for the am65xx prueth-fw are located in within the emac-lld sources. Signed-off-by: Jacob Stiffler Signed-off-by: Denys Dmytriyenko --- 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 00000000..08ef7f06 --- /dev/null +++ b/recipes-bsp/prueth-fw/prueth-fw-am65x_git.bb @@ -0,0 +1,43 @@ +SUMMARY = "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" -- cgit v1.2.3-54-g00ecf