<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                企業??AI智能體構建引擎,智能編排和調試,一鍵部署,支持知識庫和私有化部署方案 廣告
                Yocto中一個軟件包是放在bb文件中的,然后很多的bb文件集成一個recipe(配方),然后許多的recipe又組成一個meta layer,因此,要添加一個包其實就是在recipe下面添加一個bb(bitbake配置文件)。下面使用helloworld作為一個例子。 ### clone bb文件 首先是進入到一個recipe目錄下,例如下面就是到了recipes-graphics: ~~~ $ pwd /media/work/iMX6/Yocto/sources/meta-fsl-arm/recipes-graphics ~~~ 然后clone Package配置與source目錄的repo: ~~~ git clone https://github.com/tonyho/helloYocto.git ~~~ ### 查看軟件包是否已經在Yocto中 ~~~ 09:25 hexiongjun:imx6qsabresd_build $ bitbake -s | grep hello hello :3-r0 ~~~ 確認在了以后,就可以執行編譯等task了,如果有需要也可以deploy到rootfs中,這些操作可以參考我以前的一些博客。 ### 一個軟件包的結構 使用tree可以看到,其有一個bb文件,然后其中還有一個目錄放著Makefile與source code: ![](https://box.kancloud.cn/2016-04-08_570776a15ba98.jpg) 其中的bb文件內容如下: ~~~ DESCRIPTION = "Hello World and Zlib test" DEPENDS = "zlib" SECTION = "libs" LICENSE = "MIT" PV = "3" PR = "r0" SRC_URI = " \ file://helloYocto.c \ file://zlibtest.c \ file://makefile \ " LIC_FILES_CHKSUM = "file://helloYocto.c;md5=2dac018fa193620dc085aa1402e0b346" S = "${WORKDIR}" do_compile () { make } do_install () { install -d ${D}${bindir}/ install -m 0755 ${S}/helloYocto ${D}${bindir}/ install -m 0755 ${S}/zlibtest ${D}${bindir}/ } FILES_${PN} = "${bindir}/helloYocto \ ${bindir}/zlibtest " ~~~ 可以看到,bb文件中指定了下面幾個變量的值: 1. SRC_URI 1. LIC_FILES_CHKSUM:這個是checksum,如果是基于版本管理的source,那么不需要,例如git與svn 1. FILES_$(PN):PN是Package number,指代軟件版本使用的PV與PR結合表示,即前面bitbake -s中看到的3-r0 還有兩個方法,這2個方法重載了bitbake中默認方法: 1. do_compile 1. do_install 這兩個方法,對應了Package中的compile與install task。
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看