diff options
author | Yogesh Siraswar <yogeshs@ti.com> | 2021-11-19 22:25:59 -0500 |
---|---|---|
committer | Ryan Eatmon <reatmon@ti.com> | 2021-12-15 11:40:51 -0600 |
commit | 8ab51d9a5d5fd6198a5ce12a84c1ba31d4ef3827 (patch) | |
tree | f18b3dec556996cb65eac9aa169a77d9d64f0bfa /recipes-bsp | |
parent | 8fc0161e6828b05c065ff08836217737de089511 (diff) | |
download | meta-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.bb | 21 |
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 | |||
3 | DEPENDS = "openssl-native u-boot-mkimage-native dtc-native" | 3 | DEPENDS = "openssl-native u-boot-mkimage-native dtc-native" |
4 | DEPENDS:append:j7200-evm-k3r5 = " virtual/bootloader" | 4 | DEPENDS:append:j7200-evm-k3r5 = " virtual/bootloader" |
5 | DEPENDS:append:am64xx-evm-k3r5 = " virtual/bootloader" | 5 | DEPENDS:append:am64xx-evm-k3r5 = " virtual/bootloader" |
6 | DEPENDS:append:am64xx-hs-evm-k3r5 = " virtual/bootloader" | ||
6 | 7 | ||
7 | CLEANBROKEN = "1" | 8 | CLEANBROKEN = "1" |
8 | PR = "${INC_PR}.0" | 9 | PR = "${INC_PR}.1" |
9 | 10 | ||
10 | # Loaded by R5F core | 11 | # Loaded by R5F core |
11 | COMPATIBLE_MACHINE = "k3r5" | 12 | COMPATIBLE_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 | " |
50 | EXTRA_OEMAKE_HS = " \ | 51 | EXTRA_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 | " |
53 | EXTRA_OEMAKE:append = "${@['',' ${EXTRA_OEMAKE_HS}']['${SYSFW_SUFFIX}' == 'hs']}" | 54 | EXTRA_OEMAKE:append = "${@['',' ${EXTRA_OEMAKE_HS}']['${SYSFW_SUFFIX}' == 'hs']}" |
54 | 55 | ||
55 | EXTRA_OEMAKE:append:j7200-evm-k3r5 = " SBL="${STAGING_DIR_HOST}/boot/u-boot-spl.bin"" | 56 | EXTRA_OEMAKE:append:j7200-evm-k3r5 = " SBL="${STAGING_DIR_HOST}/boot/u-boot-spl.bin"" |
56 | EXTRA_OEMAKE:append:am64xx-evm-k3r5 = " SBL="${STAGING_DIR_HOST}/boot/u-boot-spl.bin"" | 57 | EXTRA_OEMAKE:append:am64xx-evm-k3r5 = " SBL="${STAGING_DIR_HOST}/boot/u-boot-spl.bin"" |
58 | EXTRA_OEMAKE:append:am64xx-hs-evm-k3r5 = " SBL="${STAGING_DIR_HOST}/boot/u-boot-spl.bin"" | ||
57 | 59 | ||
58 | do_compile() { | 60 | do_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 | ||
121 | do_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 | |||
128 | do_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 | |||
119 | addtask deploy before do_build after do_compile | 136 | addtask deploy before do_build after do_compile |