diff options
author | Ryan Eatmon <reatmon@ti.com> | 2025-01-10 14:47:39 -0600 |
---|---|---|
committer | Ryan Eatmon <reatmon@ti.com> | 2025-01-22 15:08:56 -0600 |
commit | a98ed702157f009628c1c7655a60de2b54cbd4a5 (patch) | |
tree | 7d9b85c5861c899ae312bcfa161e83c582ee408f | |
parent | 7c1c3dacdc3b22800eef489a3fbca70f4647ac7a (diff) | |
download | meta-ti-a98ed702157f009628c1c7655a60de2b54cbd4a5.tar.gz |
ti-ipc-rtos: Move to update-alternatives class
There were some errors related to ipk postinst. The issues were fixed
by going to the update-alternatives class instead of trying to create
the steps directly in the recipe.
Signed-off-by: Ryan Eatmon <reatmon@ti.com>
-rw-r--r-- | meta-ti-extras/recipes-ti/ipc/ti-ipc-rtos_git.bb | 40 |
1 files changed, 19 insertions, 21 deletions
diff --git a/meta-ti-extras/recipes-ti/ipc/ti-ipc-rtos_git.bb b/meta-ti-extras/recipes-ti/ipc/ti-ipc-rtos_git.bb index 7d845d39..853fa117 100644 --- a/meta-ti-extras/recipes-ti/ipc/ti-ipc-rtos_git.bb +++ b/meta-ti-extras/recipes-ti/ipc/ti-ipc-rtos_git.bb | |||
@@ -3,6 +3,7 @@ require recipes-ti/ipc/ti-ipc-common.inc | |||
3 | require ti-ipc-rtos.inc | 3 | require ti-ipc-rtos.inc |
4 | 4 | ||
5 | inherit deploy | 5 | inherit deploy |
6 | inherit update-alternatives | ||
6 | 7 | ||
7 | DEPENDS = "ti-xdctools-native ti-sysbios doxygen-native zip-native" | 8 | DEPENDS = "ti-xdctools-native ti-sysbios doxygen-native zip-native" |
8 | 9 | ||
@@ -80,27 +81,24 @@ KFPLAT = "" | |||
80 | 81 | ||
81 | ALTERNATIVE_PRIORITY = "5" | 82 | ALTERNATIVE_PRIORITY = "5" |
82 | 83 | ||
83 | pkg_postinst:${PN}-fw:omap-a15 () { | 84 | ALTERNATIVE:${PN}-fw:omapl138 = "rproc-dsp-fw" |
84 | update-alternatives --install /lib/firmware/dra7-dsp1-fw.xe66 dra7-dsp1-fw.xe66 ipc/ti_platforms_evmDRA7XX_dsp1/test_omx_dsp1_vayu.xe66 ${ALTERNATIVE_PRIORITY} | 85 | ALTERNATIVE:${PN}-fw:omap-a15 = "dra7-dsp1-fw.xe66 \ |
85 | update-alternatives --install /lib/firmware/dra7-dsp2-fw.xe66 dra7-dsp2-fw.xe66 ipc/ti_platforms_evmDRA7XX_dsp2/test_omx_dsp2_vayu.xe66 ${ALTERNATIVE_PRIORITY} | 86 | dra7-dsp2-fw.xe66 \ |
86 | update-alternatives --install /lib/firmware/dra7-ipu1-fw.xem4 dra7-ipu1-fw.xem4 ipc/ti_platforms_evmDRA7XX_ipu1/test_omx_ipu1_vayu.xem4 ${ALTERNATIVE_PRIORITY} | 87 | dra7-ipu1-fw.xem4 \ |
87 | update-alternatives --install /lib/firmware/dra7-ipu2-fw.xem4 dra7-ipu2-fw.xem4 ipc/ti_platforms_evmDRA7XX_ipu2/test_omx_ipu2_vayu.xem4 ${ALTERNATIVE_PRIORITY} | 88 | dra7-ipu2-fw.xem4 \ |
88 | } | 89 | " |
89 | 90 | ||
90 | pkg_postrm:${PN}-fw:omap-a15 () { | 91 | ALTERNATIVE_LINK_NAME[rproc-dsp-fw] = "${nonarch_base_libdir}/firmware/rproc-dsp-fw" |
91 | update-alternatives --remove dra7-dsp1-fw.xe66 ipc/ti_platforms_evmDRA7XX_dsp1/test_omx_dsp1_vayu.xe66 | 92 | ALTERNATIVE_LINK_NAME[dra7-dsp1-fw.xe66] = "${nonarch_base_libdir}/firmware/dra7-dsp1-fw.xe66" |
92 | update-alternatives --remove dra7-dsp2-fw.xe66 ipc/ti_platforms_evmDRA7XX_dsp2/test_omx_dsp2_vayu.xe66 | 93 | ALTERNATIVE_LINK_NAME[dra7-dsp2-fw.xe66] = "${nonarch_base_libdir}/firmware/dra7-dsp2-fw.xe66" |
93 | update-alternatives --remove dra7-ipu1-fw.xem4 ipc/ti_platforms_evmDRA7XX_ipu1/test_omx_ipu1_vayu.xem4 | 94 | ALTERNATIVE_LINK_NAME[dra7-ipu1-fw.xem4] = "${nonarch_base_libdir}/firmware/dra7-ipu1-fw.xem4" |
94 | update-alternatives --remove dra7-ipu2-fw.xem4 ipc/ti_platforms_evmDRA7XX_ipu2/test_omx_ipu2_vayu.xem4 | 95 | ALTERNATIVE_LINK_NAME[dra7-ipu2-fw.xem4] = "${nonarch_base_libdir}/firmware/dra7-ipu2-fw.xem4" |
95 | } | 96 | |
96 | 97 | ALTERNATIVE_TARGET[rproc-dsp-fw] = "${nonarch_base_libdir}/firmware/ipc/ti_platforms_evmOMAPL138_DSP/messageq_single.xe674" | |
97 | pkg_postinst:${PN}-fw:omapl138 () { | 98 | ALTERNATIVE_TARGET[dra7-dsp1-fw.xe66] = "${nonarch_base_libdir}/firmware/ipc/ti_platforms_evmDRA7XX_dsp1/test_omx_dsp1_vayu.xe66" |
98 | update-alternatives --install /lib/firmware/rproc-dsp-fw rproc-dsp-fw ipc/ti_platforms_evmOMAPL138_DSP/messageq_single.xe674 ${ALTERNATIVE_PRIORITY} | 99 | ALTERNATIVE_TARGET[dra7-dsp2-fw.xe66] = "${nonarch_base_libdir}/firmware/ipc/ti_platforms_evmDRA7XX_dsp2/test_omx_dsp2_vayu.xe66" |
99 | } | 100 | ALTERNATIVE_TARGET[dra7-ipu1-fw.xem4] = "${nonarch_base_libdir}/firmware/ipc/ti_platforms_evmDRA7XX_ipu1/test_omx_ipu1_vayu.xem4" |
100 | 101 | ALTERNATIVE_TARGET[dra7-ipu2-fw.xem4] = "${nonarch_base_libdir}/firmware/ipc/ti_platforms_evmDRA7XX_ipu2/test_omx_ipu2_vayu.xem4" | |
101 | pkg_postrm:${PN}-fw:omapl138 () { | ||
102 | update-alternatives --remove rproc-dsp-fw ipc/ti_platforms_evmOMAPL138_DSP/messageq_single.xe674 | ||
103 | } | ||
104 | 102 | ||
105 | do_deploy() { | 103 | do_deploy() { |
106 | install -d ${DEPLOYDIR} | 104 | install -d ${DEPLOYDIR} |