From: Jens Rehsack Date: Mon, 25 May 2020 17:02:52 +0000 (+0200) Subject: rcw: compile only for needed boards X-Git-Url: https://code.ossystems.io/gitweb?a=commitdiff_plain;h=306b6419fa71077560f7b8f539c417ff60e109bb;p=meta-freescale.git rcw: compile only for needed boards 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 --- diff --git a/recipes-bsp/rcw/rcw_git.bb b/recipes-bsp/rcw/rcw_git.bb index ad24ea33..b137ccb2 100644 --- a/recipes-bsp/rcw/rcw_git.bb +++ b/recipes-bsp/rcw/rcw_git.bb @@ -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 () {