From: Jens Rehsack Date: Mon, 10 Feb 2020 14:37:56 +0000 (+0100) Subject: mc-utils: split compile & install, fix RDB only X-Git-Url: https://code.ossystems.io/gitweb?a=commitdiff_plain;h=24d974cc97eb15485c6a6ff3155ab11ae5b03f79;p=meta-freescale.git mc-utils: split compile & install, fix RDB only Instead of compiling dtc/dtl files during install stage, compile in compile stage. Since some boards have RDB and QDS, allow build for QDS (or manual created configuration) either. Due broken patch (mixed spaces & tabs) affected lines are repared. Signed-off-by: Jens Rehsack --- diff --git a/recipes-bsp/mc-utils/mc-utils_git.bb b/recipes-bsp/mc-utils/mc-utils_git.bb index 39c26b57..d0b40bd0 100644 --- a/recipes-bsp/mc-utils/mc-utils_git.bb +++ b/recipes-bsp/mc-utils/mc-utils_git.bb @@ -19,24 +19,28 @@ MC_CFG_ls1088a = "ls1088a" MC_CFG_ls2088a = "ls2088a" MC_CFG_lx2160a = "lx2160a" -do_install () { +MC_FLAVOUR ?= "RDB" + +do_compile () { oe_runmake -C config +} +do_install () { install -d ${D}/boot/mc-utils - cp -r ${S}/config/${MC_CFG}/RDB/*.dtb ${D}/boot/mc-utils - if [ -d ${S}/config/${MC_CFG}/RDB/custom/ ]; then - install -d ${D}/boot/mc-utils/custom - cp -r ${S}/config/${MC_CFG}/RDB/custom/*.dtb ${D}/boot/mc-utils/custom - fi + cp -r ${S}/config/${MC_CFG}/${MC_FLAVOUR}/*.dtb ${D}/boot/mc-utils + if [ -d ${S}/config/${MC_CFG}/${MC_FLAVOUR}/custom/ ]; then + install -d ${D}/boot/mc-utils/custom + cp -r ${S}/config/${MC_CFG}/${MC_FLAVOUR}/custom/*.dtb ${D}/boot/mc-utils/custom + fi } do_deploy () { install -d ${DEPLOYDIR}/mc-utils - cp -r ${S}/config/${MC_CFG}/RDB/*.dtb ${DEPLOYDIR}/mc-utils - if [ -d ${S}/config/${MC_CFG}/RDB/custom/ ]; then - install -d ${DEPLOYDIR}/mc-utils/custom - cp -r ${S}/config/${MC_CFG}/RDB/custom/*.dtb ${DEPLOYDIR}/mc-utils/custom - fi + cp -r ${S}/config/${MC_CFG}/${MC_FLAVOUR}/*.dtb ${DEPLOYDIR}/mc-utils + if [ -d ${S}/config/${MC_CFG}/${MC_FLAVOUR}/custom/ ]; then + install -d ${DEPLOYDIR}/mc-utils/custom + cp -r ${S}/config/${MC_CFG}/${MC_FLAVOUR}/custom/*.dtb ${DEPLOYDIR}/mc-utils/custom + fi } addtask deploy after do_install