mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-22 15:02:32 +00:00
build: add whatdepends target to imagebuilder
The package manager `opkg` offers the function `whatdepends` to print packages that depend on a specific package. This feature is useful when used in a CI to not only build an upgraded package but all packages with a dependency. Usage: make whatdepends PACKAGE=libipset The resulting list can be fed into a SDK building all packages and warn if anything fails. Signed-off-by: Paul Spooren <mail@aparcar.org>
This commit is contained in:
parent
62d5ec7306
commit
84024e245f
@ -220,4 +220,12 @@ manifest: FORCE
|
|||||||
$(if $(PROFILE),USER_PROFILE="$(PROFILE_FILTER)") \
|
$(if $(PROFILE),USER_PROFILE="$(PROFILE_FILTER)") \
|
||||||
$(if $(PACKAGES),USER_PACKAGES="$(PACKAGES)"))
|
$(if $(PACKAGES),USER_PACKAGES="$(PACKAGES)"))
|
||||||
|
|
||||||
.SILENT: help info image manifest
|
whatdepends: FORCE
|
||||||
|
ifeq ($(PACKAGE),)
|
||||||
|
@echo 'Variable `PACKAGE` is not set but required by `whatdepends`'
|
||||||
|
@exit 1
|
||||||
|
endif
|
||||||
|
@$(MAKE) -s package_reload
|
||||||
|
@$(OPKG) whatdepends -A $(PACKAGE)
|
||||||
|
|
||||||
|
.SILENT: help info image manifest whatdepends
|
||||||
|
Loading…
Reference in New Issue
Block a user