summaryrefslogtreecommitdiffstats
path: root/recipes-ti
diff options
context:
space:
mode:
authorDenys Dmytriyenko <denys@ti.com>2020-08-21 00:01:16 +0000
committerDenys Dmytriyenko <denys@ti.com>2020-08-20 18:13:28 +0000
commit3a72ba07c1551350d1703b32dc370c56843a7500 (patch)
treec58024c3e1cb280d18e391af731d3a62efe5e091 /recipes-ti
parenta66d20c1b115109ad7247d0dd9ea3d259b50aad9 (diff)
downloadmeta-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/empty1
-rw-r--r--recipes-ti/ti-rtos-bin/ti-rtos-firmware.bb76
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 @@
1SUMMARY = "TI RTOS prebuilt binary firmware images"
2
3LICENSE = "TI-TFL"
4LIC_FILES_CHKSUM = "file://${COREBASE}/../meta-ti/licenses/TI-TFL;md5=a1b59cb7ba626b9dbbcbf00f3fbc438a"
5
6COMPATIBLE_MACHINE = "k3"
7
8PACKAGE_ARCH = "${MACHINE_ARCH}"
9
10INHIBIT_DEFAULT_DEPS = "1"
11
12inherit 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
16include ${DEPLOY_DIR_IMAGE}/metadata.inc
17
18# Set some defaults for when metadata.inc is not available
19DEFAULT_RTOS_FAMILY = "jacinto"
20DEFAULT_RTOS_VERSION = "07_01_00_02"
21DEFAULT_RTOS_VERSION_DOT = "07.01.00.02"
22
23DEFAULT_RTOS_SOC = "undefined"
24DEFAULT_RTOS_SOC_j7 = "j721e"
25DEFAULT_RTOS_SOC_j7200-evm = "j7200"
26DEFAULT_RTOS_SOC_am65xx = "am65xx"
27
28DEFAULT_RTOS_WEBLINK = "undefined"
29DEFAULT_RTOS_WEBLINK_j7 = "https://software-dl.ti.com/jacinto7/esd/processor-sdk-rtos-jacinto7/firmware/${CORESDK_RTOS_VERSION}"
30DEFAULT_RTOS_WEBLINK_am65xx = "https://software-dl.ti.com/processor-sdk-rtos/esd/AM65X/firmware/${CORESDK_RTOS_VERSION}"
31
32DEFAULT_FIRMWARE_FILE = "coresdk_rtos_${CORESDK_RTOS_SOC}_${CORESDK_RTOS_VERSION}_firmware.tar.xz"
33
34DEFAULT_FIRMWARE_URL = "file://empty"
35DEFAULT_FIRMWARE_URL_k3 = "${CORESDK_RTOS_WEBLINK}/${DEFAULT_FIRMWARE_FILE}"
36
37DEFAULT_FIRMWARE_SHA256SUM = "unknown"
38DEFAULT_FIRMWARE_SHA256SUM_j7 = "e1e2eb0086a28468f1bb4b796571dcf1bfa23aedbb092bd02227e777a078afe3"
39DEFAULT_FIRMWARE_SHA256SUM_j7200-evm = "218e51739c53e306cc61bbb705b3d8eeae3afb63869f2aa82a4c804f7847bd63"
40DEFAULT_FIRMWARE_SHA256SUM_am65xx = "37188564fbb8420ba9dadb74ecf05b3aac2bf39a0e72c18c23272a141e69ace7"
41
42# Use weak assignment for CORESDK_RTOS_* variables to use defaults if not yet set
43CORESDK_RTOS_FAMILY ?= "${DEFAULT_RTOS_FAMILY}"
44CORESDK_RTOS_VERSION ?= "${DEFAULT_RTOS_VERSION}"
45CORESDK_RTOS_VERSION_DOT ?= "${DEFAULT_RTOS_VERSION_DOT}"
46CORESDK_RTOS_SOC ?= "${DEFAULT_RTOS_SOC}"
47CORESDK_RTOS_WEBLINK ?= "${DEFAULT_RTOS_WEBLINK}"
48CORESDK_RTOS_FIRMWARE_URL ?= "${DEFAULT_FIRMWARE_URL}"
49CORESDK_RTOS_FIRMWARE_SHA256SUM ?= "${DEFAULT_FIRMWARE_SHA256SUM}"
50CORESDK_RTOS_FILE_PREFIX ?= ""
51CORESDK_RTOS_FILE_SUFFIX ?= ""
52
53# Common code below
54S = "${WORKDIR}/lib/"
55
56PV = "${CORESDK_RTOS_VERSION_DOT}"
57
58SRC_URI = "${CORESDK_RTOS_FIRMWARE_URL}${CORESDK_RTOS_FILE_SUFFIX}"
59SRC_URI[sha256sum] = "${CORESDK_RTOS_FIRMWARE_SHA256SUM}"
60
61FILES_${PN} += "${base_libdir}"
62
63do_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
69FILES_${PN} = "${base_libdir}"
70
71INHIBIT_PACKAGE_STRIP = "1"
72INHIBIT_PACKAGE_DEBUG_SPLIT = "1"
73INSANE_SKIP_${PN} += "arch"
74
75do_compile[noexec] = "1"
76do_configure[noexec] = "1"