[oe] [RFC] Per-ANGSTROM_MODE caches for Angstrom

pHilipp Zabel philipp.zabel at gmail.com
Sat Feb 16 15:39:42 UTC 2008


On Feb 16, 2008 2:01 PM, Paul Sokolovsky <pmiscml at gmail.com> wrote:
> Hello,
>
> It's pretty annoying to wait for cache rebuild each time ANGSTROM_MODE
> is swicthed, especially if that happens often. Following patch stores
> bitbake cache for each mode separately:
>
> #
> # old_revision [1821f6eadefc14ad7ce51d5ab026da139608f557]
> #
> # patch "conf/distro/include/angstrom.inc"
> #  from [b86b952c90304d1fd39f1415f6af7f71d02e00df]
> #    to [e7921869d30b7e5df3fd39fbd4bec5d2495b5d31]
> #
> ============================================================
> --- conf/distro/include/angstrom.inc    b86b952c90304d1fd39f1415f6af7f71d02e00df
> +++ conf/distro/include/angstrom.inc    e7921869d30b7e5df3fd39fbd4bec5d2495b5d31
> @@ -12,6 +12,7 @@ ANGSTROM_MODE ?= "glibc"
>  # Can be "glibc", "eglibc" or "uclibc"
>  ANGSTROM_MODE ?= "glibc"
>
> +CACHE = "${TMPDIR}/cache${@['', '/' + str(bb.data.getVar('ANGSTROM_MODE', d, 1))][bool(bb.data.getVar('ANGSTROM_MODE', d, 1))]}${@['', '/' + str(bb.data.getVar('MACHINE', d, 1))][bool(bb.data.getVar('MACHINE', d, 1))]}"
>  DEPLOY_DIR = "${TMPDIR}/deploy/${ANGSTROM_MODE}"
>  require conf/distro/include/angstrom-${ANGSTROM_MODE}.inc

+1, for the  idea, but why not just ${TMPDIR}/cache/${ANGSTROM_MODE} ?
And I don't understand why you need to include MACHINE there.
I've never needed to rebuild caches when switching MACHINE, and I
shouldn't have to.

regards
Philipp




More information about the Openembedded-devel mailing list