From 60e9f9afcc4474560da126caece474bdbfee489b Mon Sep 17 00:00:00 2001 From: Alexandre Belloni Date: Thu, 14 Dec 2023 10:25:29 +0100 Subject: [PATCH] yocto-advanced: add more sstate-cache management techniques It is possible to use atime (if enabled) to remove old sstate cache entries. Signed-off-by: Alexandre Belloni --- slides/yocto-advanced/yocto-advanced.tex | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/slides/yocto-advanced/yocto-advanced.tex b/slides/yocto-advanced/yocto-advanced.tex index 697f915881..c231a30867 100644 --- a/slides/yocto-advanced/yocto-advanced.tex +++ b/slides/yocto-advanced/yocto-advanced.tex @@ -362,11 +362,18 @@ \subsection{The power of BitBake} defaults to \code{build/sstate-cache}. \item Over time, as you compile more recipes, it can grow quite big. It is possible to clean old data with: - \begin{block}{} - \begin{minted}[fontsize=\footnotesize]{console} -$ ../poky/scripts/sstate-cache-management.sh -y -d \ - --cache-dir=sstate-cache/ - \end{minted} - \end{block} + \begin{itemize} + \item \begin{block}{} + \begin{minted}[fontsize=\footnotesize]{console} + $ ../poky/scripts/sstate-cache-management.sh -y -d \ + --cache-dir=sstate-cache/ + \end{minted} + \end{block} + \item \begin{block}{} + \begin{minted}[fontsize=\footnotesize]{console} + $ find sstate-cache/ -type f -atime +15 -delete + \end{minted} + \end{block} + \end{itemize} \end{itemize} \end{frame}