I've created a simple recipe based on an example from the Poky Reference manual (I've added a license to get it to build):

DESCRIPTION = "Simple helloworld application"
SECTION = "examples"
LICENSE = "MIT"

LIC_FILES_CHKSUM = "file://LICENSE;md5=6d43ecbcf91bccef1e852520086c219c"

PR = "r0"

SRC_URI = "file://helloworld.c file://LICENSE"

S = "${WORKDIR}"

do_compile() {
 ${CC} helloworld.c -o helloworld
}

do_install() {
 install -d ${D}${bindir}
 install -m 0755 helloworld ${D}${bindir}
}

However, if I 'bitbake test' the code isn't compiled:

NOTE: Running setscene task 178 of 276 (/home/chris/poky-dev/meta/ recipes-keylevel/test/test_0.1.0.bb:do_populate_sysroot_setscene) NOTE: Running setscene task 179 of 276 (/home/chris/poky-dev/meta/ recipes-keylevel/test/test_0.1.0.bb:do_package_setscene)
NOTE: package test-0.1.0-r0: task do_populate_sysroot_setscene: Started
NOTE: package test-0.1.0-r0: task do_package_setscene: Started
NOTE: package test-0.1.0-r0: task do_populate_sysroot_setscene: Succeeded NOTE: Running setscene task 180 of 276 (/home/chris/poky-dev/meta/ recipes-keylevel/test/test_0.1.0.bb:do_populate_lic_setscene)
NOTE: package test-0.1.0-r0: task do_package_setscene: Succeeded
NOTE: package test-0.1.0-r0: task do_populate_lic_setscene: Started
NOTE: Running setscene task 181 of 276 (/home/chris/poky-dev/meta/ recipes-keylevel/test/test_0.1.0.bb:do_package_write_ipk_setscene)
NOTE: package test-0.1.0-r0: task do_populate_lic_setscene: Succeeded
NOTE: package test-0.1.0-r0: task do_package_write_ipk_setscene: Started
NOTE: package test-0.1.0-r0: task do_package_write_ipk_setscene: Succeeded
NOTE: Executing RunQueue Tasks
NOTE: Running noexec task 828 of 829 (ID: 9, /home/chris/poky-dev/meta/ recipes-keylevel/test/test_0.1.0.bb, do_package_write) NOTE: Running noexec task 829 of 829 (ID: 4, /home/chris/poky-dev/meta/ recipes-keylevel/test/test_0.1.0.bb, do_build)


Why doesn't the code get built?

Chris Tapp

opensou...@keylevel.com
www.keylevel.com



_______________________________________________
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto

Reply via email to