Skip to content

Commit

Permalink
labs: yocto-devtool: fix remove commands after scarthgap updates
Browse files Browse the repository at this point in the history
After the scarthgap update, devtool does not leave the source directory
of the hello program in workspace/sources, but moves it in
workspace/attic/sources. Replace the rm commands accordingly.

Signed-off-by: Antonin Godard <[email protected]>
  • Loading branch information
antznin committed Dec 9, 2024
1 parent d5850ab commit 592d0af
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions labs/yocto-devtool/yocto-devtool.tex
Original file line number Diff line number Diff line change
Expand Up @@ -180,12 +180,12 @@ \section{Generate a new recipe}
\end{bashinput}
Now check the content of the workspace: the hello recipe is not there
anymore. However the source code of the GNU Hello program as still in the
\code{workspace/sources/hello} directory. Devtool does not delete it, in
anymore. However the source code of the GNU Hello program was moved in the
\code{workspace/attic/sources} directory. Devtool does not delete it, in
case you have done any valuable work in it that you still haven't saved to
a patch. As it is not your case, just delete it:
\begin{bashinput}
rm -fr workspace/sources/hello/
rm -fr workspace/attic/sources/hello.<timestamp>/
\end{bashinput}
Now double check that the recipe is still building correctly in the
Expand Down Expand Up @@ -284,7 +284,7 @@ \section{Modify a recipe}

\begin{bashinput}
devtool reset hello
rm -fr workspace/sources/hello/
rm -fr workspace/attic/sources/hello.<timestamp>/
\end{bashinput}

\section{Upgrade a recipe to the latest mainline version}
Expand Down Expand Up @@ -323,7 +323,7 @@ \section{Upgrade a recipe to the latest mainline version}
Now check that everything works as done earlier, then apply your changes to the layer.
\begin{bashinput}
devtool finish hello ../meta-bootlinlabs/
rm -fr workspace/sources/hello/
rm -fr workspace/attic/sources/hello.<timestamp>/
\end{bashinput}

Now the meta-bootlinlabs layer contains the latest version of GNU Hello!

0 comments on commit 592d0af

Please sign in to comment.