[yocto] Problem with staging dir in Makefile.am

Khem Raj raj.khem at gmail.com
Mon Oct 28 17:32:10 PDT 2013


On Fri, Oct 25, 2013 at 3:46 AM, Hans Beckérus <hans.beckerus at gmail.com> wrote:
> Hi. I have a package that tries to point to a staged/installed source
> file (shared) in the list of files to be compiled.
> But how should the Makefile.am properly pick-up the current staging
> dir for my target?
> Currently it is simply using /usr/share/foo/foo.c, but obviously that
> will not work when cross-compiling or using native staging dirs.
> Any suggestion to in what way a Makefile.am should be written to
> handle such a case?
> I tried using $(DESTDIR) but that does not seem to be populated in this context.

hmm, is this a source from a different package ?
I guess for Makefile.am you could use STAGING_DATADIR  OE variable
if there is some ac_cv_* variable that you can use to bridge this
environments then it will make it portable beyond openembedded.

>
> Thanks.
> Hans
> _______________________________________________
> yocto mailing list
> yocto at yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto



More information about the yocto mailing list