diff mbox series

[v2,4/7] scripts/gen-refs-default.Makefile: add debug output when verbose

Message ID 20250414-b4-autorefs-user-agent-v2-4-0398333b5676@samsung.com (mailing list archive)
State New
Headers show
Series autorefs: add kdevops User-Agent identifier | expand

Commit Message

Daniel Gomez April 14, 2025, 1:01 p.m. UTC
From: Daniel Gomez <da.gomez@samsung.com>

For debugging purposes, add --debug argument to the generate_refs.py
when V=1 is passed as Makefile parameter.

Reviewed-by: Luis Chamberlain <mcgrof@kernel.org>
Signed-off-by: Daniel Gomez <da.gomez@samsung.com>
---
 scripts/gen-refs-default.Makefile | 9 +++++++++
 1 file changed, 9 insertions(+)
diff mbox series

Patch

diff --git a/scripts/gen-refs-default.Makefile b/scripts/gen-refs-default.Makefile
index 19688daa501458081404185d542882130cb2b618..33cdb4c448dcd87d3ccd1e286f14ac7334fafe7c 100644
--- a/scripts/gen-refs-default.Makefile
+++ b/scripts/gen-refs-default.Makefile
@@ -6,12 +6,19 @@  REFS_DEFAULT_TARGETS += gen_refs_def_stable
 
 KRELEASES_FORCE := $(if $(filter --force,$(KRELEASES_FORCE)),--force,)
 
+ifeq ($(V),1)
+KRELEASES_DEBUG = --debug
+else
+KRELEASES_DEBUG =
+endif
+
 gen_refs_def_mainline:
 	$(Q)./scripts/generate_refs.py \
 		--prefix BOOTLINUX_TREE_LINUS \
 		--output workflows/linux/refs/default/Kconfig.linus \
 		--extra workflows/linux/refs/static/linus.yaml \
 		$(KRELEASES_FORCE) \
+		$(KRELEASES_DEBUG) \
 		kreleases \
 		--moniker mainline
 
@@ -21,6 +28,7 @@  gen_refs_def_next:
 		--output workflows/linux/refs/default/Kconfig.next \
 		--extra workflows/linux/refs/static/next.yaml \
 		$(KRELEASES_FORCE) \
+		$(KRELEASES_DEBUG) \
 		kreleases \
 		--moniker linux-next
 
@@ -30,6 +38,7 @@  gen_refs_def_stable:
 		--output workflows/linux/refs/default/Kconfig.stable \
 		--extra workflows/linux/refs/static/stable.yaml \
 		$(KRELEASES_FORCE) \
+		$(KRELEASES_DEBUG) \
 		kreleases \
 		--moniker stable