summaryrefslogtreecommitdiffstats
path: root/recipes-bsp/ipumm-fw
diff options
context:
space:
mode:
authorDenys Dmytriyenko <denys@ti.com>2016-03-09 04:37:42 +0000
committerDenys Dmytriyenko <denys@ti.com>2016-03-08 18:44:10 -0500
commit771673de5b2a40aed9ef950bb5eb2ed754b1bcfb (patch)
treefb7f41d9dad55072f9df1b7e6990baa5e0da745a /recipes-bsp/ipumm-fw
parentded818502ed122d495992b14c3c7ab383865869f (diff)
downloadmeta-ti-771673de5b2a40aed9ef950bb5eb2ed754b1bcfb.tar.gz
ipumm-fw: use update-alternatives to manage FW symlink
Signed-off-by: Denys Dmytriyenko <denys@ti.com>
Diffstat (limited to 'recipes-bsp/ipumm-fw')
-rw-r--r--recipes-bsp/ipumm-fw/ipumm-fw_git.bb15
1 files changed, 11 insertions, 4 deletions
diff --git a/recipes-bsp/ipumm-fw/ipumm-fw_git.bb b/recipes-bsp/ipumm-fw/ipumm-fw_git.bb
index 022d3074..f4155998 100644
--- a/recipes-bsp/ipumm-fw/ipumm-fw_git.bb
+++ b/recipes-bsp/ipumm-fw/ipumm-fw_git.bb
@@ -26,6 +26,8 @@ PV = "3.00.10.00"
26require recipes-ti/includes/ti-paths.inc 26require recipes-ti/includes/ti-paths.inc
27require recipes-ti/includes/ti-staging.inc 27require recipes-ti/includes/ti-staging.inc
28 28
29inherit update-alternatives
30
29DEPENDS = "ti-xdctools ti-sysbios ti-codec-engine ti-framework-components ti-xdais ti-ccsv6-native ti-ipc-rtos" 31DEPENDS = "ti-xdctools ti-sysbios ti-codec-engine ti-framework-components ti-xdais ti-ccsv6-native ti-ipc-rtos"
30 32
31export HWVERSION="ES10" 33export HWVERSION="ES10"
@@ -53,10 +55,15 @@ do_compile() {
53TARGET = "dra7-ipu2-fw.xem4" 55TARGET = "dra7-ipu2-fw.xem4"
54 56
55do_install() { 57do_install() {
56 mkdir -p ${D}${base_libdir}/firmware 58 install -d ${D}${base_libdir}/firmware
57 cp ${S}/${TARGET} ${D}${base_libdir}/firmware/${TARGET} 59 install -m 0644 ${S}/${TARGET} ${D}${base_libdir}/firmware/${TARGET}.${BPN}
58} 60}
59 61
60FILES_${PN} += "${base_libdir}/firmware/${TARGET}" 62ALTERNATIVE_${PN} = "dra7-ipu2-fw.xem4"
63ALTERNATIVE_LINK_NAME[dra7-ipu2-fw.xem4] = "${base_libdir}/firmware/${TARGET}"
64ALTERNATIVE_TARGET[dra7-ipu2-fw.xem4] = "${base_libdir}/firmware/${TARGET}.${BPN}"
65ALTERNATIVE_PRIORITY = "20"
66
67FILES_${PN} += "${base_libdir}/firmware/*"
61 68
62PR = "r0" 69PR = "r1"