Skip to content

package/pkg-generic.mk: add '<pkg>-dirclean-rdepends' command

Brandon Maier via buildroot buildroot 1 version New

Get series with b4
b4 am [email protected] change-id 20240820-package-dirclean-rdep-50ca01382136

Versions newest first

  1. v1 Latest2 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2package/pkg-generic.mk: add '<pkg>-dirclean-rdepends' commandpackage/pkg-generic.mk+12 -00 replies
2/2Makefile: document <pkg>-dirclean-rdependsMakefile+3 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

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

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/

---
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,

Signature · 6 lines
Brandon Maier <[email protected]>

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot