diff options
author | Yogesh Siraswar <yogeshs@ti.com> | 2021-07-15 19:50:11 +0000 |
---|---|---|
committer | Yogesh Siraswar <yogeshs@ti.com> | 2021-07-16 17:29:08 +0000 |
commit | eff643e591acfaa335cff5e148cd8c1c659711c5 (patch) | |
tree | a7dc10e708430a4a30051414a1c8f800199d625b /recipes-ti | |
parent | e287e588bb7cad17474bbfe4556b12081cc755c3 (diff) | |
download | meta-ti-eff643e591acfaa335cff5e148cd8c1c659711c5.tar.gz |
ti-rtos-firmware: update the source to ti-linux-firmware
This is temporary change to pick the 08.00.00.026 firmware from
ti-linux-firmware repos:
1) Using the ti-sci-fw to pick the latest firmware and support AUTOREV
in future
2) Kept the destination folder name same to avoid wide-spead changes to
other recipes. Since that will be changed as part of over-all clean-up
TODO:
1) Re-structure rtos firmware repo and update all dependent firmware recipes.
2) Fix the destination folder name to match src folder
Signed-off-by: Yogesh Siraswar <yogeshs@ti.com>
Diffstat (limited to 'recipes-ti')
-rw-r--r-- | recipes-ti/ti-rtos-bin/ti-rtos-firmware.bb | 114 |
1 files changed, 49 insertions, 65 deletions
diff --git a/recipes-ti/ti-rtos-bin/ti-rtos-firmware.bb b/recipes-ti/ti-rtos-bin/ti-rtos-firmware.bb index e5a4c43b..e50cb933 100644 --- a/recipes-ti/ti-rtos-bin/ti-rtos-firmware.bb +++ b/recipes-ti/ti-rtos-bin/ti-rtos-firmware.bb | |||
@@ -11,90 +11,74 @@ INHIBIT_DEFAULT_DEPS = "1" | |||
11 | 11 | ||
12 | inherit deploy | 12 | inherit deploy |
13 | 13 | ||
14 | DEFAULT_METADATA_FILE ?= "metadata.inc" | 14 | PLAT_SFX = "" |
15 | DEFAULT_METADATA_FILE_am64xx ?= "mcusdk_metadata.inc" | 15 | PLAT_SFX_j7 = "j721e" |
16 | 16 | PLAT_SFX_j7200-evm = "j7200" | |
17 | # First, let's try including metadata.inc that could be fetched and deployed | 17 | PLAT_SFX_am65xx = "am65xx" |
18 | # by ti-rtos-metadata earlier and provide new set of CORESDK_RTOS_* variables | 18 | PLAT_SFX_am64xx = "am64xx" |
19 | include ${DEPLOY_DIR_IMAGE}/${DEFAULT_METADATA_FILE} | ||
20 | |||
21 | # Set some defaults for when metadata.inc is not available | ||
22 | DEFAULT_RTOS_FAMILY = "jacinto" | ||
23 | DEFAULT_RTOS_VERSION = "07_03_00_29" | ||
24 | DEFAULT_RTOS_VERSION_DOT = "07.03.00.29" | ||
25 | |||
26 | DEFAULT_RTOS_VERSION_am64xx = "07_03_00_19" | ||
27 | DEFAULT_RTOS_VERSION_DOT_am64xx = "07.03.00.19" | ||
28 | |||
29 | DEFAULT_RTOS_VERSION_am65xx = "07_03_00_22" | ||
30 | DEFAULT_RTOS_VERSION_DOT_am65xx = "07.03.00.22" | ||
31 | |||
32 | DEFAULT_RTOS_SOC = "undefined" | ||
33 | DEFAULT_RTOS_SOC_j7 = "j721e" | ||
34 | DEFAULT_RTOS_SOC_j7200-evm = "j7200" | ||
35 | DEFAULT_RTOS_SOC_am65xx = "am65xx" | ||
36 | DEFAULT_RTOS_SOC_am64xx = "am64x" | ||
37 | |||
38 | DEFAULT_RTOS_WEBLINK = "undefined" | ||
39 | DEFAULT_RTOS_WEBLINK_j7 = "https://software-dl.ti.com/jacinto7/esd/processor-sdk-rtos-jacinto7/firmware/${CORESDK_RTOS_VERSION}" | ||
40 | DEFAULT_RTOS_WEBLINK_j7200-evm = "https://software-dl.ti.com/jacinto7/esd/processor-sdk-rtos-j7200/firmware/${CORESDK_RTOS_VERSION}" | ||
41 | DEFAULT_RTOS_WEBLINK_am65xx = "https://software-dl.ti.com/processor-sdk-rtos/esd/AM65X/firmware/${CORESDK_RTOS_VERSION}" | ||
42 | DEFAULT_RTOS_WEBLINK_am64xx = "https://software-dl.ti.com/processor-sdk-rtos/esd/AM64X/firmware/${CORESDK_RTOS_VERSION}" | ||
43 | |||
44 | DEFAULT_FIRMWARE_FILE = "coresdk_rtos_${CORESDK_RTOS_SOC}_${CORESDK_RTOS_VERSION}_firmware.tar.xz" | ||
45 | DEFAULT_FIRMWARE_FILE_am64xx = "mcu_plus_sdk_${CORESDK_RTOS_SOC}_${CORESDK_RTOS_VERSION}_firmware.tar.xz" | ||
46 | |||
47 | DEFAULT_FIRMWARE_URL = "file://empty" | ||
48 | DEFAULT_FIRMWARE_URL_k3 = "${CORESDK_RTOS_WEBLINK}/${DEFAULT_FIRMWARE_FILE}" | ||
49 | |||
50 | DEFAULT_FIRMWARE_SHA256SUM = "unknown" | ||
51 | DEFAULT_FIRMWARE_SHA256SUM_j7 = "1e306065d7273c4ac6f803d5b404ba5ff0ddd55a1afa2911944fe5e696629193" | ||
52 | DEFAULT_FIRMWARE_SHA256SUM_j7200-evm = "28fa4f5c57459ea0adc44e8c83b814a4adcfb887bee69769c5656adf628586b2" | ||
53 | DEFAULT_FIRMWARE_SHA256SUM_am65xx = "61e0be08bea8ab1055645bd96504a6a29c70318c5b277237dee9981cd94d7f79" | ||
54 | DEFAULT_FIRMWARE_SHA256SUM_am64xx = "5d1785cbdb91904a5ef3027378061041c59186c4198d7ebcfa660a1ff513d528" | ||
55 | |||
56 | # Use weak assignment for CORESDK_RTOS_* variables to use defaults if not yet set | ||
57 | CORESDK_RTOS_FAMILY ?= "${DEFAULT_RTOS_FAMILY}" | ||
58 | CORESDK_RTOS_VERSION ?= "${DEFAULT_RTOS_VERSION}" | ||
59 | CORESDK_RTOS_VERSION_DOT ?= "${DEFAULT_RTOS_VERSION_DOT}" | ||
60 | CORESDK_RTOS_SOC ?= "${DEFAULT_RTOS_SOC}" | ||
61 | CORESDK_RTOS_WEBLINK ?= "${DEFAULT_RTOS_WEBLINK}" | ||
62 | CORESDK_RTOS_FIRMWARE_URL ?= "${DEFAULT_FIRMWARE_URL}" | ||
63 | CORESDK_RTOS_FIRMWARE_SHA256SUM ?= "${DEFAULT_FIRMWARE_SHA256SUM}" | ||
64 | CORESDK_RTOS_FILE_PREFIX ?= "" | ||
65 | CORESDK_RTOS_FILE_SUFFIX ?= "" | ||
66 | |||
67 | # Common code below | ||
68 | S = "${WORKDIR}/lib" | ||
69 | |||
70 | PV = "${CORESDK_RTOS_VERSION_DOT}" | ||
71 | |||
72 | SRC_URI = "${CORESDK_RTOS_FIRMWARE_URL}${CORESDK_RTOS_FILE_SUFFIX}" | ||
73 | SRC_URI[sha256sum] = "${CORESDK_RTOS_FIRMWARE_SHA256SUM}" | ||
74 | 19 | ||
20 | require recipes-bsp/ti-sci-fw/ti-sci-fw.inc | ||
21 | |||
22 | CORESDK_RTOS_VERSION ?= "08.00.00.26" | ||
23 | PV = "${CORESDK_RTOS_VERSION}" | ||
24 | |||
25 | CLEANBROKEN = "1" | ||
26 | PR = "r1" | ||
27 | |||
28 | |||
29 | # Secure Build | ||
75 | DEPENDS += "openssl-native" | 30 | DEPENDS += "openssl-native" |
76 | 31 | ||
77 | FILES_${PN} += "${base_libdir}" | 32 | FILES_${PN} += "${base_libdir}" |
78 | 33 | ||
79 | TI_SECURE_DEV_PKG ?= "" | 34 | TI_SECURE_DEV_PKG ?= "" |
80 | 35 | ||
36 | RTOS_ETH_FW_DIR = "${S}/ti-eth/${PLAT_SFX}" | ||
37 | RTOS_DM_FW_DIR = "${S}/ti-dm/${PLAT_SFX}" | ||
38 | RTOS_IPC_FW_DIR = "${S}/ti-ipc/${PLAT_SFX}" | ||
39 | |||
40 | # For back-ward compatability keeping legacy firmware folder name | ||
41 | # TODO: fix this in next version | ||
42 | LEGACY_ETH_FW_DIR = "${D}${base_libdir}/firmware/ethfw" | ||
43 | LEGACY_IPC_FW_DIR = "${D}${base_libdir}/firmware/pdk-ipc" | ||
44 | LEGACY_DM_FW_DIR = "${D}${base_libdir}/firmware/ethfw" | ||
45 | |||
81 | DM_FIRMWARE = "ipc_echo_testb_mcu1_0_release_strip.xer5f" | 46 | DM_FIRMWARE = "ipc_echo_testb_mcu1_0_release_strip.xer5f" |
82 | 47 | ||
48 | # Install | ||
83 | do_install_prepend_j7-hs-evm() { | 49 | do_install_prepend_j7-hs-evm() { |
84 | export TI_SECURE_DEV_PKG=${TI_SECURE_DEV_PKG} | 50 | export TI_SECURE_DEV_PKG=${TI_SECURE_DEV_PKG} |
85 | ( cd ${S}/firmware/pdk-ipc/; \ | 51 | ( cd ${RTOS_DM_FW_DIR}; \ |
86 | mv ${DM_FIRMWARE} ${DM_FIRMWARE}.unsigned; \ | 52 | mv ${DM_FIRMWARE} ${DM_FIRMWARE}.unsigned; \ |
87 | ${TI_SECURE_DEV_PKG}/scripts/secure-binary-image.sh ${DM_FIRMWARE}.unsigned ${DM_FIRMWARE}; \ | 53 | ${TI_SECURE_DEV_PKG}/scripts/secure-binary-image.sh ${DM_FIRMWARE}.unsigned ${DM_FIRMWARE}; \ |
88 | ) | 54 | ) |
89 | } | 55 | } |
90 | 56 | ||
91 | do_install() { | 57 | do_install() { |
92 | CP_ARGS="-Prf --preserve=mode,timestamps --no-preserve=ownership" | 58 | CP_ARGS="-Prf --preserve=mode,timestamps --no-preserve=ownership" |
93 | install -d ${D}${base_libdir} | 59 | install -d ${LEGACY_ETH_FW_DIR} |
94 | cp ${CP_ARGS} ${S} ${D} | 60 | install -d ${LEGACY_IPC_FW_DIR} |
61 | cp ${CP_ARGS} "${RTOS_ETH_FW_DIR}/." ${LEGACY_ETH_FW_DIR} | ||
62 | cp ${CP_ARGS} "${RTOS_IPC_FW_DIR}/." ${LEGACY_IPC_FW_DIR} | ||
63 | cp ${CP_ARGS} "${RTOS_DM_FW_DIR}/." ${LEGACY_IPC_FW_DIR} | ||
95 | } | 64 | } |
96 | 65 | ||
97 | FILES_${PN} = "${base_libdir}" | 66 | do_install_am65xx() { |
67 | CP_ARGS="-Prf --preserve=mode,timestamps --no-preserve=ownership" | ||
68 | install -d ${LEGACY_IPC_FW_DIR} | ||
69 | cp ${CP_ARGS} "${RTOS_IPC_FW_DIR}/." ${LEGACY_IPC_FW_DIR} | ||
70 | } | ||
71 | |||
72 | do_install_am64xx() { | ||
73 | CP_ARGS="-Prf --preserve=mode,timestamps --no-preserve=ownership" | ||
74 | install -d ${LEGACY_IPC_FW_DIR} | ||
75 | cp ${CP_ARGS} "${RTOS_IPC_FW_DIR}/." ${LEGACY_IPC_FW_DIR} | ||
76 | } | ||
77 | |||
78 | |||
79 | # make sure that lib/firmware, and all its contents are part of the package | ||
80 | FILES_${PN} += "${base_libdir}/firmware" | ||
81 | |||
98 | 82 | ||
99 | INHIBIT_PACKAGE_STRIP = "1" | 83 | INHIBIT_PACKAGE_STRIP = "1" |
100 | INHIBIT_PACKAGE_DEBUG_SPLIT = "1" | 84 | INHIBIT_PACKAGE_DEBUG_SPLIT = "1" |