qe-ucode :add recipes for Layerscape1 support
PATCH 1/1 qe-ucode :add recipes for Layerscape1 support
From: Chunrong Guo <[email protected]>
QE microcode from Freescale is typically provided as a header file. This header file contains macros that define the microcode binary itself as well as some other data used in uploading that microcode.
--- recipes-bsp/qe-ucode/qe-ucode_git.bb | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 recipes-bsp/qe-ucode/qe-ucode_git.bb
recipes-bsp/qe-ucode/qe-ucode_git.bb new file +36 -0
@@ -0,0 +1,36 @@ +DESCRIPTION = "qe microcode binary" +SECTION = "qe-ucode" +LICENSE = "Freescale-EULA" +LIC_FILES_CHKSUM = "file://EULA;md5=60037ccba533a5995e8d1a838d85799c" + +inherit deploy + +SRC_URI = "git://git.freescale.com/ppc/sdk/qe-ucode.git;nobranch=1" +SRCREV= "49efc94b553de5c2a9bd28093592eff0068e161c" + +S = "${WORKDIR}/git" + +do_install () { + case ${MACHINE} in + ls1021atwr|ls1021aqds) QE_UCODE="iram_Type_A_LS1021a_r1.0.bin";; + *) QE_UCODE="";; + esac + install -d ${D}/ + install -m 644 ${QE_UCODE} ${D}/ +} + +do_deploy () { + case ${MACHINE} in + ls1021atwr|ls1021aqds) QE_UCODE="iram_Type_A_LS1021a_r1.0.bin";; + *) QE_UCODE="";; + esac + install -d ${DEPLOYDIR}/ + install -m 644 ${QE_UCODE} ${DEPLOYDIR}/ +} +addtask deploy before do_build after do_install + +PACKAGES += "${PN}-image" +FILES_${PN}-image += "/*" +ALLOW_EMPTY_${PN} = "1" +COMPATIBLE_MACHINE = "(ls1021atwr|ls1021aqds)" +
Signature · 1 line
1.9.2
Quoted 23 lines · On Fri, Dec 19, 2014 at 5:49 AM, <[email protected]> wrote:
From: Chunrong Guo <[email protected]>
QE microcode from Freescale is typically provided as a header file. This header file contains macros that define the microcode binary itself as well as some other data used in uploading that microcode.
Signed-off-by Chunrong Guo <[email protected]>--- recipes-bsp/qe-ucode/qe-ucode_git.bb | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 recipes-bsp/qe-ucode/qe-ucode_git.bbrecipes-bsp/qe-ucode/qe-ucode_git.bb new file +5
-0@@ -0,0 +1,36 @@ +DESCRIPTION = "qe microcode binary" +SECTION = "qe-ucode" +LICENSE = "Freescale-EULA" +LIC_FILES_CHKSUM = "file://EULA;md5=60037ccba533a5995e8d1a838d85799c" +
recipes-bsp/qe-ucode/qe-ucode_git.bb line 15
Quoted 10 lines
recipes-bsp/qe-ucode/qe-ucode_git.bb new file +10
-0+inherit deploy + +SRC_URI = "git://git.freescale.com/ppc/sdk/qe-ucode.git;nobranch=1" +SRCREV= "49efc94b553de5c2a9bd28093592eff0068e161c" + +S = "${WORKDIR}/git" + +do_install () { + case ${MACHINE} in + ls1021atwr|ls1021aqds) QE_UCODE="iram_Type_A_LS1021a_r1.0.bin";;
I'd move QE_UCODE definition to the machine file. So every machine can set it and we avoid hardcoded board names. Like done for UBOOT_MACHINE.
What do you think?
So you could have:
QE_UCODE = "iram_Type_A_LS1021a_r1.0.bin"
Quoted 29 lines
recipes-bsp/qe-ucode/qe-ucode_git.bb new file +21
-1+ *) QE_UCODE="";; + esac + install -d ${D}/ + install -m 644 ${QE_UCODE} ${D}/ +} + +do_deploy () { + case ${MACHINE} in + ls1021atwr|ls1021aqds) QE_UCODE="iram_Type_A_LS1021a_r1.0.bin";; + *) QE_UCODE="";; + esac + install -d ${DEPLOYDIR}/ + install -m 644 ${QE_UCODE} ${DEPLOYDIR}/ +} +addtask deploy before do_build after do_install + +PACKAGES += "${PN}-image" +FILES_${PN}-image += "/*" +ALLOW_EMPTY_${PN} = "1" +COMPATIBLE_MACHINE = "(ls1021atwr|ls1021aqds)" + --1.9.2
--
_______________________________________________
meta-freescale mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-freescale
Signature · 3 lines
Otavio Salvador O.S. Systems http://www.ossystems.com.br http://code.ossystems.com.br Mobile: +55 (53) 9981-7854 Mobile: +1 (347) 903-9750