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

Bipnesh, Abhinav (Abhinav) abhinavbipnesh at avaya.com
Tue Oct 18 05:03:31 PDT 2016


Hi,

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"
do_configure() {

     export TRANSCODER="NATIVE"
     export MESSAGELOADER="INMEM"
     export NETACCESSOR="Socket"
     export THREADS="pthread"
     export LIBTYPE="shared"
     export BITSTOBUILD="32"
     export CXXFLAGS=" -O2 -pipe -feliminate-unused-debug-types -w -O2 -DNDEBUG -DPROJ_XMLPARSER -DPROJ_XMLUTIL -DPROJ_PARSERS -DPROJ_SAX4C -DPROJ_SAX2 -DPROJ_DOM -     DPROJ_DEPRECATED_DOM -DPROJ_VALIDATORS -DXML_USE_NATIVE_TRANSCODER -DXML_USE_INMEM_MESSAGELOADER -DXML_USE_PTHREADS -DXML_USE_NETACCESSOR_SOCKET "
     export CFLAGS=" -O2 -pipe -feliminate-unused-debug-types -w -O2 -DNDEBUG -DPROJ_XMLPARSER -DPROJ_XMLUTIL -DPROJ_PARSERS -DPROJ_SAX4C -DPROJ_SAX2 -DPROJ_DOM -       DPROJ_DEPRECATED_DOM -DPROJ_VALIDATORS -DXML_USE_NATIVE_TRANSCODER -DXML_USE_INMEM_MESSAGELOADER -DXML_USE_PTHREADS -DXML_USE_NETACCESSOR_SOCKET "
     export LDFLAGS="-Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed "
     export LIBS=" -lpthread "
     sh ${S}/configure --prefix=${D}${prefix} --build=${BUILD_SYS} --host=${HOST_SYS} --target=${TARGET_SYS}
}

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.

Thanks,
Abhinav
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20161018/76386151/attachment.html>


More information about the yocto mailing list