]> code.ossystems Code Review - meta-freescale.git/commitdiff
rcw: easy overriding machine in derived layers
authorJens Rehsack <jens.rehsack.ext@safrangroup.com>
Fri, 13 Dec 2019 17:04:33 +0000 (18:04 +0100)
committerOtavio Salvador <otavio@ossystems.com.br>
Mon, 16 Dec 2019 21:53:56 +0000 (18:53 -0300)
Modify rcw recipe to allow define machine dependent targets
in derived layers for dedicated PCBs based on QorIQ socs.

Signed-off-by: Jens Rehsack <sno@netbsd.org>
recipes-bsp/rcw/rcw_git.bb

index fed9f864f5d2b4338d286ec9b881434522b74170..63d8a195a19bf4791e058fbe82363d454f81004a 100644 (file)
@@ -16,15 +16,15 @@ export PYTHON = "${USRBINPATH}/python3"
 
 M="${@d.getVar('MACHINE').replace('-64b','').replace('-32b','').replace('-${SITEINFO_ENDIANNESS}','')}"
 
+BOARD_TARGETS="${M}"
+BOARD_TARGETS_ls2088ardb="${M} ${M}_rev1.1"
+BOARD_TARGETS_ls1088ardb-pb="ls1088ardb"
+
 do_install () {
-    if [ ${M} = ls2088ardb ]; then
-        oe_runmake BOARDS=${M} DESTDIR=${D}/boot/rcw/ install
-        oe_runmake BOARDS=${M}_rev1.1  DESTDIR=${D}/boot/rcw/ install
-    elif [ ${M} = ls1088ardb-pb ]; then
-        oe_runmake BOARDS=ls1088ardb DESTDIR=${D}/boot/rcw/ install
-    else
-        oe_runmake BOARDS=${M} DESTDIR=${D}/boot/rcw/ install
-    fi
+    for BT in ${BOARD_TARGETS}
+    do
+        oe_runmake BOARDS=${BT} DESTDIR=${D}/boot/rcw/ install
+    done
 }
 
 do_deploy () {