Re: [yocto] Set ${WORKDIR}/build to ${S}

2016-10-18 Thread Pascal Bach

there a way to tell do_configure to use ${S} and not ${WORKDIR}/build.

> Sure set
> B = "${S}"
Instead of setting this I suggest using "inherit autotools-brokensep" this 
clearly indicates that out of tree builds are broken

Pascal
-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


Re: [yocto] Set ${WORKDIR}/build to ${S}

2016-10-18 Thread Anders Darander
* Bipnesh, Abhinav (Abhinav)  [161018 14:06]:

> I am trying to write a recipe for one of the library. It uses a
> somewhat modified autotools for building the complete code base. The
> issue I am facing here is that when do_configure run it put the
> generated files in build directory. Below is the layout

> S = "${WORKDIR}/xerces-c-src_2_8_0/src/xercesc"

Have you looked at:
http://cgit.openembedded.org/cgit.cgi/meta-openembedded/tree/meta-oe/recipes-devtools/xerces-c/xerces-c_3.1.4.bb?h=master

> Now as the do_configure will put data in ${WORKDIR}/build. But I want that 
> the generated data should be in ${S}.

> Is there a way to tell do_configure to use ${S} and not ${WORKDIR}/build.

Sure set
B = "${S}"

Though, I'd rather suggest trying to get the library to build
out-of-tree. If you can get that going, it'll be better in the long run.

Cheers,
Anders

-- 
Anders Darander, Senior System Architect
ChargeStorm AB / eStorm AB
-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto