From 3b00d121b420192384e3c8f3c03f1287be0193c6 Mon Sep 17 00:00:00 2001 From: Jens Rehsack Date: Fri, 13 Dec 2019 18:04:33 +0100 Subject: [PATCH] rcw: easy overriding machine in derived layers Modify rcw recipe to allow define machine dependent targets in derived layers for dedicated PCBs based on QorIQ socs. Signed-off-by: Jens Rehsack --- recipes-bsp/rcw/rcw_git.bb | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/recipes-bsp/rcw/rcw_git.bb b/recipes-bsp/rcw/rcw_git.bb index fed9f864..63d8a195 100644 --- a/recipes-bsp/rcw/rcw_git.bb +++ b/recipes-bsp/rcw/rcw_git.bb @@ -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 () { -- 2.40.1