Bitbake - 非调试包包含 .debug 目录
Bitbake - non debug package contains .debug directory
我需要从 Bitbake 脚本创建一个 .ipk 包。我的 bb 文件:
...
PR = "r0"
PACKAGES = "${PN}"
SRC_URI = " \
file://mypackage \
file://mypackage-startup \
"
do_install() {
install -m 0775 -d ${D}/userdata/costume
install -m 0744 ${WORKDIR}/mypackage ${D}/userdata/costume/mypackage
install -m 0644 ${WORKDIR}/mypackage-startup ${D}/userdata/costume/mypackage-startup
}
FILES_${PN} += "/userdata/costume"
FILES_${PN}-dbg += "/userdata/costume/.debug"
...
但是我收到下一个错误:
ERROR: QA Issue with mypackage: non debug package contains .debug
directory: mypackage path
/work/.../mypackage-1.0-r0/packages-split/mypackage/userdata/costume/.debug/mypackage
FATAL: QA run found fatal errors. Please consider fixing them. ERROR:
Error in executing python function in:
/home/nickname/build/mypackage.bb ERROR:
Exception: Message:1 ERROR: Printing the
environment of the function ERROR: Function do_package_qa failed
ERROR: TaskFailed event exception, aborting ERROR: Build of
/home/nickname/build/mypackage.bb do_package failed
FILES_${PN}-dbg
行是上网后添加的。但是这个修复对我的情况没有帮助。
您设置了PACKAGES = "${PN}"
,这意味着永远不会创建调试包(PACKAGES 的默认值确实包含${PN}-dbg)。
删除 PACKAGES 行(如果您没有充分的理由)或使用
PACKAGES = "${PN}-dbg ${PN}"
我需要从 Bitbake 脚本创建一个 .ipk 包。我的 bb 文件:
...
PR = "r0"
PACKAGES = "${PN}"
SRC_URI = " \
file://mypackage \
file://mypackage-startup \
"
do_install() {
install -m 0775 -d ${D}/userdata/costume
install -m 0744 ${WORKDIR}/mypackage ${D}/userdata/costume/mypackage
install -m 0644 ${WORKDIR}/mypackage-startup ${D}/userdata/costume/mypackage-startup
}
FILES_${PN} += "/userdata/costume"
FILES_${PN}-dbg += "/userdata/costume/.debug"
...
但是我收到下一个错误:
ERROR: QA Issue with mypackage: non debug package contains .debug directory: mypackage path /work/.../mypackage-1.0-r0/packages-split/mypackage/userdata/costume/.debug/mypackage FATAL: QA run found fatal errors. Please consider fixing them. ERROR: Error in executing python function in: /home/nickname/build/mypackage.bb ERROR: Exception: Message:1 ERROR: Printing the environment of the function ERROR: Function do_package_qa failed ERROR: TaskFailed event exception, aborting ERROR: Build of /home/nickname/build/mypackage.bb do_package failed
FILES_${PN}-dbg
行是上网后添加的。但是这个修复对我的情况没有帮助。
您设置了PACKAGES = "${PN}"
,这意味着永远不会创建调试包(PACKAGES 的默认值确实包含${PN}-dbg)。
删除 PACKAGES 行(如果您没有充分的理由)或使用
PACKAGES = "${PN}-dbg ${PN}"