[yocto] autotools --prefix ignored?

Khem Raj raj.khem at gmail.com
Sat Aug 8 12:37:21 PDT 2015


> On Aug 7, 2015, at 7:28 AM, Adam Rossi <ac.rossi at gmail.com> wrote:
> 
> Hi folks. I have tried a number of different ways to control the
> installation location of an auto tools-based project. From the command
> line I would run:
> 
> ./bootstrap
> ./configure --prefix=/opt/myfolder
> make
> make install
> 
> In my recipe I tried a number of ways to keep the binary out of
> /usr/bin, but none seem to work. Relevant parts of the recipe:
> 
> inherit autotools
> EXTRA_OECONF = "--prefix=${D}/opt/myfolder”

you should look into the build scripts run.do_configure for this recipe
and see if its honoring your —prefix and ${D} in there is wrong since this
is the prefix you want it to appear in on target which usually is relative to /
> 
> The above is ignored, auto tools puts the results in /usr/bin
> 
> I also tried to override the do configure:
> 
> do_configure() {
>        oe_runconf --prefix=${D}/opt/myfolder
> }
> 
> But I get complaints that the configure script is not found. I realize
> I am trying to swim upstream by controlling this location, but the
> heart wants what the heart wants. Any ideas?
> -- 
> _______________________________________________
> yocto mailing list
> yocto at yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto




More information about the yocto mailing list