]> code.ossystems Code Review - meta-freescale.git/commitdiff
rcw: compile only for needed boards
authorJens Rehsack <sno@netbsd.org>
Mon, 25 May 2020 17:02:52 +0000 (19:02 +0200)
committerOtavio Salvador <otavio@ossystems.com.br>
Tue, 26 May 2020 18:18:26 +0000 (15:18 -0300)
Instead of default compile stage, which compiles for all built-in boards,
compile those boards which are needed (based on machine configuration).

Since BOARDS is a list either, do not run make for each target board but
handle all of them in one run.

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

index ad24ea33127070905d727d5ef6d414274269abef..b137ccb29ed67888ad9253ddb26f94d7ad05a15e 100644 (file)
@@ -21,11 +21,12 @@ BOARD_TARGETS_ls2088ardb="${M} ${M}_rev1.1"
 BOARD_TARGETS_ls1088ardb-pb="ls1088ardb"
 BOARD_TARGETS_lx2160ardb = "${M} ${M}_rev2"
 
+do_compile () {
+    oe_runmake BOARDS="${BOARD_TARGETS}" DESTDIR=${D}/boot/rcw/
+}
+
 do_install () {
-    for BT in ${BOARD_TARGETS}
-    do
-        oe_runmake BOARDS=${BT} DESTDIR=${D}/boot/rcw/ install
-    done
+    oe_runmake BOARDS="${BOARD_TARGETS}" DESTDIR=${D}/boot/rcw/ install
 }
 
 do_deploy () {