diff options
| author | Denys Dmytriyenko <denys@ti.com> | 2016-03-09 04:37:42 +0000 |
|---|---|---|
| committer | Denys Dmytriyenko <denys@ti.com> | 2016-03-08 18:44:10 -0500 |
| commit | 771673de5b2a40aed9ef950bb5eb2ed754b1bcfb (patch) | |
| tree | fb7f41d9dad55072f9df1b7e6990baa5e0da745a | |
| parent | ded818502ed122d495992b14c3c7ab383865869f (diff) | |
| download | meta-ti-771673de5b2a40aed9ef950bb5eb2ed754b1bcfb.tar.gz | |
ipumm-fw: use update-alternatives to manage FW symlink
Signed-off-by: Denys Dmytriyenko <denys@ti.com>
| -rw-r--r-- | recipes-bsp/ipumm-fw/ipumm-fw_git.bb | 15 |
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" | |||
| 26 | require recipes-ti/includes/ti-paths.inc | 26 | require recipes-ti/includes/ti-paths.inc |
| 27 | require recipes-ti/includes/ti-staging.inc | 27 | require recipes-ti/includes/ti-staging.inc |
| 28 | 28 | ||
| 29 | inherit update-alternatives | ||
| 30 | |||
| 29 | DEPENDS = "ti-xdctools ti-sysbios ti-codec-engine ti-framework-components ti-xdais ti-ccsv6-native ti-ipc-rtos" | 31 | DEPENDS = "ti-xdctools ti-sysbios ti-codec-engine ti-framework-components ti-xdais ti-ccsv6-native ti-ipc-rtos" |
| 30 | 32 | ||
| 31 | export HWVERSION="ES10" | 33 | export HWVERSION="ES10" |
| @@ -53,10 +55,15 @@ do_compile() { | |||
| 53 | TARGET = "dra7-ipu2-fw.xem4" | 55 | TARGET = "dra7-ipu2-fw.xem4" |
| 54 | 56 | ||
| 55 | do_install() { | 57 | do_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 | ||
| 60 | FILES_${PN} += "${base_libdir}/firmware/${TARGET}" | 62 | ALTERNATIVE_${PN} = "dra7-ipu2-fw.xem4" |
| 63 | ALTERNATIVE_LINK_NAME[dra7-ipu2-fw.xem4] = "${base_libdir}/firmware/${TARGET}" | ||
| 64 | ALTERNATIVE_TARGET[dra7-ipu2-fw.xem4] = "${base_libdir}/firmware/${TARGET}.${BPN}" | ||
| 65 | ALTERNATIVE_PRIORITY = "20" | ||
| 66 | |||
| 67 | FILES_${PN} += "${base_libdir}/firmware/*" | ||
| 61 | 68 | ||
| 62 | PR = "r0" | 69 | PR = "r1" |
