<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, May 4, 2020 at 4:39 AM Chris Johns <<a href="mailto:chrisj@rtems.org">chrisj@rtems.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi<br>
<br>
Are uninstall command useful with RTEMS? A use case that shows how it <br>
would be used may help.<br>
<br></blockquote><div>The use case in mind was libbsd. The uninstall command comes handy in</div><div>cleaning off the files that were installed, and there's no need to delete it</div><div>manually. I remember having some issues with libbsd while taking a trial</div><div>and error approach in searching for the right sources, the residue of the</div><div>old build would often cause problems and I had to delete them manually.</div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
I use separate prefixes to manage this. We do not track common files <br>
when installing to a common prefix so building ARM and then PowerPC to <br>
the same prefix then uninstalling only the PowerPC build would remove <br>
files needed by ARM.<br>
<br></blockquote><div>waf only removes the files that have been installed with install_files. If I</div><div>run ./waf uninstall from libbsd, only the files under arm-rtems5/beagleboneblack/lib</div><div>are getting affected. </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
Chris<br>
<br>
On 4/5/20 5:04 am, Vijay Kumar Banerjee wrote:<br>
> ---<br>
> rtems.py | 2 +-<br>
> 1 file changed, 1 insertion(+), 1 deletion(-)<br>
> <br>
> diff --git a/rtems.py b/rtems.py<br>
> index ceabcd9..067a213 100644<br>
> --- a/rtems.py<br>
> +++ b/rtems.py<br>
> @@ -131,7 +131,7 @@ def init(ctx, filters = None, version = None, long_commands = False, bsp_init =<br>
> #<br>
> commands = []<br>
> for cmd in waflib.Options.commands:<br>
> - if cmd in ['build', 'clean', 'install']:<br>
> + if cmd in ['build', 'clean', 'install', 'uninstall']:<br>
> for x in arch_bsps:<br>
> commands += [cmd + '-' + x]<br>
> else:<br>
> <br>
</blockquote></div></div>