Patchwork [OE-core] fm-ucode: update to the commit for sdk 1.3.2

login
register
mail settings
Submitter chunrong guo
Date March 21, 2013, 2:52 a.m.
Message ID <B21730BB6DA1D24B83348D9301EA417E06806F37@039-SN2MPN1-023.039d.mgd.msft.net>
Download mbox | patch
Permalink /patch/46601/
State Not Applicable, archived
Headers show

Comments

chunrong guo - March 21, 2013, 2:52 a.m.
Ignore it .

Sorry, I send patch to wrong maillist .

-----Original Message-----
From: Guo Chunrong-B40290 
Sent: Thursday, March 21, 2013 10:47 AM
To: openembedded-devel@lists.openembedded.org
Cc: Liu Ting-B28495; Luo Zhenhua-B19537; Guo Chunrong-B40290; Guo Chunrong-B40290
Subject: [OE-core][PATCH] fm-ucode: update to the commit for sdk 1.3.2

Signed-off-by: Chunrong Guo <B40290@freescale.com>
---
 recipes-ucode/fm-ucode/fm-ucode_git.bb |   51 +++++++++++++++++---------------
 1 files changed, 27 insertions(+), 24 deletions(-)

Patch

diff --git a/recipes-ucode/fm-ucode/fm-ucode_git.bb b/recipes-ucode/fm-ucode/fm-ucode_git.bb
index 89c43ba..bc5dc6d 100644
--- a/recipes-ucode/fm-ucode/fm-ucode_git.bb
+++ b/recipes-ucode/fm-ucode/fm-ucode_git.bb
@@ -3,41 +3,44 @@  SECTION = "fm-ucode"
 LICENSE = "Freescale EULA"
 LIC_FILES_CHKSUM = "file://EULA;md5=60037ccba533a5995e8d1a838d85799c"
 
-FMAN_UCODE_INSTALL_FILE = "fsl_fman_ucode"
-FMAN_UCODE_INSTALL_FILE_append_p2041rdb = "_P2041"
-FMAN_UCODE_INSTALL_FILE_append_p4080ds= "_P4080"
-FMAN_UCODE_INSTALL_FILE_append_p1023rds = "_*1023"
-FMAN_UCODE_INSTALL_FILE_append_p5020ds = "_P5020"
-FMAN_UCODE_INSTALL_FILE_append_p5020ds-64b = "_P5020"
-FMAN_UCODE_INSTALL_FILE_append_p5040ds = "_P5040"
-FMAN_UCODE_INSTALL_FILE_append_p5040ds-64b = "_P5040"
-FMAN_UCODE_INSTALL_FILE_append_p3041ds = "_P3041"
-FMAN_UCODE_INSTALL_FILE_append_b4420qds = "_B4860"
-FMAN_UCODE_INSTALL_FILE_append_b4420qds-64b = "_B4860"
-FMAN_UCODE_INSTALL_FILE_append_b4860qds = "_B4860"
-FMAN_UCODE_INSTALL_FILE_append_b4860qds-64b = "_B4860"
-FMAN_UCODE_INSTALL_FILE_append_t4160qds = "_T4240"
-FMAN_UCODE_INSTALL_FILE_append_t4160qds-64b = "_T4240"
-FMAN_UCODE_INSTALL_FILE_append_t4240qds = "_T4240"
-FMAN_UCODE_INSTALL_FILE_append_t4240qds-64b = "_T4240"
-
-COMPATIBLE_MACHINE = "(p1023rds|p4080ds|p5020ds|p5040ds|p5020ds-64b|p5040ds-64b|p3041ds|p2041rdb|b4420qds|b4420qds-64b|b4860qds|b4860qds-64b|t4160qds|t4160qds-64b|t4240qds|t4240qds-64b)"
+PR = "r1"
+
+
+COMPATIBLE_MACHINE = "(p1023rds|p2041rdb|p3041ds|p4080ds|p5020ds|p5040ds|p5020ds-64b|p5040ds-64b|b4420qds|b4420qds-64b|b4860qds|b4860qds-64b|t4160qds|t4160qds-64b|t4240qds|t4240qds-64b)"
 inherit deploy
 
 SRC_URI = "git://git.freescale.com/ppc/sdk/fm-ucode.git"
-SRCREV = "f4a43e8ad6a6e5fdedff6e1484386f963bccfdff"
+SRCREV = "219bb2c6aaa1e040fb849a771a9bdf3e8dbc49e9"
 
 S = "${WORKDIR}/git"
 
 ALLOW_EMPTY_${PN} = "1"
 do_install () {
-	install -d ${D}/boot
-	install -m 644 ${FMAN_UCODE_INSTALL_FILE}*.bin ${D}/boot/
+    case ${MACHINE} in
+        b4420qds|b4420qds-64b|b4860qds|b4860qds-64b) UCODE=b4860qds;;
+        t4240qds|t4240qds-64b|t4160qds|t4160qds-64b) UCODE=t4240qds;;
+        p5020ds|p5020ds-64b) UCODE=p5020ds;;
+        p5040ds|p5040ds-64b) UCODE=p5040ds;;
+        p1023rds) UCODE=P1023RDS;;
+        *) UCODE=${MACHINE};;
+    esac
+    UCODE=`echo $UCODE | sed -e 's,[a-zA-Z]*$,,'`
+    install -d ${D}/boot
+    install -m 644 fsl_fman_ucode_${UCODE}*.bin ${D}/boot/
 }
 
 do_deploy () {
-	install -d ${DEPLOYDIR}/
-	install -m 644 ${FMAN_UCODE_INSTALL_FILE}*.bin ${DEPLOYDIR}/
+    case ${MACHINE} in
+        b4420qds|b4420qds-64b|b4860qds|b4860qds-64b) UCODE=b4860qds;;
+        t4240qds|t4240qds-64b|t4160qds|t4160qds-64b) UCODE=t4240qds;;
+        p5020ds|p5020ds-64b) UCODE=p5020ds;;
+        p5040ds|p5040ds-64b) UCODE=p5040ds;;
+        p1023rds) UCODE=P1023RDS;;
+        *) UCODE=${MACHINE};;
+    esac
+    UCODE=`echo $UCODE | sed -e 's,[a-zA-Z]*$,,'`
+    install -d ${DEPLOYDIR}/
+    install -m 644 fsl_fman_ucode_${UCODE}*.bin ${DEPLOYDIR}/
 }
 addtask deploy before do_build after do_install