build: add SUBDIR_MAKE_DEBUG variable to make it easier to debug package makefiles

Signed-off-by: Felix Fietkau <nbd@nbd.name>
(cherry picked from commit 94b0849c19)
This commit is contained in:
Felix Fietkau 2021-11-04 15:53:50 +01:00 committed by Tianling Shen
parent 8ae4d1d901
commit d0eae20238
No known key found for this signature in database
GPG Key ID: 6850B6345C862176

View File

@ -27,7 +27,7 @@ lastdir=$(word $(words $(subst /, ,$(1))),$(subst /, ,$(1)))
diralias=$(if $(findstring $(1),$(call lastdir,$(1))),,$(call lastdir,$(1)))
subdir_make_opts = \
-r -C $(1) \
$(if $(SUBDIR_MAKE_DEBUG),-d) -r -C $(1) \
BUILD_SUBDIR="$(1)" \
BUILD_VARIANT="$(4)" \
ALL_VARIANTS="$(5)"