summaryrefslogtreecommitdiffstats
path: root/recipes-bsp
diff options
context:
space:
mode:
authorYogesh Siraswar <yogeshs@ti.com>2021-11-19 22:25:59 -0500
committerRyan Eatmon <reatmon@ti.com>2021-12-15 11:40:51 -0600
commit8ab51d9a5d5fd6198a5ce12a84c1ba31d4ef3827 (patch)
treef18b3dec556996cb65eac9aa169a77d9d64f0bfa /recipes-bsp
parent8fc0161e6828b05c065ff08836217737de089511 (diff)
downloadmeta-ti-8ab51d9a5d5fd6198a5ce12a84c1ba31d4ef3827.tar.gz
ti-sci-fw: changes to build combined boot image for hs build
Added support to build combined boot image for hs build. This required k3 image gen patch that is already merged. Signed-off-by: Yogesh Siraswar <yogeshs@ti.com> Signed-off-by: Denys Dmytriyenko <denys@konsulko.com> Signed-off-by: Ryan Eatmon <reatmon@ti.com>
Diffstat (limited to 'recipes-bsp')
-rw-r--r--recipes-bsp/ti-sci-fw/ti-sci-fw_git.bb21
1 files changed, 19 insertions, 2 deletions
diff --git a/recipes-bsp/ti-sci-fw/ti-sci-fw_git.bb b/recipes-bsp/ti-sci-fw/ti-sci-fw_git.bb
index 4fa8f1f6..dd0ce090 100644
--- a/recipes-bsp/ti-sci-fw/ti-sci-fw_git.bb
+++ b/recipes-bsp/ti-sci-fw/ti-sci-fw_git.bb
@@ -3,9 +3,10 @@ require recipes-bsp/ti-linux-fw/ti-linux-fw.inc
3DEPENDS = "openssl-native u-boot-mkimage-native dtc-native" 3DEPENDS = "openssl-native u-boot-mkimage-native dtc-native"
4DEPENDS:append:j7200-evm-k3r5 = " virtual/bootloader" 4DEPENDS:append:j7200-evm-k3r5 = " virtual/bootloader"
5DEPENDS:append:am64xx-evm-k3r5 = " virtual/bootloader" 5DEPENDS:append:am64xx-evm-k3r5 = " virtual/bootloader"
6DEPENDS:append:am64xx-hs-evm-k3r5 = " virtual/bootloader"
6 7
7CLEANBROKEN = "1" 8CLEANBROKEN = "1"
8PR = "${INC_PR}.0" 9PR = "${INC_PR}.1"
9 10
10# Loaded by R5F core 11# Loaded by R5F core
11COMPATIBLE_MACHINE = "k3r5" 12COMPATIBLE_MACHINE = "k3r5"
@@ -48,12 +49,13 @@ EXTRA_OEMAKE = "\
48 SYSFW_PATH="${SYSFW_TISCI}" SOC=${SYSFW_SOC} CONFIG=${SYSFW_CONFIG} \ 49 SYSFW_PATH="${SYSFW_TISCI}" SOC=${SYSFW_SOC} CONFIG=${SYSFW_CONFIG} \
49" 50"
50EXTRA_OEMAKE_HS = " \ 51EXTRA_OEMAKE_HS = " \
51 HS=1 SYSFW_HS_PATH="${S}/ti-sysfw/${SYSFW_BASE}-enc.bin" SYSFW_HS_INNER_CERT_PATH="${S}/ti-sysfw/${SYSFW_BASE}-cert.bin" \ 52 HS=1 SW_REV=1 SYSFW_HS_PATH="${S}/ti-sysfw/${SYSFW_BASE}-enc.bin" SYSFW_HS_INNER_CERT_PATH="${S}/ti-sysfw/${SYSFW_BASE}-cert.bin" \
52" 53"
53EXTRA_OEMAKE:append = "${@['',' ${EXTRA_OEMAKE_HS}']['${SYSFW_SUFFIX}' == 'hs']}" 54EXTRA_OEMAKE:append = "${@['',' ${EXTRA_OEMAKE_HS}']['${SYSFW_SUFFIX}' == 'hs']}"
54 55
55EXTRA_OEMAKE:append:j7200-evm-k3r5 = " SBL="${STAGING_DIR_HOST}/boot/u-boot-spl.bin"" 56EXTRA_OEMAKE:append:j7200-evm-k3r5 = " SBL="${STAGING_DIR_HOST}/boot/u-boot-spl.bin""
56EXTRA_OEMAKE:append:am64xx-evm-k3r5 = " SBL="${STAGING_DIR_HOST}/boot/u-boot-spl.bin"" 57EXTRA_OEMAKE:append:am64xx-evm-k3r5 = " SBL="${STAGING_DIR_HOST}/boot/u-boot-spl.bin""
58EXTRA_OEMAKE:append:am64xx-hs-evm-k3r5 = " SBL="${STAGING_DIR_HOST}/boot/u-boot-spl.bin""
57 59
58do_compile() { 60do_compile() {
59 cd ${WORKDIR}/imggen/ 61 cd ${WORKDIR}/imggen/
@@ -116,4 +118,19 @@ do_deploy:am64xx-evm-k3r5() {
116 install -m 644 ${SYSFW_TISCI} ${DEPLOYDIR}/ 118 install -m 644 ${SYSFW_TISCI} ${DEPLOYDIR}/
117} 119}
118 120
121do_install:am64xx-hs-evm-k3r5() {
122 install -d ${D}/boot
123 install -m 644 ${WORKDIR}/imggen/${UBOOT_BINARY} ${D}/boot/${UBOOT_IMAGE}
124 ln -sf ${UBOOT_IMAGE} ${D}/boot/${UBOOT_SYMLINK}
125 ln -sf ${UBOOT_IMAGE} ${D}/boot/${UBOOT_BINARY}
126}
127
128do_deploy:am64xx-hs-evm-k3r5() {
129 install -d ${DEPLOYDIR}
130 install -m 644 ${WORKDIR}/imggen/${UBOOT_BINARY} ${DEPLOYDIR}/${UBOOT_IMAGE}
131 ln -sf ${UBOOT_IMAGE} ${DEPLOYDIR}/${UBOOT_SYMLINK}
132 ln -sf ${UBOOT_IMAGE} ${DEPLOYDIR}/${UBOOT_BINARY}
133 install -m 644 ${SYSFW_TISCI} ${DEPLOYDIR}/
134}
135
119addtask deploy before do_build after do_compile 136addtask deploy before do_build after do_compile