天天看點

imx6ull增加qt5 qtserialbus庫

meta-qt5庫位址:

https://code.qt.io/cgit/yocto/meta-qt5.git/

1、在fsl-release-yocto/sources/meta-qt5/recipes-qt/qt5目錄下建立qtserialbus_git.bb檔案,檔案内容如下:

1 require qt5.inc

2 require qt5-git.inc

3

4 # There are no LGPLv3-only licensed files in this component.

5 # There are no GPLv2 licensed files in this component.

6 LICENSE = "GFDL-1.3 & BSD & (LGPL-2.1 & The-Qt-Company-Qt-LGPL-Exception-1.1 | LGPL-3.0)"

7 LIC_FILES_CHKSUM = " \

8 file://LICENSE.GPLv2;md5=c96076271561b0e3785dad260634eaa8 \

9 file://LICENSE.LGPLv3;md5=e0459b45c5c4840b353141a8bbed91f0 \

10 file://LICENSE.GPLv3;md5=88e2b9117e6be406b5ed6ee4ca99a705 \

11 file://LICENSE.FDL;md5=f70ee9a6c44ae8917586fea34dff0ab5 \

12 "

13

14 DEPENDS += "qtbase"

15

16 SRCREV = "aeff2334ef6dd95d8b1cde39d94b92081c5d499f"

SRCREV指的是qtserialbus倉庫的commitID,倉庫位址:

https://github.com/qt/qtserialbus

,注意選擇與SDK中qt版本相對應的branch。

如果不知道md5值的話,編譯時會報錯,報錯資訊有給出正确的值,如下圖所示:

2、在fsl-release-yocto/sources目錄下執行指令:find -name fsl-image-qt5.bb*

可以看到fsl-image-qt5.bb檔案路徑,打開meta-fsl-bsp-release/imx/meta-sdk/recipes-fsl/images/fsl-image-qt5.bb檔案:

可以看到包含了recipes-fsl/images/fsl-image-qt5-validation-imx.bb檔案,打開并增加如下圖選中的内容:

其它地方不用管,編譯後自動生成的,隻增加這一處即可,然後編譯就添加進SDK生成的固件中了。