构建了新的Yocto食谱,但在编译后删除了工作目录

时间:2018-10-16 00:37:04

标签: linux yocto zbar openembedded

我正在尝试将zbar的配方从0.10.0更新为0.20.1。这是原始食谱:

https://github.com/openembedded/meta-openembedded/blob/master/meta-oe/recipes-support/zbar/zbar_0.10.bb

我修改过的食谱位于该问题的底部。软件包确实可以编译,但是问题是在“打包”步骤期间发生了某些事情,除了“工作”目录中的“临时”目录外,“工作”目录已被清除。在编译期间,如果我在工作目录中列出文件,则可以看到我期望的所有内容,但是在编译成功后,将清理文件。我究竟做错了什么?

在编译期间:

user@ubuntu:~/rpi/build/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/zbar/0.20.1-r0$ cd ../0.20.1-r0/ ; ls
build              image            pkgdata                sysroot-destdir
configure.sstate   license-destdir  pseudo                 temp
debugsources.list  package          recipe-sysroot
git                packages-split   recipe-sysroot-native

编译后:

user@ubuntu:~/rpi/build/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/zbar/0.20.1-r0$ cd ../0.20.1-r0/ ; ls
temp

Yocto食谱:

DESRIPTION = "2D barcode scanner toolkit."
SECTION = "graphics"
LICENSE = "LGPL-2.1"

DEPENDS = "pkgconfig intltool-native libpng jpeg"

LIC_FILES_CHKSUM = "file://LICENSE;md5=243b725d71bb5df4a1e5920b344b86ad"

S = "${WORKDIR}/git"

SRCREV = "edcf08b49e0a5fe71c18fa9d4b8ed83ed8fc9082"
SRC_URI = "git://github.com/mchehab/zbar.git"

inherit autotools pkgconfig

EXTRA_OECONF = " --without-x --without-imagemagick --without-qt --without-python2 --disable-video --without-gtk"

FILES_${PN} += "${bindir}"
FILES_${PN} += "${libdir}"

do_install_append() {
    echo "done..."
}

1 个答案:

答案 0 :(得分:3)

这是由于rm_work类。您可以删除

INHERIT += "rm_work"

this from local.conf或相应的图像配方文件中。或者,您可以使用,仅对您的食谱禁用rm_work,

RM_WORK_EXCLUDE += "zbar"

conf/local.conf中。