我正在尝试构建一个自定义 yocto 配方,其中涉及编译一个小型 C 程序。在构建期间 -
$ bitbake -f interface-configuration
...
ERROR: QA Issue: non debug package contains .debug directory: interface-configuration path /work/cortexa9hf-vfp-poky-linux-gnueabi/interface-configuration/0.1-r0/packages-split/interface-configuration/etc/interfaces/bin/.debug/set
ERROR: QA run found fatal errors. Please consider fixing them.
ERROR: Function failed: do_package_qa
ERROR: Logfile of failure stored in: /home/git/poky/build-atmel/tmp/work/cortexa9hf-vfp-poky-linux-gnueabi/interface-configuration/0.1-r0/temp/log.do_package.28986
ERROR: Task 10 (/home/git/poky/meta-atmel/recipes-intelli/interface-configuration/interface-configuration_0.1.bb, do_package) failed with exit code '1'
我想知道这里是否有人知道如何禁用调试信息或删除 QA 检查。到目前为止,谷歌搜索该错误已被证明是徒劳的。
干杯
使用 interface-configuration.bb 更新
DESCRIPTION = "Interface configuration files and tools"
SECTION = "examples"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://LICENSE;md5=3f40d7994397109285ec7b81fdeb3b58"
SRC_URI = "file://interface-configuration-0.1.tar.gz"
do_compile() {
install -vd ${D}/
${CC} -g0 set.c -o set
# CC is arm-poky-linux-gnueabi-gcc -march=armv7-a -marm -mthumb-interwork -mfloat-abi=hard -mtune=cortex-a9 --sysroot=/home/git/poky/build-atmel/tmp/sysroots/sama5d3xek
}
do_install() {
cp -r ${S}/etc ${D}/etc
install -vd ${D}/etc/interfaces/bin
install -vm 0755 set ${D}/etc/interfaces/bin/
}
do_install_append() {
# I added this to try to remove the error - it doesn't work
rm -rf ${D}/etc/interfaces/bin/.debug
}
FILES_${PN} += "/etc/interfaces/MANIFEST \
/etc/interfaces/conf/A \
/etc/interfaces/conf/B \
/etc/interfaces/conf/C \
/etc/interfaces/conf/D \
/etc/interfaces/template/A \
/etc/interfaces/template/B \
/etc/interfaces/template/C \
/etc/interfaces/template/D \
/set.c"