[poky] Please ensure you are using layout variables in recipes
Joshua Lock
josh at linux.intel.com
Tue Jan 25 09:59:05 PST 2011
On Tue, 2011-01-25 at 18:52 +0100, Koen Kooi wrote:
> Op 25 jan 2011, om 13:35 heeft Joshua Lock het volgende geschreven:
>
> > Hi all,
> >
> > When creating/editing recipes can we please ensure consistent use of
> > layout variables, rather than absolute paths.
> >
> > For example use:
> >
> > ${bindir}/foo
> > ${datadir}/bar
> > and
> > ${base_sbindir}/baz
> >
> > rather than:
> >
> > /usr/bin/foo
> > /usr/share/bar
> > and
> > /sbin/baz
> >
> > The layout variables are defined in bitbake.conf and we should have
> > pretty much everything we need there, if you feel some are missing
> > please submit a patch (we've recently added some for cross and nativesdk
> > use, for example).
>
> Some care needs to be taking with that, though, since things like
> initscripts, config files and udev rules might have the hardcoded paths
> inside. In OE the 'micro' distro sets $prefix to "" instead of "/usr",
> which uncovered a world of hurt. Adding a sed s:usr/bin:${bindir}:g -i
> initscript to do_install is an easy enough way to fix it :)
>
Indeed, we have a few instances of that (particularly in meta-demo) -
good shout on something to keep an eye out for.
Thanks,
Joshua
--
Joshua Lock
Intel Open Source Technology Centre
More information about the poky
mailing list