diff options
author | Denys Dmytriyenko <denys@ti.com> | 2020-08-21 00:01:15 +0000 |
---|---|---|
committer | Denys Dmytriyenko <denys@ti.com> | 2020-08-20 18:13:25 +0000 |
commit | a66d20c1b115109ad7247d0dd9ea3d259b50aad9 (patch) | |
tree | 1afdab63e7c1de9f723912560fbf2e4af65ba5c3 | |
parent | e0b51996e0058d56e4b4186867ba62a1865a9ca9 (diff) | |
download | meta-ti-a66d20c1b115109ad7247d0dd9ea3d259b50aad9.tar.gz |
ti-rtos-metadata: add recipe to fetch and deploy metadata.inc for RTOS FW binary integration
Signed-off-by: Denys Dmytriyenko <denys@ti.com>
-rw-r--r-- | recipes-ti/ti-rtos-bin/ti-rtos-metadata.bb | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/recipes-ti/ti-rtos-bin/ti-rtos-metadata.bb b/recipes-ti/ti-rtos-bin/ti-rtos-metadata.bb new file mode 100644 index 00000000..d49d7d85 --- /dev/null +++ b/recipes-ti/ti-rtos-bin/ti-rtos-metadata.bb | |||
@@ -0,0 +1,41 @@ | |||
1 | LICENSE = "BSD-3-Clause" | ||
2 | LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/BSD-3-Clause;md5=550794465ba0ec5312d6919e203a55f9" | ||
3 | |||
4 | COMPATIBLE_MACHINE = "k3" | ||
5 | |||
6 | PACKAGE_ARCH = "${MACHINE_ARCH}" | ||
7 | |||
8 | INHIBIT_DEFAULT_DEPS = "1" | ||
9 | |||
10 | inherit nopackages deploy | ||
11 | |||
12 | PLAT_SFX = "" | ||
13 | PLAT_SFX_j7 = "/j721e" | ||
14 | PLAT_SFX_j7200-evm = "/j7200" | ||
15 | PLAT_SFX_am65xx = "/am65xx" | ||
16 | |||
17 | # Use weak assignment to set defaults to TI_RTOS_METADATA_* variables | ||
18 | TI_RTOS_METADATA_URI ?= "git://git.ti.com/processor-sdk/coresdk_rtos_releases.git" | ||
19 | TI_RTOS_METADATA_PROTOCOL ?= "git" | ||
20 | TI_RTOS_METADATA_SRCREV ?= "2290c123a0c4ba4804d794c39532296a9c7b9587" | ||
21 | TI_RTOS_METADATA_BRANCH ?= "master" | ||
22 | TI_RTOS_METADATA_DIR ?= "${PLAT_SFX}" | ||
23 | TI_RTOS_METADATA_FILE ?= "${S}${TI_RTOS_METADATA_DIR}/metadata.inc" | ||
24 | |||
25 | PV = "1.0.0+git${SRCPV}" | ||
26 | |||
27 | S = "${WORKDIR}/git" | ||
28 | |||
29 | SRC_URI = "${TI_RTOS_METADATA_URI};branch=${TI_RTOS_METADATA_BRANCH};protocol=${TI_RTOS_METADATA_PROTOCOL}" | ||
30 | SRCREV = "${TI_RTOS_METADATA_SRCREV}" | ||
31 | |||
32 | do_configure[noexec] = "1" | ||
33 | do_compile[noexec] = "1" | ||
34 | do_install[noexec] = "1" | ||
35 | |||
36 | do_deploy () { | ||
37 | install -d ${DEPLOYDIR} | ||
38 | install -m 0644 ${TI_RTOS_METADATA_FILE} ${DEPLOYDIR}/ | ||
39 | } | ||
40 | |||
41 | addtask deploy before do_build after do_compile | ||