[poky] error while compiling hello_2.7.bb

Richard Purdie richard.purdie at linuxfoundation.org
Mon Dec 19 05:55:10 PST 2016


On Mon, 2016-12-19 at 18:10 +0530, praveen vattipalli wrote:
> Hi All,
> I have hello_2.7.bb file which contains as below
> vim hello_2.7.bb
> DESCRIPTION = "GNU Helloworld application"
> SECTION = "test"
> LICENSE = "BSD"
> 
> LIC_FILES_CHKSUM =
> "file://${COMMON_LICENSE_DIR}/BSD;md5=3775480a712fc46a69647678acb234c
> b"
> SRC_DIR ?= "/home/rajesh/poky-krogoth-15.0.2/meta/recipes-
> support/hello/hello_2.7"
> SRC_URI = "file://${SRC_DIR}"
> 
> S = "${SRC_DIR}"

You don't want to set S to this as you're then building things in your
metadata directory. I suspect the code in more recent versions cleans
${S} before fetching/unpacking and this is wiping out your files.

You probably want S = "${WORKDIR}" or maybe S = "${WORKDIR}/hello_2.7",
I can't remember exactly where the fetcher places a directory of files.

Cheers,

Richard


More information about the poky mailing list