]> code.ossystems Code Review - meta-freescale.git/commitdiff
rcw: need install rev1.1 folder for ls2088ardb
authorChunrong Guo <chunrong.guo@nxp.com>
Mon, 28 May 2018 05:54:51 +0000 (13:54 +0800)
committerOtavio Salvador <otavio@ossystems.com.br>
Tue, 26 Jun 2018 17:13:51 +0000 (14:13 -0300)
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 01653b34f125a5553b7fa951a4fea47de16b6ca8..0f5c94e15efb48477dcbca169166f449bc0bfcc2 100644 (file)
@@ -17,12 +17,11 @@ export PYTHON = "${USRBINPATH}/python2"
 M="${@d.getVar('MACHINE', True).replace('-64b','').replace('-32b','').replace('-${SITEINFO_ENDIANNESS}','')}"
 
 do_install () {
-    if [ -f ${S}/${M}/Makefile ]; then
+    if [ ${M} = ls2088ardb ]; then
         oe_runmake BOARDS=${M} DESTDIR=${D}/boot/rcw/ install
+        oe_runmake BOARDS=${M}_rev1.1  DESTDIR=${D}/boot/rcw/ install
     else
-        install -d ${D}/boot/rcw
-        cp -a ${S}/${M} ${D}/boot/rcw/
-        chown -R root:root ${D}
+        oe_runmake BOARDS=${M} DESTDIR=${D}/boot/rcw/ install
     fi
     for f in `find ${D}/boot/rcw/ -name "*qspiboot*"`;do
         if echo $f |grep -q "qspiboot_sben"; then