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

Signed-off-by: Felix Fietkau <nbd@nbd.name>
This commit is contained in:
Felix Fietkau 2021-11-04 15:53:50 +01:00
parent f432353850
commit 94b0849c19

View File

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