mbox series

[0/2] package/pkg-generic.mk: add '<pkg>-dirclean-rdepends' command

Message ID 20240827-package-dirclean-rdep-v1-0-d5e4f79a4241@collins.com
Headers show
Series package/pkg-generic.mk: add '<pkg>-dirclean-rdepends' command | expand

Message

Brandon Maier Aug. 27, 2024, 1:04 p.m. UTC
This series adds a build target similar to '<pkg>-dirclean' that cleans
a package and all of its reverse dependencies (rdepends).

I'm interested in this command as a short-term workaround for
reinstalling the target/ and host/ directories when using
PER_PACKAGE_DIRECTORIES, as described in this old patch[1]. This command
is more reliable then manually picking out the right targets to
dirclean.

This command may also be useful when not using PER_PACKAGE_DIRECTORIES,
as it can be used to rebuild a library and force dependent packages to
rebuild.

[1] https://lore.kernel.org/buildroot/20191212130253.2cb543ba@windsurf/

Signed-off-by: Brandon Maier <brandon.maier@collins.com>
---
Brandon Maier (2):
      package/pkg-generic.mk: add '<pkg>-dirclean-rdepends' command
      Makefile: document <pkg>-dirclean-rdepends

 Makefile               |  3 +++
 package/pkg-generic.mk | 12 ++++++++++++
 2 files changed, 15 insertions(+)
---
base-commit: 0196ec4198771e5fe83d6df02c7cd3b13c0ce05f
change-id: 20240820-package-dirclean-rdep-50ca01382136

Best regards,