[yocto] Cleaning out build without re-downloading sources

Andre McCurdy armccurdy at gmail.com
Tue Aug 21 16:46:02 PDT 2018


On Tue, Aug 21, 2018 at 3:52 PM, Paul Sheer <paulsheer at gmail.com> wrote:
> Hi,
>
> I am trying to do a clean out all packages within my build due to a
> change in my GCC environment.
>
> I updated my GCC so, for assurance reasons, I want a rebuild of everything.
>
> However I want to avoid re-downloading gigs of source packages.
>
> I am hoping there is a way, say, to restart all packages build from
> the "unpack" step without doing the download step?
>
> This seems like a common use case.  Is it supported?
>
> The only help I could find is to run commands like,
>
> bitback -C xyz abc
> bitback -c xyz abc
>
> Nothing I have tried forces a complete clean out of all builds (nor
> the other options -- a restart from the unpack step).
>
> rm -rf ./tmp   works, but it also forces a download of every package :-(

It shouldn't - at least not unless you've over-ridden the default
location of the downloads directory and placed it under tmp?

The default locations are:

  DL_DIR ?= "${TOPDIR}/downloads"
  SSTATE_DIR ?= "${TOPDIR}/sstate-cache"
  TMPDIR = "${TOPDIR}/tmp"

so removing tmp should not affect either downloads or sstate-cache.

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


More information about the yocto mailing list