ti-rtos-metadata: add recipe to fetch and deploy metadata.inc for RTOS FW binary integration
PATCH 1/2 ti-rtos-metadata: add recipe to fetch and deploy metadata.inc for RTOS FW binary integration
From: Denys Dmytriyenko <[email protected]>
--- recipes-ti/ti-rtos-bin/ti-rtos-metadata.bb | 41 ++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 recipes-ti/ti-rtos-bin/ti-rtos-metadata.bb
recipes-ti/ti-rtos-bin/ti-rtos-metadata.bb new file +41 -0
@@ -0,0 +1,41 @@ +LICENSE = "BSD-3-Clause" +LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/BSD-3-Clause;md5=550794465ba0ec5312d6919e203a55f9" + +COMPATIBLE_MACHINE = "k3" + +PACKAGE_ARCH = "${MACHINE_ARCH}" + +INHIBIT_DEFAULT_DEPS = "1" + +inherit nopackages deploy + +PLAT_SFX = "" +PLAT_SFX_j7 = "/j721e" +PLAT_SFX_j7200-evm = "/j7200" +PLAT_SFX_am65xx = "/am65xx" + +# Use weak assignment to set defaults to TI_RTOS_METADATA_* variables +TI_RTOS_METADATA_URI ?= "git://git.ti.com/processor-sdk/coresdk_rtos_releases.git" +TI_RTOS_METADATA_PROTOCOL ?= "git" +TI_RTOS_METADATA_SRCREV ?= "2290c123a0c4ba4804d794c39532296a9c7b9587" +TI_RTOS_METADATA_BRANCH ?= "master" +TI_RTOS_METADATA_DIR ?= "${PLAT_SFX}" +TI_RTOS_METADATA_FILE ?= "${S}${TI_RTOS_METADATA_DIR}/metadata.inc" + +PV = "1.0.0" + +S = "${WORKDIR}/git" + +SRC_URI = "${TI_RTOS_METADATA_URI};branch=${TI_RTOS_METADATA_BRANCH};protocol=${TI_RTOS_METADATA_PROTOCOL}" +SRCREV = "${TI_RTOS_METADATA_SRCREV}" + +do_configure[noexec] = "1" +do_compile[noexec] = "1" +do_install[noexec] = "1" + +do_deploy () { + install -d ${DEPLOYDIR} + install -m 0644 ${TI_RTOS_METADATA_FILE} ${DEPLOYDIR}/ +} + +addtask deploy before do_build after do_compile
Signature · 1 line
2.7.4
PATCH 2/2 ti-rtos-firmware: add recipe for RTOS FW binary integration
From: Denys Dmytriyenko <[email protected]>
--- recipes-ti/ti-rtos-bin/files/empty | 1 + recipes-ti/ti-rtos-bin/ti-rtos-firmware.bb | 85 ++++++++++++++++++++++++++++++ 2 files changed, 86 insertions(+) create mode 100644 recipes-ti/ti-rtos-bin/files/empty create mode 100644 recipes-ti/ti-rtos-bin/ti-rtos-firmware.bb
recipes-ti/ti-rtos-bin/files/empty new file +1 -0
@@ -0,0 +1 @@ +empty
recipes-ti/ti-rtos-bin/ti-rtos-firmware.bb new file +85 -0
85 lines not on this page · raw message
Signature · 1 line
2.7.4
Quoted 29 lines · Denys Dmytriyenko
From: Denys Dmytriyenko <[email protected]>
Signed-off-by Denys Dmytriyenko <[email protected]>--- recipes-ti/ti-rtos-bin/ti-rtos-metadata.bb | 41 ++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+)create mode 100644 recipes-ti/ti-rtos-bin/ti-rtos-metadata.bb
recipes-ti/ti-rtos-bin/ti-rtos-metadata.bb new file +15
-0@@ -0,0 +1,41 @@ +LICENSE = "BSD-3-Clause" +LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/BSD-3-Clause;md5=550794465ba0ec5312d6919e203a55f9" + +COMPATIBLE_MACHINE = "k3" + +PACKAGE_ARCH = "${MACHINE_ARCH}" + +INHIBIT_DEFAULT_DEPS = "1" + +inherit nopackages deploy + +PLAT_SFX = "" +PLAT_SFX_j7 = "/j721e" +PLAT_SFX_j7200-evm = "/j7200" +PLAT_SFX_am65xx = "/am65xx"
recipes-ti/ti-rtos-bin/ti-rtos-metadata.bb line 25
Quoted 10 lines
recipes-ti/ti-rtos-bin/ti-rtos-metadata.bb new file +10
-0+ +# Use weak assignment to set defaults to TI_RTOS_METADATA_* variables +TI_RTOS_METADATA_URI ?= "git://git.ti.com/processor-sdk/coresdk_rtos_releases.git" +TI_RTOS_METADATA_PROTOCOL ?= "git" +TI_RTOS_METADATA_SRCREV ?= "2290c123a0c4ba4804d794c39532296a9c7b9587" +TI_RTOS_METADATA_BRANCH ?= "master" +TI_RTOS_METADATA_DIR ?= "${PLAT_SFX}" +TI_RTOS_METADATA_FILE ?= "${S}${TI_RTOS_METADATA_DIR}/metadata.inc" + +PV = "1.0.0"
Since this may be set to AUTOREV, I would suggest adding SRCPV here. This will help track to exact version as well as ensure that the remote is checked upon each build and that the commit ID is not just cached.
Quoted 18 lines
recipes-ti/ti-rtos-bin/ti-rtos-metadata.bb new file +16
-0+ +S = "${WORKDIR}/git" + +SRC_URI = "${TI_RTOS_METADATA_URI};branch=${TI_RTOS_METADATA_BRANCH};protocol=${TI_RTOS_METADATA_PROTOCOL}" +SRCREV = "${TI_RTOS_METADATA_SRCREV}" + +do_configure[noexec] = "1" +do_compile[noexec] = "1" +do_install[noexec] = "1" + +do_deploy () { + install -d ${DEPLOYDIR} + install -m 0644 ${TI_RTOS_METADATA_FILE} ${DEPLOYDIR}/ +} + +addtask deploy before do_build after do_compile
Quoted 37 lines · Jacob Stiffler
Quoted 35 lines · Denys Dmytriyenko
From: Denys Dmytriyenko <[email protected]>
Signed-off-by Denys Dmytriyenko <[email protected]>--- recipes-ti/ti-rtos-bin/ti-rtos-metadata.bb | 41 ++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 recipes-ti/ti-rtos-bin/ti-rtos-metadata.bbrecipes-ti/ti-rtos-bin/ti-rtos-metadata.bb new file +21
-0@@ -0,0 +1,41 @@ +LICENSE = "BSD-3-Clause" +LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/BSD-3-Clause;md5=550794465ba0ec5312d6919e203a55f9" + +COMPATIBLE_MACHINE = "k3" + +PACKAGE_ARCH = "${MACHINE_ARCH}" + +INHIBIT_DEFAULT_DEPS = "1" + +inherit nopackages deploy + +PLAT_SFX = "" +PLAT_SFX_j7 = "/j721e" +PLAT_SFX_j7200-evm = "/j7200" +PLAT_SFX_am65xx = "/am65xx" + +# Use weak assignment to set defaults to TI_RTOS_METADATA_* variables +TI_RTOS_METADATA_URI ?= "git://git.ti.com/processor-sdk/coresdk_rtos_releases.git" +TI_RTOS_METADATA_PROTOCOL ?= "git" +TI_RTOS_METADATA_SRCREV ?= "2290c123a0c4ba4804d794c39532296a9c7b9587" +TI_RTOS_METADATA_BRANCH ?= "master"
Quoted 8 lines
recipes-ti/ti-rtos-bin/ti-rtos-metadata.bb line 25
Quoted 4 lines
recipes-ti/ti-rtos-bin/ti-rtos-metadata.bb new file +4
-0+TI_RTOS_METADATA_DIR ?= "${PLAT_SFX}" +TI_RTOS_METADATA_FILE ?= "${S}${TI_RTOS_METADATA_DIR}/metadata.inc" + +PV = "1.0.0"Since this may be set to AUTOREV, I would suggest adding SRCPV here. This will help track to exact version as well as ensure that the remote is checked upon each build and that the commit ID is not just cached.
Sounds good, thanks.
Quoted 17 lines
Quoted 17 lines
recipes-ti/ti-rtos-bin/ti-rtos-metadata.bb new file +15
-0+S = "${WORKDIR}/git" + +SRC_URI = "${TI_RTOS_METADATA_URI};branch=${TI_RTOS_METADATA_BRANCH};protocol=${TI_RTOS_METADATA_PROTOCOL}" +SRCREV = "${TI_RTOS_METADATA_SRCREV}" + +do_configure[noexec] = "1" +do_compile[noexec] = "1" +do_install[noexec] = "1" + +do_deploy () { + install -d ${DEPLOYDIR} + install -m 0644 ${TI_RTOS_METADATA_FILE} ${DEPLOYDIR}/ +} + +addtask deploy before do_build after do_compile