diff mbox series

[SRU,Unstable/Lunar] UBUNTU: [Packaging] debian/rules: Add DKMS info to 'printenv' output

Message ID 20230421090623.618988-1-juerg.haefliger@canonical.com
State New
Headers show
Series [SRU,Unstable/Lunar] UBUNTU: [Packaging] debian/rules: Add DKMS info to 'printenv' output | expand

Commit Message

Juerg Haefliger April 21, 2023, 9:06 a.m. UTC
Show DKMS info an build flags when running 'debian/rules printenv':

$ ./debian/rules printenv | tail
 do_tools_x86             = true
do_cloud_tools            = true
 do_tools_hyperv          = true

all_dkms_modules          = zfs ipu6 ivsc iwlwifi v4l2loopback
 do_zfs                   = true
 do_ipu6                  = true
 do_ivsc                  = true
 do_iwlwifi               = true
 do_v4l2loopback          = true

Signed-off-by: Juerg Haefliger <juerg.haefliger@canonical.com>
---
 debian/rules.d/1-maintainer.mk | 4 ++++
 1 file changed, 4 insertions(+)

Comments

Juerg Haefliger April 21, 2023, 9:14 a.m. UTC | #1
Typo, fill send v2.

...Juerg


On Fri, 21 Apr 2023 11:06:23 +0200
Juerg Haefliger <juerg.haefliger@canonical.com> wrote:

> Show DKMS info an build flags when running 'debian/rules printenv':
> 
> $ ./debian/rules printenv | tail
>  do_tools_x86             = true
> do_cloud_tools            = true
>  do_tools_hyperv          = true
> 
> all_dkms_modules          = zfs ipu6 ivsc iwlwifi v4l2loopback
>  do_zfs                   = true
>  do_ipu6                  = true
>  do_ivsc                  = true
>  do_iwlwifi               = true
>  do_v4l2loopback          = true
> 
> Signed-off-by: Juerg Haefliger <juerg.haefliger@canonical.com>
> ---
>  debian/rules.d/1-maintainer.mk | 4 ++++
>  1 file changed, 4 insertions(+)
> 
> diff --git a/debian/rules.d/1-maintainer.mk b/debian/rules.d/1-maintainer.mk
> index fff4b8506fa0..6da70ff71c83 100644
> --- a/debian/rules.d/1-maintainer.mk
> +++ b/debian/rules.d/1-maintainer.mk
> @@ -117,6 +117,10 @@ printenv:
>  	@echo " do_tools_x86             = $(do_tools_x86)"
>  	@echo "do_cloud_tools            = $(do_cloud_tools)"
>  	@echo " do_tools_hyperv          = $(do_tools_hyperv)"
> +	@echo
> +	@echo "all_dkms_modules          = $(all_dkms_modules)"
> +	@$(foreach mod,$(all_dkms_modules),$(foreach val,$(do_$(mod)),\
> +		printf " %-24s = %s\n" "do_$(mod)" "$(val)";))
>  
>  .PHONY: printchanges
>  printchanges:
diff mbox series

Patch

diff --git a/debian/rules.d/1-maintainer.mk b/debian/rules.d/1-maintainer.mk
index fff4b8506fa0..6da70ff71c83 100644
--- a/debian/rules.d/1-maintainer.mk
+++ b/debian/rules.d/1-maintainer.mk
@@ -117,6 +117,10 @@  printenv:
 	@echo " do_tools_x86             = $(do_tools_x86)"
 	@echo "do_cloud_tools            = $(do_cloud_tools)"
 	@echo " do_tools_hyperv          = $(do_tools_hyperv)"
+	@echo
+	@echo "all_dkms_modules          = $(all_dkms_modules)"
+	@$(foreach mod,$(all_dkms_modules),$(foreach val,$(do_$(mod)),\
+		printf " %-24s = %s\n" "do_$(mod)" "$(val)";))
 
 .PHONY: printchanges
 printchanges: