[PATCH rtems_waf] rtems: Add uninstall option to the list of commands

Vijay Kumar Banerjee vijay at rtems.org
Mon May 4 10:16:39 UTC 2020


On Mon, May 4, 2020 at 4:39 AM Chris Johns <chrisj at rtems.org> wrote:

> Hi
>
> Are uninstall command useful with RTEMS? A use case that shows how it
> would be used may help.
>
> The use case in mind was libbsd. The uninstall command comes handy in
cleaning off the files that were installed, and there's no need to delete it
manually. I remember having some issues with libbsd while taking a trial
and error approach in searching for the right sources, the residue of the
old build would often cause problems and I had to delete them manually.

> I use separate prefixes to manage this. We do not track common files
> when installing to a common prefix so building ARM and then PowerPC to
> the same prefix then uninstalling only the PowerPC build would remove
> files needed by ARM.
>
> waf only removes the files that have been installed with install_files. If
I
run ./waf uninstall from libbsd, only the files under
arm-rtems5/beagleboneblack/lib
are getting affected.

> Chris
>
> On 4/5/20 5:04 am, Vijay Kumar Banerjee wrote:
> > ---
> >   rtems.py | 2 +-
> >   1 file changed, 1 insertion(+), 1 deletion(-)
> >
> > diff --git a/rtems.py b/rtems.py
> > index ceabcd9..067a213 100644
> > --- a/rtems.py
> > +++ b/rtems.py
> > @@ -131,7 +131,7 @@ def init(ctx, filters = None, version = None,
> long_commands = False, bsp_init =
> >           #
> >           commands = []
> >           for cmd in waflib.Options.commands:
> > -            if cmd in ['build', 'clean', 'install']:
> > +            if cmd in ['build', 'clean', 'install', 'uninstall']:
> >                   for x in arch_bsps:
> >                       commands += [cmd + '-' + x]
> >               else:
> >
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/devel/attachments/20200504/77ea687d/attachment.html>


More information about the devel mailing list