标签:查看 pes 版本 软件 deploy dia ros files size
Yocto中一个软件包是放在bb文件里的,然后非常多的bb文件集成一个recipe(配方),然后很多的recipe又组成一个meta layer。因此,要加入一个包事实上就是在recipe以下加入一个bb(bitbake配置文件)。以下使用helloworld作为一个样例。
首先是进入到一个recipe文件夹下,比如以下就是到了recipes-graphics:
$ pwd /media/work/iMX6/Yocto/sources/meta-fsl-arm/recipes-graphics
git clone https://github.com/tonyho/helloYocto.git
09:25 hexiongjun:imx6qsabresd_build $ bitbake -s | grep hello hello :3-r0
使用tree能够看到,其有一个bb文件,然后当中另一个文件夹放着Makefile与source code:
当中的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文件里指定了以下几个变量的值:
还有两个方法,这2个方法重载了bitbake中默认方法:
这两个方法。相应了Package中的compile与install task。
Yocto tips (10): Yocto hellworld 加入一个软件包
标签:查看 pes 版本 软件 deploy dia ros files size
原文地址:http://www.cnblogs.com/jhcelue/p/6985779.html