diff options
author | Denys Dmytriyenko <denys@ti.com> | 2017-08-10 01:22:24 +0000 |
---|---|---|
committer | Denys Dmytriyenko <denys@ti.com> | 2017-08-09 16:10:08 -0400 |
commit | aca8f5d6ff8a529e00bdeae5b401c791ed6ecb2b (patch) | |
tree | 3e3d6c6905bc9552ecce7a1ba6bcd272160fc565 /recipes-ti/ipc | |
parent | 188f73e1db5b63ef658c470a0cca08b94dc7fa1c (diff) | |
download | meta-ti-aca8f5d6ff8a529e00bdeae5b401c791ed6ecb2b.tar.gz |
ti-ipc-rtos: add default symlinks for Keystone DSP firmware images
Signed-off-by: Denys Dmytriyenko <denys@ti.com>
Diffstat (limited to 'recipes-ti/ipc')
-rw-r--r-- | recipes-ti/ipc/ti-ipc-rtos_git.bb | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/recipes-ti/ipc/ti-ipc-rtos_git.bb b/recipes-ti/ipc/ti-ipc-rtos_git.bb index 01ef7a00..f4eefa85 100644 --- a/recipes-ti/ipc/ti-ipc-rtos_git.bb +++ b/recipes-ti/ipc/ti-ipc-rtos_git.bb | |||
@@ -72,8 +72,35 @@ do_install() { | |||
72 | cp ${CP_ARGS} ${S}/packages/ti/ipc/tests/bin/* ${D}${base_libdir}/firmware/ipc || true | 72 | cp ${CP_ARGS} ${S}/packages/ti/ipc/tests/bin/* ${D}${base_libdir}/firmware/ipc || true |
73 | } | 73 | } |
74 | 74 | ||
75 | KFDSPNUM = "0" | ||
76 | KFDSPNUM_k2hk = "8" | ||
77 | KFDSPNUM_k2l-evm = "4" | ||
78 | KFDSPNUM_keystone = "1" | ||
79 | |||
80 | KFPLAT = "" | ||
81 | KFPLAT_k2hk = "TCI6638K2K" | ||
82 | KFPLAT_k2l-evm = "TCI6630K2L" | ||
83 | KFPLAT_k2e = "C66AK2E" | ||
84 | KFPLAT_k2g = "TCI66AK2G02" | ||
85 | |||
75 | ALTERNATIVE_PRIORITY = "5" | 86 | ALTERNATIVE_PRIORITY = "5" |
76 | 87 | ||
88 | pkg_postinst_${PN}-fw_keystone () { | ||
89 | i=0 | ||
90 | while [ $i -lt ${KFDSPNUM} ]; do | ||
91 | update-alternatives --install /lib/firmware/keystone-dsp$i-fw keystone-dsp$i-fw ipc/ti_platforms_evm${KFPLAT}_core0/messageq_single.xe66 ${ALTERNATIVE_PRIORITY} | ||
92 | i=$(($i + 1)) | ||
93 | done | ||
94 | } | ||
95 | |||
96 | pkg_postrm_${PN}-fw_keystone () { | ||
97 | i=0 | ||
98 | while [ $i -lt ${KFDSPNUM} ]; do | ||
99 | update-alternatives --remove keystone-dsp$i-fw ipc/ti_platforms_evm${KFPLAT}_core0/messageq_single.xe66 | ||
100 | i=$(($i + 1)) | ||
101 | done | ||
102 | } | ||
103 | |||
77 | pkg_postinst_${PN}-fw_omap-a15 () { | 104 | pkg_postinst_${PN}-fw_omap-a15 () { |
78 | 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} | 105 | 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} |
79 | 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} | 106 | 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} |