diff options
| author | Lokesh Vutla <lokeshvutla@ti.com> | 2020-08-26 10:56:24 +0000 |
|---|---|---|
| committer | Denys Dmytriyenko <denys@ti.com> | 2020-08-27 17:57:15 +0000 |
| commit | f8f5bdbdca3d66c8a86dd96786d993256521a42e (patch) | |
| tree | 3ebd61c9748540946d3f0156ce301ef34f8c5714 | |
| parent | 717ae974f9aa2aeb4215e3581b8f22c1ef590150 (diff) | |
| download | meta-ti-f8f5bdbdca3d66c8a86dd96786d993256521a42e.tar.gz | |
prueth-fw: Package the firmware images from ti-linux-firmware
Directly take the images from ti-linux-firmware instead of using pdk
Aldo drop build for k2g as firmwares are not yet available.
Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
Signed-off-by: Denys Dmytriyenko <denys@ti.com>
| -rw-r--r-- | recipes-bsp/prueth-fw/prueth-fw_5.2.7.bb | 37 | ||||
| -rw-r--r-- | recipes-bsp/prueth-fw/prueth-fw_git.bb | 47 | ||||
| -rw-r--r-- | recipes-kernel/linux/linux-ti-staging_5.4.bb | 1 |
3 files changed, 37 insertions, 48 deletions
diff --git a/recipes-bsp/prueth-fw/prueth-fw_5.2.7.bb b/recipes-bsp/prueth-fw/prueth-fw_5.2.7.bb new file mode 100644 index 00000000..2840b2f1 --- /dev/null +++ b/recipes-bsp/prueth-fw/prueth-fw_5.2.7.bb | |||
| @@ -0,0 +1,37 @@ | |||
| 1 | SUMMARY = "PRU Ethernet firmware for AM57xx, AM437x and AM335x" | ||
| 2 | |||
| 3 | LICENSE = "TI-TFL" | ||
| 4 | LIC_FILES_CHKSUM = "file://LICENSE.ti;md5=b5aebf0668bdf95621259288c4a46d76" | ||
| 5 | |||
| 6 | PR = "r0" | ||
| 7 | |||
| 8 | CLEANBROKEN = "1" | ||
| 9 | |||
| 10 | COMPATIBLE_MACHINE = "ti33x|ti43x|am57xx-evm|am57xx-hs-evm" | ||
| 11 | |||
| 12 | PACKAGE_ARCH = "${MACHINE_ARCH}" | ||
| 13 | |||
| 14 | SRCREV = "7ba9722b74608ad4472790972917e1205eb3c049" | ||
| 15 | BRANCH ?= "ti-linux-firmware" | ||
| 16 | |||
| 17 | SRC_URI = "git://git.ti.com/processor-firmware/ti-linux-firmware.git;protocol=git;branch=${BRANCH}" | ||
| 18 | |||
| 19 | S = "${WORKDIR}/git" | ||
| 20 | |||
| 21 | TARGET = "" | ||
| 22 | TARGET_ti33x = "am335x-pru0-prueth-fw.elf am335x-pru1-prueth-fw.elf" | ||
| 23 | TARGET_ti43x = "am437x-pru0-prueth-fw.elf am437x-pru1-prueth-fw.elf" | ||
| 24 | TARGET_am57xx-evm = "am57xx-pru0-prueth-fw.elf am57xx-pru1-prueth-fw.elf" | ||
| 25 | TARGET_am57xx-hs-evm = "am57xx-pru0-prueth-fw.elf am57xx-pru1-prueth-fw.elf" | ||
| 26 | |||
| 27 | do_install() { | ||
| 28 | install -d ${D}${base_libdir}/firmware/ti-pruss | ||
| 29 | for f in ${TARGET}; do | ||
| 30 | install -m 0644 ${S}/ti-pruss/$f ${D}${base_libdir}/firmware/ti-pruss/$f | ||
| 31 | done | ||
| 32 | } | ||
| 33 | |||
| 34 | |||
| 35 | FILES_${PN} = "${base_libdir}/firmware" | ||
| 36 | |||
| 37 | INSANE_SKIP_${PN} = "arch" | ||
diff --git a/recipes-bsp/prueth-fw/prueth-fw_git.bb b/recipes-bsp/prueth-fw/prueth-fw_git.bb deleted file mode 100644 index f7718ad2..00000000 --- a/recipes-bsp/prueth-fw/prueth-fw_git.bb +++ /dev/null | |||
| @@ -1,47 +0,0 @@ | |||
| 1 | DESCRIPTION = "PRU Ethernet firmware for AM57xx, AM437x, AM335x and K2G" | ||
| 2 | |||
| 3 | require recipes-ti/includes/ti-paths.inc | ||
| 4 | require recipes-bsp/icss-emac-lld/icss-emac-lld.inc | ||
| 5 | |||
| 6 | LICENSE = "TI-TFL" | ||
| 7 | LIC_FILES_CHKSUM = "file://icss_dualemac/src/firmware_version.h;beginline=6;endline=53;md5=1f0a640a261059cdcbbcf01e6a739ff3" | ||
| 8 | |||
| 9 | PR = "${INC_PR}.0" | ||
| 10 | |||
| 11 | TI_PDK_COMP = "ti.drv.icss_emac.firmware" | ||
| 12 | |||
| 13 | B = "${S}/icss_dualemac" | ||
| 14 | |||
| 15 | COMPATIBLE_MACHINE = "am57xx-evm|am57xx-hs-evm|ti43x|ti33x|k2g" | ||
| 16 | |||
| 17 | PACKAGE_ARCH = "${MACHINE_ARCH}" | ||
| 18 | |||
| 19 | DEPENDS = "ti-cgt-pru-native" | ||
| 20 | |||
| 21 | PRU_VERSION = "" | ||
| 22 | PRU_VERSION_ti33x = "REV1" | ||
| 23 | PRU_VERSION_ti43x = "REV1" | ||
| 24 | PRU_VERSION_am57xx-evm = "REV2" | ||
| 25 | PRU_VERSION_am57xx-hs-evm = "REV2" | ||
| 26 | PRU_VERSION_k2g = "REV2" | ||
| 27 | |||
| 28 | FW_PREFIX = "" | ||
| 29 | FW_PREFIX_ti33x = "am335x" | ||
| 30 | FW_PREFIX_ti43x = "am437x" | ||
| 31 | FW_PREFIX_am57xx-evm = "am57xx" | ||
| 32 | FW_PREFIX_am57xx-hs-evm = "am57xx" | ||
| 33 | FW_PREFIX_k2g = "k2g" | ||
| 34 | |||
| 35 | EXTRA_OEMAKE += "CL_PRU_INSTALL_PATH="${TI_CGT_PRU_INSTALL_DIR}" PRU_VERSION_LIST="${PRU_VERSION}"" | ||
| 36 | |||
| 37 | do_install() { | ||
| 38 | install -d ${D}${base_libdir}/firmware/ti-pruss | ||
| 39 | install -m 0644 ./elf/${PRU_VERSION}/icss_dualemac_PRU0.elf \ | ||
| 40 | ${D}${base_libdir}/firmware/ti-pruss/${FW_PREFIX}-pru0-prueth-fw.elf | ||
| 41 | install -m 0644 ./elf/${PRU_VERSION}/icss_dualemac_PRU1.elf \ | ||
| 42 | ${D}${base_libdir}/firmware/ti-pruss/${FW_PREFIX}-pru1-prueth-fw.elf | ||
| 43 | } | ||
| 44 | |||
| 45 | FILES_${PN} = "${base_libdir}/firmware" | ||
| 46 | |||
| 47 | INSANE_SKIP_${PN} = "arch" | ||
diff --git a/recipes-kernel/linux/linux-ti-staging_5.4.bb b/recipes-kernel/linux/linux-ti-staging_5.4.bb index 3a4fdd86..2a35bf1d 100644 --- a/recipes-kernel/linux/linux-ti-staging_5.4.bb +++ b/recipes-kernel/linux/linux-ti-staging_5.4.bb | |||
| @@ -48,7 +48,6 @@ RDEPENDS_${KERNEL_PACKAGE_NAME}-base_append_am57xx-evm = " prueth-fw prusw-fw pr | |||
| 48 | RDEPENDS_${KERNEL_PACKAGE_NAME}-base_append_am57xx-hs-evm = " prueth-fw prusw-fw pruhsr-fw pruprp-fw" | 48 | RDEPENDS_${KERNEL_PACKAGE_NAME}-base_append_am57xx-hs-evm = " prueth-fw prusw-fw pruhsr-fw pruprp-fw" |
| 49 | RDEPENDS_${KERNEL_PACKAGE_NAME}-base_append_ti43x = " prueth-fw pruhsr-fw pruprp-fw" | 49 | RDEPENDS_${KERNEL_PACKAGE_NAME}-base_append_ti43x = " prueth-fw pruhsr-fw pruprp-fw" |
| 50 | RDEPENDS_${KERNEL_PACKAGE_NAME}-base_append_ti33x = " prueth-fw pruhsr-fw pruprp-fw" | 50 | RDEPENDS_${KERNEL_PACKAGE_NAME}-base_append_ti33x = " prueth-fw pruhsr-fw pruprp-fw" |
| 51 | RDEPENDS_${KERNEL_PACKAGE_NAME}-base_append_k2g = " prueth-fw" | ||
| 52 | RDEPENDS_${KERNEL_PACKAGE_NAME}-base_append_am65xx = " prueth-fw-am65x" | 51 | RDEPENDS_${KERNEL_PACKAGE_NAME}-base_append_am65xx = " prueth-fw-am65x" |
| 53 | RDEPENDS_${KERNEL_PACKAGE_NAME}-base_append_am65xx-evm = " prueth-fw-am65x-sr2" | 52 | RDEPENDS_${KERNEL_PACKAGE_NAME}-base_append_am65xx-evm = " prueth-fw-am65x-sr2" |
| 54 | 53 | ||
