From 306b6419fa71077560f7b8f539c417ff60e109bb Mon Sep 17 00:00:00 2001 From: Jens Rehsack Date: Mon, 25 May 2020 19:02:52 +0200 Subject: [PATCH] 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 --- recipes-bsp/rcw/rcw_git.bb | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) 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 () { -- 2.40.1