[PATCH 4/4] target/imagebuilder: add help text and rename whatdepends to package_whatdepens

Florian Eckert fe at dev.tdt.de
Thu Aug 19 00:29:13 PDT 2021


Add the missing help text for the package_whatdepends makefile target.

Signed-off-by: Florian Eckert <fe at dev.tdt.de>
---
 target/imagebuilder/files/Makefile | 12 ++++++++++--
 1 file changed, 10 insertions(+), 2 deletions(-)

diff --git a/target/imagebuilder/files/Makefile b/target/imagebuilder/files/Makefile
index 8d02b8752d..1d8bf9526e 100644
--- a/target/imagebuilder/files/Makefile
+++ b/target/imagebuilder/files/Makefile
@@ -35,6 +35,7 @@ Available Commands:
 	clean:	Remove images and temporary build files
 	image:	Build an image (see below for more information).
 	manifest: Show all package that will be installed into to image
+	package_whatdepends: Show which packages have a dependency on this
 	package_depends: Show installation dependency of the package
 
 image:
@@ -58,6 +59,13 @@ manifest:
 	make manifest PACKAGES="<pkg1> [<pkg2> [<pkg3> ...]]" # include extra packages
 	make manifest STRIP_ABI=1 # remove ABI version from printed package names
 
+
+package_whatdepends:
+	List "all" packages that have a dependency on this package
+	You can use the following parameters:
+
+	make package_whatdepends PACKAGE="<pkg>"
+
 package_depends:
 	List "all" packages dependency of the package
 	You can use the following parameters:
@@ -261,7 +269,7 @@ manifest: FORCE
 		$(if $(PROFILE),USER_PROFILE="$(PROFILE_FILTER)") \
 		$(if $(PACKAGES),USER_PACKAGES="$(PACKAGES)"))
 
-whatdepends: FORCE
+package_whatdepends: FORCE
 ifeq ($(PACKAGE),)
 	@echo 'Variable `PACKAGE` is not set but required by `whatdepends`'
 	@exit 1
@@ -278,4 +286,4 @@ endif
 	@$(OPKG) depends -A $(PACKAGE)
 
 
-.SILENT: help info image manifest whatdepends package_depends
+.SILENT: help info image manifest package_whatdepends package_depends
-- 
2.20.1




More information about the openwrt-devel mailing list