aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJens Rehsack <sno@NetBSD.org>2020-02-10 15:37:56 +0100
committerOtavio Salvador <otavio@ossystems.com.br>2020-02-11 18:25:22 -0300
commit24d974cc97eb15485c6a6ff3155ab11ae5b03f79 (patch)
tree44abe379f2dd63fe1bfbc8d618375f6bf67c7411
parentd6d57051cc5bfca6f7ec0232745f6d18f681134f (diff)
downloadmeta-freescale-24d974cc97eb15485c6a6ff3155ab11ae5b03f79.tar.gz
meta-freescale-24d974cc97eb15485c6a6ff3155ab11ae5b03f79.tar.bz2
meta-freescale-24d974cc97eb15485c6a6ff3155ab11ae5b03f79.zip
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 <sno@NetBSD.org>
-rw-r--r--recipes-bsp/mc-utils/mc-utils_git.bb26
1 files changed, 15 insertions, 11 deletions
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