Skip to content

Commit

Permalink
yocto-advanced: add more sstate-cache management techniques
Browse files Browse the repository at this point in the history
It is possible to use atime (if enabled) to remove old sstate cache
entries.

Signed-off-by: Alexandre Belloni <[email protected]>
  • Loading branch information
alexandrebelloni committed Dec 14, 2023
1 parent b0bf7c5 commit 60e9f9a
Showing 1 changed file with 13 additions and 6 deletions.
19 changes: 13 additions & 6 deletions slides/yocto-advanced/yocto-advanced.tex
Original file line number Diff line number Diff line change
Expand Up @@ -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}

0 comments on commit 60e9f9a

Please sign in to comment.