<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic How to build json on Yocto in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/How-to-build-json-on-Yocto/m-p/993555#M147395</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV class=""&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am having iMX8M Miini EVK and I am able to build - "&lt;STRONG&gt;core-image-minimal&lt;/STRONG&gt;" yocto image for iMX8M Mini.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am following all the steps given in user guide -&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;IMXLXYOCTOUG&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Rev. L4.19.35_1.1.0, 11/2019&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;i.MX Yocto Project User's Guide&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;But Now I want to build and add &lt;STRONG&gt;json 11&lt;/STRONG&gt; in my yocto build but I am facing below issue - &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;******************************************************************&lt;/P&gt;&lt;P&gt;1. My&amp;nbsp;&lt;STRONG&gt;json11_1.0.0.bb&lt;/STRONG&gt; and &lt;STRONG&gt;layer.conf&lt;/STRONG&gt;&amp;nbsp; files are below -&amp;gt;&lt;/P&gt;&lt;P&gt;******************************************************************&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;/home/MX8M_Yocto_Build/sources/meta-json11/recipes-json11/json11&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;***********************************************************************************&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;json11_1.0.0.bb&lt;/STRONG&gt;&lt;/P&gt;SUMMARY = "JSON11 bindings for apps which will manipulate JSON data"&lt;BR /&gt;DESCRIPTION = "JSON11 implements a reference counting object model that allows you to easily construct JSON objects in C++11."&lt;BR /&gt;HOMEPAGE = "https://github.com/dropbox/json11"&lt;BR /&gt;LICENSE = "CLOSED"&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;SRC_URI = "https://github.com/dropbox/json11/archive/v1.0.0.zip;"&lt;P&gt;&lt;/P&gt;S = "${WORKDIR}/json11-${PV}"&lt;P&gt;&lt;/P&gt;SRC_URI[md5sum] = "e69da5a76ba4cc41ab548d2c1045972d"&lt;BR /&gt;SRC_URI[sha256sum] = "c8bddf94e0cb40cd396480c02198f69ed3c1097446ea6e9730c16a0d568031c1"&lt;P&gt;&lt;/P&gt;inherit autotools cmake pkgconfig&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&lt;STRONG&gt;/home/MX8M_Yocto_Build/sources/meta-json11/conf&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;***********************************************************************************&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&lt;STRONG&gt;layer.conf&lt;/STRONG&gt;&lt;/P&gt;# We have a conf and classes directory, add to BBPATH&lt;BR /&gt;BBPATH .= ":${LAYERDIR}"&lt;P&gt;&lt;/P&gt;# We have recipes-* directories, add to BBFILES&lt;BR /&gt;BBFILES += "${LAYERDIR}/recipes-*/*/*.bb \&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ${LAYERDIR}/recipes-*/*/*.bbappend"&lt;P&gt;&lt;/P&gt;BBFILE_COLLECTIONS += "json11"&lt;BR /&gt;BBFILE_PATTERN_json11 = "^${LAYERDIR}/"&lt;BR /&gt;BBFILE_PRIORITY_json11 = "6"&lt;P&gt;&lt;/P&gt;LAYERVERSION_json11 = "1"&lt;BR /&gt;LAYERSERIES_COMPAT_json11 = "rocko sumo thud warrior"&lt;BR /&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&lt;/P&gt;&lt;P&gt;******************************************************************&lt;/P&gt;&lt;P&gt;2. build the json 11 using bitbake command &lt;/P&gt;&lt;P&gt;******************************************************************&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;Apart from this I add below lines in following files =&amp;gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&lt;STRONG&gt;bblayers.conf&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;BBLAYERS += "${BSPDIR}/sources/meta-json11"&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&lt;STRONG&gt;local.conf&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;IMAGE_INSTALL_append = " json11"&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;And when I run &lt;STRONG&gt;bitbake json11&lt;/STRONG&gt; command&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;json is getting compiled successfully and its binaries are also created in -&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;/home/iMX8M_Yocto_Build/imx8M_build_xwayland/tmp/work/aarch64-poky-linux/json11/1.0-r0&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;******************************************************************&lt;P&gt;2. build the json 11 with core-image-minimal using bitbake command &lt;/P&gt;&lt;P&gt;******************************************************************&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&lt;STRONG&gt;core-image-minimal.bb&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;MAGE_INSTALL += " json11"&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&lt;STRONG&gt;but when i try to add this with yocto and build core-image-minimal I get error -&lt;/STRONG&gt; &lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;ERROR: core-image-minimal-1.0-r0 do_rootfs: Could not invoke dnf. Command '/home/iMX8M_Yocto_Build/imx8M_build_xwayland/tmp/work/imx8mmevk-poky-linux/core-image-minimal/1.0-r0/recipe-sysroot-native/usr/bin/dnf -v --rpmverbosity=info -y -c /home/iMX8M_Yocto_Build/imx8M_build_xwayland/tmp/work/imx8mmevk-poky-linux/core-image-minimal/1.0-r0/rootfs/etc/dnf/dnf.conf --setopt=reposdir=/home/iMX8M_Yocto_Build/imx8M_build_xwayland/tmp/work/imx8mmevk-poky-linux/core-image-minimal/1.0-r0/rootfs/etc/yum.repos.d --installroot=/home/iMX8M_Yocto_Build/imx8M_build_xwayland/tmp/work/imx8mmevk-poky-linux/core-image-minimal/1.0-r0/rootfs --setopt=logdir=/home/iMX8M_Yocto_Build/imx8M_build_xwayland/tmp/work/imx8mmevk-poky-linux/core-image-minimal/1.0-r0/temp --repofrompath=oe-repo,/home/iMX8M_Yocto_Build/imx8M_build_xwayland/tmp/work/imx8mmevk-poky-linux/core-image-minimal/1.0-r0/oe-rootfs-repo --nogpgcheck install packagegroup-fsl-optee-imx packagegroup-core-boot jailhouse mongodb-c-driver json11 run-postinsts' returned 1:&lt;BR /&gt;DNF version: 4.1.0&lt;BR /&gt;cachedir: /home/iMX8M_Yocto_Build/imx8M_build_xwayland/tmp/work/imx8mmevk-poky-linux/core-image-minimal/1.0-r0/rootfs/var/cache/dnf&lt;BR /&gt;Added oe-repo repo from /home/iMX8M_Yocto_Build/imx8M_build_xwayland/tmp/work/imx8mmevk-poky-linux/core-image-minimal/1.0-r0/oe-rootfs-repo&lt;BR /&gt;repo: using cache for: oe-repo&lt;BR /&gt;not found other for: &lt;BR /&gt;not found modules for: &lt;BR /&gt;not found deltainfo for: &lt;BR /&gt;not found updateinfo for: &lt;BR /&gt;oe-repo: using metadata from Thu 06 Feb 2020 10:25:54 AM UTC.&lt;BR /&gt;Last metadata expiration check: 0:00:01 ago on Thu 06 Feb 2020 10:25:56 AM UTC.&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;No module defaults found&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;No match for argument: json11&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;Error: Unable to find a match&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ERROR: core-image-minimal-1.0-r0 do_rootfs: &lt;BR /&gt;ERROR: core-image-minimal-1.0-r0 do_rootfs: Function failed: do_rootfs&lt;BR /&gt;ERROR: Logfile of failure stored in: /home/iMX8M_Yocto_Build/imx8M_build_xwayland/tmp/work/imx8mmevk-poky-linux/core-image-minimal/1.0-r0/temp/log.do_rootfs.8554&lt;BR /&gt;ERROR: Task (/home/iMX8M_Yocto_Build/sources/poky/meta/recipes-core/images/core-image-minimal.bb:do_rootfs) failed with exit code '1'&lt;BR /&gt;NOTE: Tasks Summary: Attempted 2939 tasks of which 2938 didn't need to be rerun and 1 failed.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;But When I check my binaries in folder&amp;nbsp; -&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;/home/iMX8M_Yocto_Build/imx8M_build_xwayland/tmp/work/aarch64-poky-linux/json11/1.0.0-r0&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;But still I am getting error that -&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&lt;STRONG&gt;&lt;EM&gt;No module defaults found&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;No match for argument: json11&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;Error: Unable to find a match&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&lt;/P&gt;&lt;P&gt;Please help me or suggest me what all changes or steps I need to do to solve this issue. &lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Maneesh&lt;/P&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 06 Feb 2020 11:31:33 GMT</pubDate>
    <dc:creator>msingh1920</dc:creator>
    <dc:date>2020-02-06T11:31:33Z</dc:date>
    <item>
      <title>How to build json on Yocto</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-build-json-on-Yocto/m-p/993555#M147395</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV class=""&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am having iMX8M Miini EVK and I am able to build - "&lt;STRONG&gt;core-image-minimal&lt;/STRONG&gt;" yocto image for iMX8M Mini.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am following all the steps given in user guide -&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;IMXLXYOCTOUG&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Rev. L4.19.35_1.1.0, 11/2019&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;i.MX Yocto Project User's Guide&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;But Now I want to build and add &lt;STRONG&gt;json 11&lt;/STRONG&gt; in my yocto build but I am facing below issue - &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;******************************************************************&lt;/P&gt;&lt;P&gt;1. My&amp;nbsp;&lt;STRONG&gt;json11_1.0.0.bb&lt;/STRONG&gt; and &lt;STRONG&gt;layer.conf&lt;/STRONG&gt;&amp;nbsp; files are below -&amp;gt;&lt;/P&gt;&lt;P&gt;******************************************************************&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;/home/MX8M_Yocto_Build/sources/meta-json11/recipes-json11/json11&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;***********************************************************************************&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;json11_1.0.0.bb&lt;/STRONG&gt;&lt;/P&gt;SUMMARY = "JSON11 bindings for apps which will manipulate JSON data"&lt;BR /&gt;DESCRIPTION = "JSON11 implements a reference counting object model that allows you to easily construct JSON objects in C++11."&lt;BR /&gt;HOMEPAGE = "https://github.com/dropbox/json11"&lt;BR /&gt;LICENSE = "CLOSED"&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;SRC_URI = "https://github.com/dropbox/json11/archive/v1.0.0.zip;"&lt;P&gt;&lt;/P&gt;S = "${WORKDIR}/json11-${PV}"&lt;P&gt;&lt;/P&gt;SRC_URI[md5sum] = "e69da5a76ba4cc41ab548d2c1045972d"&lt;BR /&gt;SRC_URI[sha256sum] = "c8bddf94e0cb40cd396480c02198f69ed3c1097446ea6e9730c16a0d568031c1"&lt;P&gt;&lt;/P&gt;inherit autotools cmake pkgconfig&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&lt;STRONG&gt;/home/MX8M_Yocto_Build/sources/meta-json11/conf&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;***********************************************************************************&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&lt;STRONG&gt;layer.conf&lt;/STRONG&gt;&lt;/P&gt;# We have a conf and classes directory, add to BBPATH&lt;BR /&gt;BBPATH .= ":${LAYERDIR}"&lt;P&gt;&lt;/P&gt;# We have recipes-* directories, add to BBFILES&lt;BR /&gt;BBFILES += "${LAYERDIR}/recipes-*/*/*.bb \&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ${LAYERDIR}/recipes-*/*/*.bbappend"&lt;P&gt;&lt;/P&gt;BBFILE_COLLECTIONS += "json11"&lt;BR /&gt;BBFILE_PATTERN_json11 = "^${LAYERDIR}/"&lt;BR /&gt;BBFILE_PRIORITY_json11 = "6"&lt;P&gt;&lt;/P&gt;LAYERVERSION_json11 = "1"&lt;BR /&gt;LAYERSERIES_COMPAT_json11 = "rocko sumo thud warrior"&lt;BR /&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&lt;/P&gt;&lt;P&gt;******************************************************************&lt;/P&gt;&lt;P&gt;2. build the json 11 using bitbake command &lt;/P&gt;&lt;P&gt;******************************************************************&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;Apart from this I add below lines in following files =&amp;gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&lt;STRONG&gt;bblayers.conf&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;BBLAYERS += "${BSPDIR}/sources/meta-json11"&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&lt;STRONG&gt;local.conf&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;IMAGE_INSTALL_append = " json11"&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;And when I run &lt;STRONG&gt;bitbake json11&lt;/STRONG&gt; command&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;json is getting compiled successfully and its binaries are also created in -&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;/home/iMX8M_Yocto_Build/imx8M_build_xwayland/tmp/work/aarch64-poky-linux/json11/1.0-r0&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;******************************************************************&lt;P&gt;2. build the json 11 with core-image-minimal using bitbake command &lt;/P&gt;&lt;P&gt;******************************************************************&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&lt;STRONG&gt;core-image-minimal.bb&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;MAGE_INSTALL += " json11"&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&lt;STRONG&gt;but when i try to add this with yocto and build core-image-minimal I get error -&lt;/STRONG&gt; &lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;ERROR: core-image-minimal-1.0-r0 do_rootfs: Could not invoke dnf. Command '/home/iMX8M_Yocto_Build/imx8M_build_xwayland/tmp/work/imx8mmevk-poky-linux/core-image-minimal/1.0-r0/recipe-sysroot-native/usr/bin/dnf -v --rpmverbosity=info -y -c /home/iMX8M_Yocto_Build/imx8M_build_xwayland/tmp/work/imx8mmevk-poky-linux/core-image-minimal/1.0-r0/rootfs/etc/dnf/dnf.conf --setopt=reposdir=/home/iMX8M_Yocto_Build/imx8M_build_xwayland/tmp/work/imx8mmevk-poky-linux/core-image-minimal/1.0-r0/rootfs/etc/yum.repos.d --installroot=/home/iMX8M_Yocto_Build/imx8M_build_xwayland/tmp/work/imx8mmevk-poky-linux/core-image-minimal/1.0-r0/rootfs --setopt=logdir=/home/iMX8M_Yocto_Build/imx8M_build_xwayland/tmp/work/imx8mmevk-poky-linux/core-image-minimal/1.0-r0/temp --repofrompath=oe-repo,/home/iMX8M_Yocto_Build/imx8M_build_xwayland/tmp/work/imx8mmevk-poky-linux/core-image-minimal/1.0-r0/oe-rootfs-repo --nogpgcheck install packagegroup-fsl-optee-imx packagegroup-core-boot jailhouse mongodb-c-driver json11 run-postinsts' returned 1:&lt;BR /&gt;DNF version: 4.1.0&lt;BR /&gt;cachedir: /home/iMX8M_Yocto_Build/imx8M_build_xwayland/tmp/work/imx8mmevk-poky-linux/core-image-minimal/1.0-r0/rootfs/var/cache/dnf&lt;BR /&gt;Added oe-repo repo from /home/iMX8M_Yocto_Build/imx8M_build_xwayland/tmp/work/imx8mmevk-poky-linux/core-image-minimal/1.0-r0/oe-rootfs-repo&lt;BR /&gt;repo: using cache for: oe-repo&lt;BR /&gt;not found other for: &lt;BR /&gt;not found modules for: &lt;BR /&gt;not found deltainfo for: &lt;BR /&gt;not found updateinfo for: &lt;BR /&gt;oe-repo: using metadata from Thu 06 Feb 2020 10:25:54 AM UTC.&lt;BR /&gt;Last metadata expiration check: 0:00:01 ago on Thu 06 Feb 2020 10:25:56 AM UTC.&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;No module defaults found&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;No match for argument: json11&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;Error: Unable to find a match&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ERROR: core-image-minimal-1.0-r0 do_rootfs: &lt;BR /&gt;ERROR: core-image-minimal-1.0-r0 do_rootfs: Function failed: do_rootfs&lt;BR /&gt;ERROR: Logfile of failure stored in: /home/iMX8M_Yocto_Build/imx8M_build_xwayland/tmp/work/imx8mmevk-poky-linux/core-image-minimal/1.0-r0/temp/log.do_rootfs.8554&lt;BR /&gt;ERROR: Task (/home/iMX8M_Yocto_Build/sources/poky/meta/recipes-core/images/core-image-minimal.bb:do_rootfs) failed with exit code '1'&lt;BR /&gt;NOTE: Tasks Summary: Attempted 2939 tasks of which 2938 didn't need to be rerun and 1 failed.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;But When I check my binaries in folder&amp;nbsp; -&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;/home/iMX8M_Yocto_Build/imx8M_build_xwayland/tmp/work/aarch64-poky-linux/json11/1.0.0-r0&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;But still I am getting error that -&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&lt;STRONG&gt;&lt;EM&gt;No module defaults found&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;No match for argument: json11&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;Error: Unable to find a match&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&lt;/P&gt;&lt;P&gt;Please help me or suggest me what all changes or steps I need to do to solve this issue. &lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Maneesh&lt;/P&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Feb 2020 11:31:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-build-json-on-Yocto/m-p/993555#M147395</guid>
      <dc:creator>msingh1920</dc:creator>
      <dc:date>2020-02-06T11:31:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to build json on Yocto</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-build-json-on-Yocto/m-p/993556#M147396</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have found that&amp;nbsp; do_install try to create few rpm packages such as base package, -dbg package, -dev package etc...&lt;/P&gt;&lt;P&gt;inside below folder of Yocto build&amp;nbsp; -&lt;/P&gt;&lt;P&gt;/tmp/work/aarch64-poky-linux/json11/1.0.0-r0/deploy-rpms/ &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and some pkgdata files inside - &lt;/P&gt;&lt;P&gt;/tmp/work/aarch64-poky-linux/json11/1.0.0-r0/pkgdata/runtime/&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But in my case -dbg, -dev rpm package is getting created but main rpm package is not getting created. because yocot don't create empty rpm package by default.&lt;/P&gt;&lt;P&gt;(but empty package for -dbg, -dev are allowed by default hence .rpm files for these are getting created but not for main package )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hence I used below line my .bb files and because of that empty rpm file for main package is also getting created.&amp;nbsp; -&lt;/P&gt;&lt;P&gt;ALLOW_EMPTY_${PN} = "1" &amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But After I do core-image-minimal it will succeed and built the .scdard image.&amp;nbsp;&lt;/P&gt;&lt;P&gt;But when I check in this image I found no lib files or header files are included for&amp;nbsp; my recipe i.e.json11.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I mean to say lib and header files of json11 is not getting added as part of core-image-minimal final image.&amp;nbsp;&lt;/P&gt;&lt;P&gt;May be its because of empty .rpm package and pkgdata file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Now My question is how can I solve this issue ? &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;What I need to do to add my .so files and header files of json11 to be included in&amp;nbsp; core-image-minimal image. &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Maneesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Feb 2020 10:51:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-build-json-on-Yocto/m-p/993556#M147396</guid>
      <dc:creator>msingh1920</dc:creator>
      <dc:date>2020-02-07T10:51:24Z</dc:date>
    </item>
  </channel>
</rss>

