]> code.ossystems Code Review - meta-freescale.git/commitdiff
rcw :update recipe
authorChunrong Guo <chunrong.guo@nxp.com>
Wed, 18 Oct 2017 05:06:33 +0000 (13:06 +0800)
committerOtavio Salvador <otavio@ossystems.com.br>
Wed, 18 Oct 2017 13:42:30 +0000 (11:42 -0200)
*update to 1a6236a
*This includes the following changes:
1a6236a - LS1012ARDB: Change rcw for secure boot
cdf4b72 - rcw: ls1088aqds: Add SCSI errata for detecttion of sata
16072f7 - armv8:LS1012A: RCW supporting 1GHz CPU frequency
90aef03 - LS1088ARDB:Reduce size in block copy command
53518dc - rcw: ls1088ardb: Add SCSI errata for detecttion of sata
0a869b3 - ls1021a: add workaround for pcie erratum A-007997 and A-007815
e7f18e5 - ls2088ardb: Add RCW for with platform frequency 700MHz
6f324fc - Use BSD license for both rcw and binary files
c69799f - Added copyright to byte_swap.tcl
bfe8c5e - Renaming COPYING as BSD-LICENSE

*update LIC_FILES_CHKSUM to point to LICENSE
Renaming BSD-LICENSE

* add support for Qoriq.

* strip possible '-32b', '-64b' and '-be' to match folder name.

Signed-off-by: Chunrong Guo <chunrong.guo@nxp.com>
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
recipes-bsp/rcw/rcw_git.bb

index 877822f28a52a2b04cc4d154a6dc72260dfe6388..9c2b156abc74428d9543e44d24ecc17db0abbfc3 100644 (file)
@@ -1,23 +1,29 @@
 SUMMARY = "Reset Configuration Word"
 DESCRIPTION = "Reset Configuration Word - hardware boot-time parameters for the QorIQ targets"
 LICENSE = "BSD"
-LIC_FILES_CHKSUM = "file://BSD-LICENSE;md5=627727dce58484c4bd5f9b19665d81b3"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=be7e0b2ce5a7a1f4f25a6d82cec1f47d"
 
 DEPENDS += "change-file-endianess-native tcl-native"
 
-inherit deploy
+inherit deploy siteinfo
 
 SRC_URI = "git://github.com/qoriq-open-source/rcw.git;nobranch=1"
-SRCREV = "bfe8c5eb72cbae387af1c8662957caa801c2309f"
+SRCREV = "1a6236a34166219de324a105971eb9de05cde76e"
 
 S = "${WORKDIR}/git"
 
 export PYTHON = "${USRBINPATH}/python2"
 
-EXTRA_OEMAKE = "BOARDS=${@d.getVar('MACHINE', True).replace('-64b','').replace('-32b','')} DESTDIR=${D}/boot/rcw/"
+M="${@d.getVar('MACHINE', True).replace('-64b','').replace('-32b','').replace('-${SITEINFO_ENDIANNESS}','')}"
 
 do_install () {
-    oe_runmake install
+    if [ -f ${S}/${M}/Makefile ]; then
+        oe_runmake BOARDS=${M} DESTDIR=${D}/boot/rcw/ install
+    else
+        install -d ${D}/boot/rcw
+        cp -a ${S}/${M} ${D}/boot/rcw/
+        chown -R root:root ${D}
+    fi
     for f in `find ${D}/boot/rcw/ -name "*qspiboot*"`;do
         if echo $f |grep -q "qspiboot_sben"; then
             continue