mirror of
https://github.com/openwrt/openwrt.git
synced 2025-01-02 03:56:49 +00:00
target/imagebuilder: add depends target to show all package that gets installed
This commits adds the makefile targets `depends` this wrapper is a call to `opkg depends`. This command shows which runtime dependencies exist if this package is installed into the image. Signed-off-by: Florian Eckert <fe@dev.tdt.de>
This commit is contained in:
parent
f193f2d1a0
commit
7b60dba954
@ -35,6 +35,7 @@ Available Commands:
|
|||||||
info: Show a list of available target profiles
|
info: Show a list of available target profiles
|
||||||
clean: Remove images and temporary build files
|
clean: Remove images and temporary build files
|
||||||
image: Build an image (see below for more information).
|
image: Build an image (see below for more information).
|
||||||
|
package_depends: Show installation dependency of the package
|
||||||
|
|
||||||
Building images:
|
Building images:
|
||||||
By default 'make image' will create an image with the default
|
By default 'make image' will create an image with the default
|
||||||
@ -57,6 +58,12 @@ Print manifest:
|
|||||||
make manifest PACKAGES="<pkg1> [<pkg2> [<pkg3> ...]]" # include extra packages
|
make manifest PACKAGES="<pkg1> [<pkg2> [<pkg3> ...]]" # include extra packages
|
||||||
make manifest STRIP_ABI=1 # remove ABI version from printed package names
|
make manifest STRIP_ABI=1 # remove ABI version from printed package names
|
||||||
|
|
||||||
|
package_depends:
|
||||||
|
List "all" packages dependency of the package
|
||||||
|
You can use the following parameters:
|
||||||
|
|
||||||
|
make package_depends PACKAGE="<pkg>"
|
||||||
|
|
||||||
endef
|
endef
|
||||||
$(eval $(call shexport,Helptext))
|
$(eval $(call shexport,Helptext))
|
||||||
|
|
||||||
@ -263,4 +270,13 @@ endif
|
|||||||
@$(MAKE) -s package_reload
|
@$(MAKE) -s package_reload
|
||||||
@$(OPKG) whatdepends -A $(PACKAGE)
|
@$(OPKG) whatdepends -A $(PACKAGE)
|
||||||
|
|
||||||
.SILENT: help info image manifest whatdepends
|
package_depends: FORCE
|
||||||
|
ifeq ($(PACKAGE),)
|
||||||
|
@echo 'Variable `PACKAGE` is not set but required by `package_depends`'
|
||||||
|
@exit 1
|
||||||
|
endif
|
||||||
|
@$(MAKE) -s package_reload
|
||||||
|
@$(OPKG) depends -A $(PACKAGE)
|
||||||
|
|
||||||
|
|
||||||
|
.SILENT: help info image manifest whatdepends package_depends
|
||||||
|
Loading…
Reference in New Issue
Block a user