diff options
author | Denys Dmytriyenko <denys@ti.com> | 2020-08-21 00:01:16 +0000 |
---|---|---|
committer | Denys Dmytriyenko <denys@ti.com> | 2020-08-20 18:13:28 +0000 |
commit | 3a72ba07c1551350d1703b32dc370c56843a7500 (patch) | |
tree | c58024c3e1cb280d18e391af731d3a62efe5e091 /recipes-ti | |
parent | a66d20c1b115109ad7247d0dd9ea3d259b50aad9 (diff) | |
download | meta-ti-3a72ba07c1551350d1703b32dc370c56843a7500.tar.gz |
ti-rtos-firmware: add recipe for RTOS FW binary integration
Signed-off-by: Denys Dmytriyenko <denys@ti.com>
Diffstat (limited to 'recipes-ti')
-rw-r--r-- | recipes-ti/ti-rtos-bin/files/empty | 1 | ||||
-rw-r--r-- | recipes-ti/ti-rtos-bin/ti-rtos-firmware.bb | 76 |
2 files changed, 77 insertions, 0 deletions
diff --git a/recipes-ti/ti-rtos-bin/files/empty b/recipes-ti/ti-rtos-bin/files/empty new file mode 100644 index 00000000..c6cac692 --- /dev/null +++ b/recipes-ti/ti-rtos-bin/files/empty | |||
@@ -0,0 +1 @@ | |||
empty | |||
diff --git a/recipes-ti/ti-rtos-bin/ti-rtos-firmware.bb b/recipes-ti/ti-rtos-bin/ti-rtos-firmware.bb new file mode 100644 index 00000000..9bfbe74b --- /dev/null +++ b/recipes-ti/ti-rtos-bin/ti-rtos-firmware.bb | |||
@@ -0,0 +1,76 @@ | |||
1 | SUMMARY = "TI RTOS prebuilt binary firmware images" | ||
2 | |||
3 | LICENSE = "TI-TFL" | ||
4 | LIC_FILES_CHKSUM = "file://${COREBASE}/../meta-ti/licenses/TI-TFL;md5=a1b59cb7ba626b9dbbcbf00f3fbc438a" | ||
5 | |||
6 | COMPATIBLE_MACHINE = "k3" | ||
7 | |||
8 | PACKAGE_ARCH = "${MACHINE_ARCH}" | ||
9 | |||
10 | INHIBIT_DEFAULT_DEPS = "1" | ||
11 | |||
12 | inherit deploy | ||
13 | |||
14 | # First, let's try including metadata.inc that could be fetched and deployed | ||
15 | # by ti-rtos-metadata earlier and provide new set of CORESDK_RTOS_* variables | ||
16 | include ${DEPLOY_DIR_IMAGE}/metadata.inc | ||
17 | |||
18 | # Set some defaults for when metadata.inc is not available | ||
19 | DEFAULT_RTOS_FAMILY = "jacinto" | ||
20 | DEFAULT_RTOS_VERSION = "07_01_00_02" | ||
21 | DEFAULT_RTOS_VERSION_DOT = "07.01.00.02" | ||
22 | |||
23 | DEFAULT_RTOS_SOC = "undefined" | ||
24 | DEFAULT_RTOS_SOC_j7 = "j721e" | ||
25 | DEFAULT_RTOS_SOC_j7200-evm = "j7200" | ||
26 | DEFAULT_RTOS_SOC_am65xx = "am65xx" | ||
27 | |||
28 | DEFAULT_RTOS_WEBLINK = "undefined" | ||
29 | DEFAULT_RTOS_WEBLINK_j7 = "https://software-dl.ti.com/jacinto7/esd/processor-sdk-rtos-jacinto7/firmware/${CORESDK_RTOS_VERSION}" | ||
30 | DEFAULT_RTOS_WEBLINK_am65xx = "https://software-dl.ti.com/processor-sdk-rtos/esd/AM65X/firmware/${CORESDK_RTOS_VERSION}" | ||
31 | |||
32 | DEFAULT_FIRMWARE_FILE = "coresdk_rtos_${CORESDK_RTOS_SOC}_${CORESDK_RTOS_VERSION}_firmware.tar.xz" | ||
33 | |||
34 | DEFAULT_FIRMWARE_URL = "file://empty" | ||
35 | DEFAULT_FIRMWARE_URL_k3 = "${CORESDK_RTOS_WEBLINK}/${DEFAULT_FIRMWARE_FILE}" | ||
36 | |||
37 | DEFAULT_FIRMWARE_SHA256SUM = "unknown" | ||
38 | DEFAULT_FIRMWARE_SHA256SUM_j7 = "e1e2eb0086a28468f1bb4b796571dcf1bfa23aedbb092bd02227e777a078afe3" | ||
39 | DEFAULT_FIRMWARE_SHA256SUM_j7200-evm = "218e51739c53e306cc61bbb705b3d8eeae3afb63869f2aa82a4c804f7847bd63" | ||
40 | DEFAULT_FIRMWARE_SHA256SUM_am65xx = "37188564fbb8420ba9dadb74ecf05b3aac2bf39a0e72c18c23272a141e69ace7" | ||
41 | |||
42 | # Use weak assignment for CORESDK_RTOS_* variables to use defaults if not yet set | ||
43 | CORESDK_RTOS_FAMILY ?= "${DEFAULT_RTOS_FAMILY}" | ||
44 | CORESDK_RTOS_VERSION ?= "${DEFAULT_RTOS_VERSION}" | ||
45 | CORESDK_RTOS_VERSION_DOT ?= "${DEFAULT_RTOS_VERSION_DOT}" | ||
46 | CORESDK_RTOS_SOC ?= "${DEFAULT_RTOS_SOC}" | ||
47 | CORESDK_RTOS_WEBLINK ?= "${DEFAULT_RTOS_WEBLINK}" | ||
48 | CORESDK_RTOS_FIRMWARE_URL ?= "${DEFAULT_FIRMWARE_URL}" | ||
49 | CORESDK_RTOS_FIRMWARE_SHA256SUM ?= "${DEFAULT_FIRMWARE_SHA256SUM}" | ||
50 | CORESDK_RTOS_FILE_PREFIX ?= "" | ||
51 | CORESDK_RTOS_FILE_SUFFIX ?= "" | ||
52 | |||
53 | # Common code below | ||
54 | S = "${WORKDIR}/lib/" | ||
55 | |||
56 | PV = "${CORESDK_RTOS_VERSION_DOT}" | ||
57 | |||
58 | SRC_URI = "${CORESDK_RTOS_FIRMWARE_URL}${CORESDK_RTOS_FILE_SUFFIX}" | ||
59 | SRC_URI[sha256sum] = "${CORESDK_RTOS_FIRMWARE_SHA256SUM}" | ||
60 | |||
61 | FILES_${PN} += "${base_libdir}" | ||
62 | |||
63 | do_install() { | ||
64 | CP_ARGS="-Prf --preserve=mode,timestamps --no-preserve=ownership" | ||
65 | install -d ${D}${base_libdir} | ||
66 | cp ${CP_ARGS} ${S} ${D} | ||
67 | } | ||
68 | |||
69 | FILES_${PN} = "${base_libdir}" | ||
70 | |||
71 | INHIBIT_PACKAGE_STRIP = "1" | ||
72 | INHIBIT_PACKAGE_DEBUG_SPLIT = "1" | ||
73 | INSANE_SKIP_${PN} += "arch" | ||
74 | |||
75 | do_compile[noexec] = "1" | ||
76 | do_configure[noexec] = "1" | ||