[poky] error while compiling hello_2.7.bb

praveen vattipalli praveen.vatt at gmail.com
Wed Dec 21 02:52:13 PST 2016


Hi Richard,
setting S = "${WORKDIR}/hello_2.7" or S = "${WORKDIR}"  didn't work. I used

in build/conf/local.conf

INHERIT += "externalsrc"
EXTERNALSRC_pn-hello =
"/home/rajesh/Downloads/poky-krogoth-15.0.2/meta/recipes-extended/hello/hello_2.7"
EXTERNALSRC_BUILD_pn-hello =
"/home/rajesh/Downloads/poky-krogoth-15.0.2/meta/recipes-extended/hello/hello_2.7"

in hello_2.7.bb

EXTERNALSRC =
"/home/rajesh/Downloads/poky-krogoth-15.0.2/meta/recipes-extended/hello/hello_2.7"
EXTERNALSRC_BUILD =
"/home/rajesh/Downloads/poky-krogoth-15.0.2/meta/recipes-extended/hello/hello_2.7"

now i could compile.

Thanks,
Praveen.


On Mon, Dec 19, 2016 at 7:25 PM, Richard Purdie <
richard.purdie at linuxfoundation.org> wrote:

> 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/poky/attachments/20161221/895c417d/attachment.html>


More information about the poky mailing list