]> code.ossystems Code Review - meta-freescale.git/commitdiff
mc-utils: update to 12ffee8
authorTing Liu <ting.liu@nxp.com>
Thu, 14 Oct 2021 08:07:23 +0000 (16:07 +0800)
committerTing Liu <ting.liu@nxp.com>
Fri, 15 Oct 2021 14:11:36 +0000 (22:11 +0800)
New commit:
12ffee8 Add APIs for MC 10.29.0
fa23626 la1575a: renamed RDB directory
32176a5 ls2085a: removed SoC
f504342 ls2081a: removed SoC
b84bcfd ls2080a: removed SoC
47d687f ls2088a: renamed QDS and RDB directories
c827cc4 ls1088a: renamed QDS and RDB directories
f6edc53 lx2162a: moved QDS SoC to lx2162a top directory
97745ca lx2160a: added Blueblox3
36f2989 lx2160a: added LA1224-RDB files
7420bce lx2160a: renamed QDS and RDB directories
2576901 config: lx2162aqds: add DPC file for SERDES protocol 3_3
8dda231 config: lx2162aqds: use USXGMII ports as TYPE_FIXED
4f762b5 Add APIs for MC 10.28.0
315dafa Add APIs for MC 10.27.0
287192c Add APIs for MC 10.26.0
b7934bb Add APIs for MC 10.25.0

folder structure has updated, update build steps accordingly.

Signed-off-by: Ting Liu <ting.liu@nxp.com>
recipes-bsp/mc-utils/mc-utils_git.bb

index b725af7f07a788cb26903119533abbf8ebda8fe0..97bbd7e733228bf3070b7703230da8356826ea1b 100644 (file)
@@ -1,16 +1,14 @@
 DESCRIPTION = "The Management Complex (MC) is a key component of DPAA"
 SECTION = "mc-utils"
 LICENSE = "BSD"
-
-LIC_FILES_CHKSUM = "file://LICENSE;md5=386a6287daa6504b7e7e5014ddfb3987 \
-"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=386a6287daa6504b7e7e5014ddfb3987"
 
 DEPENDS += "dtc-native"
 
 inherit deploy
 
 SRC_URI = "git://source.codeaurora.org/external/qoriq/qoriq-components/mc-utils;nobranch=1"
-SRCREV = "8e0b863693fc2ccbc62a62c79b4e3db6da88c16e"
+SRCREV = "12ffee82d210cb6b5c8fa30fbc6f5d29e4be2e6f"
 
 S = "${WORKDIR}/git"
 
@@ -18,10 +16,10 @@ MC_CFG ?= ""
 MC_CFG:ls1088a = "ls1088a"
 MC_CFG:ls2088a = "ls2088a"
 MC_CFG:lx2160a = "lx2160a"
-MC_CFG:lx2162aqds = "lx2162aqds"
+MC_CFG:lx2162a = "lx2162a"
 
-MC_FLAVOUR ?= "RDB"
-MC_FLAVOUR:lx2162a = ""
+MC_FLAVOUR ?= "${@oe.utils.ifelse(d.getVar('MACHINE').endswith('qds'), 'QDS', 'RDB')}"
+MC_FOLDER ?= "${@d.getVar('MC_CFG').upper() + '-' + d.getVar('MC_FLAVOUR')}"
 
 do_compile () {
        oe_runmake -C config 
@@ -29,23 +27,19 @@ do_compile () {
 
 do_install () {
        install -d ${D}/boot/mc-utils
-       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
+       if [ -e ${S}/config/${MC_CFG}/${MC_FOLDER} ]; then
+               cp -r ${S}/config/${MC_CFG}/${MC_FOLDER}/* ${D}/boot/mc-utils/
        fi
+       find ${D}/boot/mc-utils/ ! -name "*.dtb" ! -type d -exec rm {} \;
 }
 
 do_deploy () {
        install -d ${DEPLOYDIR}/mc-utils
-       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
+       cp -r ${D}/boot/mc-utils/* ${DEPLOYDIR}/mc-utils/
 }
 addtask deploy after do_install
 
 PACKAGES += "${PN}-image"
 FILES:${PN}-image += "/boot"
+PACKAGE_ARCH = "${MACHINE_ARCH}"
 COMPATIBLE_MACHINE = "(qoriq-arm64)"