nick
2018-11-27 06:39:23 UTC
Greetings All,
I am wondering how to forget about package QA in the best way possible just to get this basic hello world test package to build in a
new layer I created:
SUMMARY = "Simple Hello World Application"
DESCRIPTION = "A test application to demonstrate how to create a recipe \
by directly compiling C files with BitBake."
SECTION = "examples"
PRIORITY = "optional"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "\
file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302"
SRC_URI = "file://hello-1.0.tgz"
S = "${WORKDIR}"
do_compile() {
${CC} -c helloprint.c
${CC} -c hello.c
${CC} -o hello hello.o helloprint.o
}
do_install() {
install -d ${D}${bindir}
install -m 0755 hello ${D}${bindir}
}
This the errors when I run it with bitbake -b recipe name in the layer's folder:
ERROR: hello-1.0-r0 do_package_qa: QA Issue: No GNU_HASH in the elf binary: '/home/nick/poky/build/tmp/work/i586-poky-linux/hello/1.0-r0/packages-split/hello/usr/bin/hello' [ldflags]
WARNING: hello-1.0-r0 do_package_qa: QA Issue: hello rdepends on glibc, but it isn't a build dependency, missing glibc in DEPENDS or PACKAGECONFIG? [build-deps]
ERROR: hello-1.0-r0 do_package_qa: QA run found fatal errors. Please consider fixing them.
ERROR: hello-1.0-r0 do_package_qa: Function failed: do_package_qa
ERROR: Logfile of failure stored in: /home/nick/poky/build/tmp/work/i586-poky-linux/hello/1.0-r0/temp/log.do_package_qa.29042
ERROR: Task (/home/nick/poky/build/layer/hello_1.0.bb:do_package_qa) failed with exit code '1'
NOTE: Tasks Summary: Attempted 13 tasks of which 7 didn't need to be rerun and 1 failed.
Huge Thanks,
Nick
--
I am wondering how to forget about package QA in the best way possible just to get this basic hello world test package to build in a
new layer I created:
SUMMARY = "Simple Hello World Application"
DESCRIPTION = "A test application to demonstrate how to create a recipe \
by directly compiling C files with BitBake."
SECTION = "examples"
PRIORITY = "optional"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "\
file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302"
SRC_URI = "file://hello-1.0.tgz"
S = "${WORKDIR}"
do_compile() {
${CC} -c helloprint.c
${CC} -c hello.c
${CC} -o hello hello.o helloprint.o
}
do_install() {
install -d ${D}${bindir}
install -m 0755 hello ${D}${bindir}
}
This the errors when I run it with bitbake -b recipe name in the layer's folder:
ERROR: hello-1.0-r0 do_package_qa: QA Issue: No GNU_HASH in the elf binary: '/home/nick/poky/build/tmp/work/i586-poky-linux/hello/1.0-r0/packages-split/hello/usr/bin/hello' [ldflags]
WARNING: hello-1.0-r0 do_package_qa: QA Issue: hello rdepends on glibc, but it isn't a build dependency, missing glibc in DEPENDS or PACKAGECONFIG? [build-deps]
ERROR: hello-1.0-r0 do_package_qa: QA run found fatal errors. Please consider fixing them.
ERROR: hello-1.0-r0 do_package_qa: Function failed: do_package_qa
ERROR: Logfile of failure stored in: /home/nick/poky/build/tmp/work/i586-poky-linux/hello/1.0-r0/temp/log.do_package_qa.29042
ERROR: Task (/home/nick/poky/build/layer/hello_1.0.bb:do_package_qa) failed with exit code '1'
NOTE: Tasks Summary: Attempted 13 tasks of which 7 didn't need to be rerun and 1 failed.
Huge Thanks,
Nick
--