summaryrefslogtreecommitdiffstats
path: root/recipes-bsp/prueth-fw/prueth-fw_git.bb
blob: f7718ad2fb47c17f3190e54babc5e1dc2e24c38f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
DESCRIPTION = "PRU Ethernet firmware for AM57xx, AM437x, AM335x and K2G"

require recipes-ti/includes/ti-paths.inc
require recipes-bsp/icss-emac-lld/icss-emac-lld.inc

LICENSE = "TI-TFL"
LIC_FILES_CHKSUM = "file://icss_dualemac/src/firmware_version.h;beginline=6;endline=53;md5=1f0a640a261059cdcbbcf01e6a739ff3"

PR = "${INC_PR}.0"

TI_PDK_COMP = "ti.drv.icss_emac.firmware"

B = "${S}/icss_dualemac"

COMPATIBLE_MACHINE = "am57xx-evm|am57xx-hs-evm|ti43x|ti33x|k2g"

PACKAGE_ARCH = "${MACHINE_ARCH}"

DEPENDS = "ti-cgt-pru-native"

PRU_VERSION = ""
PRU_VERSION_ti33x = "REV1"
PRU_VERSION_ti43x = "REV1"
PRU_VERSION_am57xx-evm = "REV2"
PRU_VERSION_am57xx-hs-evm = "REV2"
PRU_VERSION_k2g = "REV2"

FW_PREFIX = ""
FW_PREFIX_ti33x = "am335x"
FW_PREFIX_ti43x = "am437x"
FW_PREFIX_am57xx-evm = "am57xx"
FW_PREFIX_am57xx-hs-evm = "am57xx"
FW_PREFIX_k2g = "k2g"

EXTRA_OEMAKE += "CL_PRU_INSTALL_PATH="${TI_CGT_PRU_INSTALL_DIR}" PRU_VERSION_LIST="${PRU_VERSION}""

do_install() {
	install -d ${D}${base_libdir}/firmware/ti-pruss
	install -m 0644 ./elf/${PRU_VERSION}/icss_dualemac_PRU0.elf \
		${D}${base_libdir}/firmware/ti-pruss/${FW_PREFIX}-pru0-prueth-fw.elf
	install -m 0644 ./elf/${PRU_VERSION}/icss_dualemac_PRU1.elf \
		${D}${base_libdir}/firmware/ti-pruss/${FW_PREFIX}-pru1-prueth-fw.elf
}

FILES_${PN} = "${base_libdir}/firmware"

INSANE_SKIP_${PN} = "arch"