[poky] Please ensure you are using layout variables in recipes
Koen Kooi
koen at dominion.thruhere.net
Tue Jan 25 09:52:35 PST 2011
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 :)
regards,
Koen
More information about the poky
mailing list