]> code.ossystems Code Review - meta-freescale.git/commitdiff
mc-utils: split compile & install, fix RDB only
authorJens Rehsack <sno@NetBSD.org>
Mon, 10 Feb 2020 14:37:56 +0000 (15:37 +0100)
committerOtavio Salvador <otavio@ossystems.com.br>
Tue, 11 Feb 2020 21:25:22 +0000 (18:25 -0300)
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>
recipes-bsp/mc-utils/mc-utils_git.bb

index 39c26b57c091a75e1ca0b5c110005db72649f980..d0b40bd0244fcef5195ce3062838171d017fb22a 100644 (file)
@@ -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