diff options
| -rw-r--r-- | recipes-bsp/mc-utils/mc-utils_git.bb | 20 | 
1 files changed, 13 insertions, 7 deletions
| diff --git a/recipes-bsp/mc-utils/mc-utils_git.bb b/recipes-bsp/mc-utils/mc-utils_git.bb index f34d44186..430d6cd86 100644 --- a/recipes-bsp/mc-utils/mc-utils_git.bb +++ b/recipes-bsp/mc-utils/mc-utils_git.bb | |||
| @@ -10,30 +10,36 @@ DEPENDS += "dtc-native" | |||
| 10 | inherit deploy | 10 | inherit deploy | 
| 11 | 11 | ||
| 12 | SRC_URI = "git://source.codeaurora.org/external/qoriq/qoriq-components/mc-utils;nobranch=1" | 12 | SRC_URI = "git://source.codeaurora.org/external/qoriq/qoriq-components/mc-utils;nobranch=1" | 
| 13 | SRCREV = "30c63101b15def4620f509641b97641c25fe19fe" | 13 | SRCREV = "6aca560c630dc54afdef382c506f214b28f4985e" | 
| 14 | 14 | ||
| 15 | S = "${WORKDIR}/git" | 15 | S = "${WORKDIR}/git" | 
| 16 | 16 | ||
| 17 | MC_CFG ?= "" | 17 | MC_CFG ?= "" | 
| 18 | MC_CFG_ls1088a = "ls1088a" | 18 | MC_CFG_ls1088a = "ls1088a" | 
| 19 | MC_CFG_ls2088a = "ls2088a" | 19 | MC_CFG_ls2088a = "ls2088a" | 
| 20 | MC_CFG_lx2160a = "lx2160a" | ||
| 20 | 21 | ||
| 21 | do_install () { | 22 | do_install () { | 
| 22 | oe_runmake -C config | 23 | oe_runmake -C config | 
| 23 | 24 | ||
| 24 | install -d ${D}/boot/mc-utils/custom | 25 | install -d ${D}/boot/mc-utils | 
| 25 | cp -r ${S}/config/${MC_CFG}/RDB/*.dtb ${D}/boot/mc-utils | 26 | cp -r ${S}/config/${MC_CFG}/RDB/*.dtb ${D}/boot/mc-utils | 
| 26 | cp -r ${S}/config/${MC_CFG}/RDB/custom/*.dtb ${D}/boot/mc-utils/custom | 27 | if [ -d ${S}/config/${MC_CFG}/RDB/custom/ ]; then | 
| 28 | install -d ${D}/boot/mc-utils/custom | ||
| 29 | cp -r ${S}/config/${MC_CFG}/RDB/custom/*.dtb ${D}/boot/mc-utils/custom | ||
| 30 | fi | ||
| 27 | } | 31 | } | 
| 28 | 32 | ||
| 29 | do_deploy () { | 33 | do_deploy () { | 
| 30 | install -d ${DEPLOYDIR}/mc-utils/custom | 34 | install -d ${DEPLOYDIR}/mc-utils | 
| 31 | cp -r ${S}/config/${MC_CFG}/RDB/*.dtb ${DEPLOYDIR}/mc-utils | 35 | cp -r ${S}/config/${MC_CFG}/RDB/*.dtb ${DEPLOYDIR}/mc-utils | 
| 32 | cp -r ${S}/config/${MC_CFG}/RDB/custom/*.dtb ${DEPLOYDIR}/mc-utils/custom | 36 | if [ -d ${S}/config/${MC_CFG}/RDB/custom/ ]; then | 
| 33 | 37 | install -d ${DEPLOYDIR}/mc-utils/custom | |
| 38 | cp -r ${S}/config/${MC_CFG}/RDB/custom/*.dtb ${DEPLOYDIR}/mc-utils/custom | ||
| 39 | fi | ||
| 34 | } | 40 | } | 
| 35 | addtask deploy after do_install | 41 | addtask deploy after do_install | 
| 36 | 42 | ||
| 37 | PACKAGES += "${PN}-image" | 43 | PACKAGES += "${PN}-image" | 
| 38 | FILES_${PN}-image += "/boot" | 44 | FILES_${PN}-image += "/boot" | 
| 39 | COMPATIBLE_MACHINE = "(ls1088a|ls2088a)" | 45 | COMPATIBLE_MACHINE = "(qoriq-arm64)" | 
