[meta-ti] Denys Dmytriyenko : ipumm-fw: use update-alternatives to manage FW symlink
Arago Project git
git at arago-project.org
Tue Mar 8 15:44:30 PST 2016
Module: meta-ti
Branch: master
Commit: 771673de5b2a40aed9ef950bb5eb2ed754b1bcfb
URL: http://arago-project.org/git/meta-ti.git?a=commit;h=771673de5b2a40aed9ef950bb5eb2ed754b1bcfb
Author: Denys Dmytriyenko <denys at ti.com>
Date: Wed Mar 9 04:37:42 2016 +0000
ipumm-fw: use update-alternatives to manage FW symlink
Signed-off-by: Denys Dmytriyenko <denys at ti.com>
---
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 022d307..f415599 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"
require recipes-ti/includes/ti-paths.inc
require recipes-ti/includes/ti-staging.inc
+inherit update-alternatives
+
DEPENDS = "ti-xdctools ti-sysbios ti-codec-engine ti-framework-components ti-xdais ti-ccsv6-native ti-ipc-rtos"
export HWVERSION="ES10"
@@ -53,10 +55,15 @@ do_compile() {
TARGET = "dra7-ipu2-fw.xem4"
do_install() {
- mkdir -p ${D}${base_libdir}/firmware
- cp ${S}/${TARGET} ${D}${base_libdir}/firmware/${TARGET}
+ install -d ${D}${base_libdir}/firmware
+ install -m 0644 ${S}/${TARGET} ${D}${base_libdir}/firmware/${TARGET}.${BPN}
}
-FILES_${PN} += "${base_libdir}/firmware/${TARGET}"
+ALTERNATIVE_${PN} = "dra7-ipu2-fw.xem4"
+ALTERNATIVE_LINK_NAME[dra7-ipu2-fw.xem4] = "${base_libdir}/firmware/${TARGET}"
+ALTERNATIVE_TARGET[dra7-ipu2-fw.xem4] = "${base_libdir}/firmware/${TARGET}.${BPN}"
+ALTERNATIVE_PRIORITY = "20"
+
+FILES_${PN} += "${base_libdir}/firmware/*"
-PR = "r0"
+PR = "r1"
More information about the meta-ti
mailing list