[v6,2/2] meta/*, meta-isar/*: update hardcoded Standards-Version to current policy

Message ID 20251105101503.283956-2-srinuvasan.a@siemens.com
State Accepted, archived
Headers show
Series [v6,1/2] debianize: set appropriate Standards-Version for each debian suite | expand

Commit Message

srinuvasan.a Nov. 5, 2025, 10:15 a.m. UTC
From: srinuvasan <srinuvasan.a@siemens.com>

Many packages were still built using the outdated Debian Policy version 3.9.6.
Updating to the current Standards-Version ensures compliance with modern
Debian policy, avoids QA and policy compliance warnings, and prevents the
packages from appearing unmaintained.

Signed-off-by: srinuvasan <srinuvasan.a@siemens.com>
---
 meta-isar/recipes-bsp/optee-examples/files/debian/control.tmpl | 2 +-
 .../optee-examples/optee-examples-stm32mp15x_3.21.0.bb         | 2 +-
 meta/recipes-bsp/optee-client/files/debian/control.tmpl        | 2 +-
 meta/recipes-bsp/optee-client/optee-client-custom.inc          | 2 +-
 meta/recipes-bsp/optee-ftpm/files/debian/control.tmpl          | 2 +-
 meta/recipes-bsp/optee-ftpm/optee-ftpm.inc                     | 3 ++-
 meta/recipes-bsp/optee-os/files/debian/control.tmpl            | 2 +-
 meta/recipes-bsp/optee-os/optee-os.inc                         | 2 +-
 meta/recipes-bsp/trusted-firmware-a/files/debian/control.tmpl  | 2 +-
 .../trusted-firmware-a/trusted-firmware-a-custom.inc           | 2 +-
 meta/recipes-bsp/u-boot/files/debian/control.tmpl              | 2 +-
 meta/recipes-bsp/u-boot/u-boot-custom.inc                      | 2 +-
 meta/recipes-kernel/linux-module/files/debian/control.tmpl     | 2 +-
 meta/recipes-kernel/linux-module/module.inc                    | 3 ++-
 14 files changed, 16 insertions(+), 14 deletions(-)

Comments

Jan Kiszka Nov. 5, 2025, 10:18 a.m. UTC | #1
On 05.11.25 11:15, srinuvasan.a@siemens.com wrote:
> From: srinuvasan <srinuvasan.a@siemens.com>
> 
> Many packages were still built using the outdated Debian Policy version 3.9.6.
> Updating to the current Standards-Version ensures compliance with modern
> Debian policy, avoids QA and policy compliance warnings, and prevents the
> packages from appearing unmaintained.
> 
> Signed-off-by: srinuvasan <srinuvasan.a@siemens.com>
> ---
>  meta-isar/recipes-bsp/optee-examples/files/debian/control.tmpl | 2 +-
>  .../optee-examples/optee-examples-stm32mp15x_3.21.0.bb         | 2 +-
>  meta/recipes-bsp/optee-client/files/debian/control.tmpl        | 2 +-
>  meta/recipes-bsp/optee-client/optee-client-custom.inc          | 2 +-
>  meta/recipes-bsp/optee-ftpm/files/debian/control.tmpl          | 2 +-
>  meta/recipes-bsp/optee-ftpm/optee-ftpm.inc                     | 3 ++-
>  meta/recipes-bsp/optee-os/files/debian/control.tmpl            | 2 +-
>  meta/recipes-bsp/optee-os/optee-os.inc                         | 2 +-
>  meta/recipes-bsp/trusted-firmware-a/files/debian/control.tmpl  | 2 +-
>  .../trusted-firmware-a/trusted-firmware-a-custom.inc           | 2 +-
>  meta/recipes-bsp/u-boot/files/debian/control.tmpl              | 2 +-
>  meta/recipes-bsp/u-boot/u-boot-custom.inc                      | 2 +-
>  meta/recipes-kernel/linux-module/files/debian/control.tmpl     | 2 +-
>  meta/recipes-kernel/linux-module/module.inc                    | 3 ++-
>  14 files changed, 16 insertions(+), 14 deletions(-)
> 
> diff --git a/meta-isar/recipes-bsp/optee-examples/files/debian/control.tmpl b/meta-isar/recipes-bsp/optee-examples/files/debian/control.tmpl
> index 9b930157..b9edcb6a 100644
> --- a/meta-isar/recipes-bsp/optee-examples/files/debian/control.tmpl
> +++ b/meta-isar/recipes-bsp/optee-examples/files/debian/control.tmpl
> @@ -1,7 +1,7 @@
>  Source: ${PN}
>  Section: admin
>  Priority: optional
> -Standards-Version: 3.9.6
> +Standards-Version: ${DEBIAN_STANDARDS_VERSION}
>  Build-Depends: debhelper-compat (= ${DEBIAN_COMPAT}), ${DEBIAN_BUILD_DEPENDS}
>  Maintainer: ISAR project <isar-users@googlegroups.com>
>  Rules-Requires-Root: no
> diff --git a/meta-isar/recipes-bsp/optee-examples/optee-examples-stm32mp15x_3.21.0.bb b/meta-isar/recipes-bsp/optee-examples/optee-examples-stm32mp15x_3.21.0.bb
> index f734e6eb..013153c4 100644
> --- a/meta-isar/recipes-bsp/optee-examples/optee-examples-stm32mp15x_3.21.0.bb
> +++ b/meta-isar/recipes-bsp/optee-examples/optee-examples-stm32mp15x_3.21.0.bb
> @@ -43,7 +43,7 @@ DEBIAN_BUILD_DEPENDS ?= " \
>      optee-os-tadevkit-${OPTEE_NAME}"
>  
>  TEMPLATE_FILES = "debian/control.tmpl debian/rules.tmpl"
> -TEMPLATE_VARS += "DEBIAN_BUILD_DEPENDS OPTEE_PLATFORM TA_DEV_KIT_DIR DEBIAN_COMPAT"
> +TEMPLATE_VARS += "DEBIAN_BUILD_DEPENDS OPTEE_PLATFORM TA_DEV_KIT_DIR DEBIAN_COMPAT DEBIAN_STANDARDS_VERSION"
>  
>  do_prepare_build() {
>      cp -r ${WORKDIR}/debian ${S}/
> diff --git a/meta/recipes-bsp/optee-client/files/debian/control.tmpl b/meta/recipes-bsp/optee-client/files/debian/control.tmpl
> index 4cf11231..e3864407 100644
> --- a/meta/recipes-bsp/optee-client/files/debian/control.tmpl
> +++ b/meta/recipes-bsp/optee-client/files/debian/control.tmpl
> @@ -7,7 +7,7 @@ Build-Depends: debhelper-compat (= ${DEBIAN_COMPAT}),
>                 pkg-config,
>                 uuid-dev,
>                 xsltproc
> -Standards-Version: 4.5.1
> +Standards-Version: ${DEBIAN_STANDARDS_VERSION}
>  Section: libs
>  Homepage: https://github.com/OP-TEE/optee_client
>  Rules-Requires-Root: no
> diff --git a/meta/recipes-bsp/optee-client/optee-client-custom.inc b/meta/recipes-bsp/optee-client/optee-client-custom.inc
> index 8a97af58..e54c8763 100644
> --- a/meta/recipes-bsp/optee-client/optee-client-custom.inc
> +++ b/meta/recipes-bsp/optee-client/optee-client-custom.inc
> @@ -23,7 +23,7 @@ TEE_FS_PARENT_PATH ?= "/var/lib/optee-client/data/tee"
>  RPMB_EMU ?= "0"
>  
>  TEMPLATE_FILES = "debian/rules.tmpl debian/control.tmpl"
> -TEMPLATE_VARS += "DEBIAN_COMPAT TEE_FS_PARENT_PATH RPMB_EMU"
> +TEMPLATE_VARS += "DEBIAN_COMPAT TEE_FS_PARENT_PATH RPMB_EMU DEBIAN_STANDARDS_VERSION"
>  
>  do_prepare_build[cleandirs] += "${S}/debian"
>  do_prepare_build() {
> diff --git a/meta/recipes-bsp/optee-ftpm/files/debian/control.tmpl b/meta/recipes-bsp/optee-ftpm/files/debian/control.tmpl
> index 3e8e6920..7f41b5c4 100644
> --- a/meta/recipes-bsp/optee-ftpm/files/debian/control.tmpl
> +++ b/meta/recipes-bsp/optee-ftpm/files/debian/control.tmpl
> @@ -1,7 +1,7 @@
>  Source: ${PN}
>  Section: misc
>  Priority: optional
> -Standards-Version: 3.9.6
> +Standards-Version: ${DEBIAN_STANDARDS_VERSION}
>  Maintainer: Unknown maintainer <unknown@example.com>
>  Build-Depends: debhelper-compat (= ${DEBIAN_COMPAT}), ${DEBIAN_BUILD_DEPENDS}
>  Rules-Requires-Root: no
> diff --git a/meta/recipes-bsp/optee-ftpm/optee-ftpm.inc b/meta/recipes-bsp/optee-ftpm/optee-ftpm.inc
> index d7d00ae1..2c854efc 100644
> --- a/meta/recipes-bsp/optee-ftpm/optee-ftpm.inc
> +++ b/meta/recipes-bsp/optee-ftpm/optee-ftpm.inc
> @@ -42,7 +42,8 @@ TEMPLATE_VARS += "DEBIAN_BUILD_DEPENDS \
>      TA_CPU \
>      TA_DEV_KIT_DIR \
>      MS_TPM_20_REF_DIR \
> -    OPTEE_FTPM_SRCDIR"
> +    OPTEE_FTPM_SRCDIR \
> +    DEBIAN_STANDARDS_VERSION"
>  
>  do_prepare_build() {
>      rm -rf "${S}/debian"
> diff --git a/meta/recipes-bsp/optee-os/files/debian/control.tmpl b/meta/recipes-bsp/optee-os/files/debian/control.tmpl
> index 2a3076d3..e6a9df30 100644
> --- a/meta/recipes-bsp/optee-os/files/debian/control.tmpl
> +++ b/meta/recipes-bsp/optee-os/files/debian/control.tmpl
> @@ -1,7 +1,7 @@
>  Source: ${PN}
>  Section: admin
>  Priority: optional
> -Standards-Version: 3.9.6
> +Standards-Version: ${DEBIAN_STANDARDS_VERSION}
>  Build-Depends: debhelper-compat (= ${DEBIAN_COMPAT}), ${DEBIAN_BUILD_DEPENDS}
>  Maintainer: ISAR project <isar-users@googlegroups.com>
>  Rules-Requires-Root: no
> diff --git a/meta/recipes-bsp/optee-os/optee-os.inc b/meta/recipes-bsp/optee-os/optee-os.inc
> index eac75ae8..a534ddf4 100644
> --- a/meta/recipes-bsp/optee-os/optee-os.inc
> +++ b/meta/recipes-bsp/optee-os/optee-os.inc
> @@ -23,7 +23,7 @@ DEBIAN_PACKAGE_NAME ?= "optee-os-${OPTEE_NAME}"
>  DEBIAN_BUILD_DEPENDS ?= "python3-pycryptodome:native, python3-pyelftools"
>  
>  TEMPLATE_FILES = "debian/control.tmpl debian/rules.tmpl"
> -TEMPLATE_VARS += "DEBIAN_COMPAT DEBIAN_PACKAGE_NAME OPTEE_NAME DEBIAN_BUILD_DEPENDS OPTEE_PLATFORM OPTEE_EXTRA_BUILDARGS"
> +TEMPLATE_VARS += "DEBIAN_COMPAT DEBIAN_PACKAGE_NAME OPTEE_NAME DEBIAN_BUILD_DEPENDS OPTEE_PLATFORM OPTEE_EXTRA_BUILDARGS DEBIAN_STANDARDS_VERSION"
>  
>  # split strip platform flavor, if any, from the specified platform string
>  OPTEE_PLATFORM_BASE = "${@d.getVar('OPTEE_PLATFORM').split('-')[0]}"
> diff --git a/meta/recipes-bsp/trusted-firmware-a/files/debian/control.tmpl b/meta/recipes-bsp/trusted-firmware-a/files/debian/control.tmpl
> index 5de639d9..903da980 100644
> --- a/meta/recipes-bsp/trusted-firmware-a/files/debian/control.tmpl
> +++ b/meta/recipes-bsp/trusted-firmware-a/files/debian/control.tmpl
> @@ -1,7 +1,7 @@
>  Source: ${PN}
>  Section: admin
>  Priority: optional
> -Standards-Version: 3.9.6
> +Standards-Version: ${DEBIAN_STANDARDS_VERSION}
>  Build-Depends: debhelper-compat (= ${DEBIAN_COMPAT}), ${DEBIAN_BUILD_DEPENDS}
>  Maintainer: ISAR project <isar-users@googlegroups.com>
>  Rules-Requires-Root: no
> diff --git a/meta/recipes-bsp/trusted-firmware-a/trusted-firmware-a-custom.inc b/meta/recipes-bsp/trusted-firmware-a/trusted-firmware-a-custom.inc
> index 9f143b13..07a03dd6 100644
> --- a/meta/recipes-bsp/trusted-firmware-a/trusted-firmware-a-custom.inc
> +++ b/meta/recipes-bsp/trusted-firmware-a/trusted-firmware-a-custom.inc
> @@ -24,7 +24,7 @@ PROVIDES += "trusted-firmware-a-${TF_A_NAME}"
>  
>  TEMPLATE_FILES = "debian/control.tmpl debian/rules.tmpl"
>  TEMPLATE_VARS += "DEBIAN_COMPAT \
> -    TF_A_NAME DEBIAN_BUILD_DEPENDS TF_A_PLATFORM TF_A_EXTRA_BUILDARGS"
> +    TF_A_NAME DEBIAN_BUILD_DEPENDS TF_A_PLATFORM TF_A_EXTRA_BUILDARGS DEBIAN_STANDARDS_VERSION"
>  
>  do_prepare_build() {
>      cp -r ${WORKDIR}/debian ${S}/
> diff --git a/meta/recipes-bsp/u-boot/files/debian/control.tmpl b/meta/recipes-bsp/u-boot/files/debian/control.tmpl
> index 58f59ce6..b68e0d65 100644
> --- a/meta/recipes-bsp/u-boot/files/debian/control.tmpl
> +++ b/meta/recipes-bsp/u-boot/files/debian/control.tmpl
> @@ -1,7 +1,7 @@
>  Source: ${PN}
>  Section: admin
>  Priority: optional
> -Standards-Version: 3.9.6
> +Standards-Version: ${DEBIAN_STANDARDS_VERSION}
>  Build-Depends: debhelper-compat (= ${DEBIAN_COMPAT}), ${DEBIAN_BUILD_DEPENDS}
>  Maintainer: ISAR project <isar-users@googlegroups.com>
>  Rules-Requires-Root: no
> diff --git a/meta/recipes-bsp/u-boot/u-boot-custom.inc b/meta/recipes-bsp/u-boot/u-boot-custom.inc
> index 2d6dd8e0..c6b3e8cf 100644
> --- a/meta/recipes-bsp/u-boot/u-boot-custom.inc
> +++ b/meta/recipes-bsp/u-boot/u-boot-custom.inc
> @@ -26,7 +26,7 @@ U_BOOT_EXTRA_BUILDARGS ??= "BL31=${BL31} TEE=${TEE}"
>  
>  TEMPLATE_FILES = "debian/control.tmpl debian/rules.tmpl"
>  TEMPLATE_VARS += "MACHINE DEBIAN_BUILD_DEPENDS U_BOOT_CONFIG U_BOOT_BIN \
> -    U_BOOT_EXTRA_BUILDARGS DEBIAN_COMPAT"
> +    U_BOOT_EXTRA_BUILDARGS DEBIAN_COMPAT DEBIAN_STANDARDS_VERSION"
>  
>  U_BOOT_TOOLS_PACKAGE ?= "0"
>  U_BOOT_CONFIG_PACKAGE ?= "0"
> diff --git a/meta/recipes-kernel/linux-module/files/debian/control.tmpl b/meta/recipes-kernel/linux-module/files/debian/control.tmpl
> index 95e6e84a..d8f4aded 100644
> --- a/meta/recipes-kernel/linux-module/files/debian/control.tmpl
> +++ b/meta/recipes-kernel/linux-module/files/debian/control.tmpl
> @@ -1,7 +1,7 @@
>  Source: ${PN}
>  Section: kernel
>  Priority: optional
> -Standards-Version: 3.9.6
> +Standards-Version: ${DEBIAN_STANDARDS_VERSION}
>  Build-Depends: debhelper-compat (= ${DEBIAN_COMPAT}), ${DEBIAN_BUILD_DEPENDS}
>  Maintainer: ${MAINTAINER}
>  Rules-Requires-Root: no
> diff --git a/meta/recipes-kernel/linux-module/module.inc b/meta/recipes-kernel/linux-module/module.inc
> index d2a41766..093ea19f 100644
> --- a/meta/recipes-kernel/linux-module/module.inc
> +++ b/meta/recipes-kernel/linux-module/module.inc
> @@ -68,7 +68,8 @@ TEMPLATE_VARS += " \
>      SIGNATURE_HASHFN \
>      SIGNATURE_SIGNWITH \
>      PN \
> -    DEBIAN_COMPAT"
> +    DEBIAN_COMPAT \
> +    DEBIAN_STANDARDS_VERSION"
>  
>  # Add custom cflags to the kernel build
>  KCFLAGS ?= "-fdebug-prefix-map=${CURDIR}=. -fmacro-prefix-map=${CURDIR}=."

Looks fairly good to me now.

Bonus for enlightening all those "side-distros" in meta-isar/conf/distro
as well.

Jan

Patch

diff --git a/meta-isar/recipes-bsp/optee-examples/files/debian/control.tmpl b/meta-isar/recipes-bsp/optee-examples/files/debian/control.tmpl
index 9b930157..b9edcb6a 100644
--- a/meta-isar/recipes-bsp/optee-examples/files/debian/control.tmpl
+++ b/meta-isar/recipes-bsp/optee-examples/files/debian/control.tmpl
@@ -1,7 +1,7 @@ 
 Source: ${PN}
 Section: admin
 Priority: optional
-Standards-Version: 3.9.6
+Standards-Version: ${DEBIAN_STANDARDS_VERSION}
 Build-Depends: debhelper-compat (= ${DEBIAN_COMPAT}), ${DEBIAN_BUILD_DEPENDS}
 Maintainer: ISAR project <isar-users@googlegroups.com>
 Rules-Requires-Root: no
diff --git a/meta-isar/recipes-bsp/optee-examples/optee-examples-stm32mp15x_3.21.0.bb b/meta-isar/recipes-bsp/optee-examples/optee-examples-stm32mp15x_3.21.0.bb
index f734e6eb..013153c4 100644
--- a/meta-isar/recipes-bsp/optee-examples/optee-examples-stm32mp15x_3.21.0.bb
+++ b/meta-isar/recipes-bsp/optee-examples/optee-examples-stm32mp15x_3.21.0.bb
@@ -43,7 +43,7 @@  DEBIAN_BUILD_DEPENDS ?= " \
     optee-os-tadevkit-${OPTEE_NAME}"
 
 TEMPLATE_FILES = "debian/control.tmpl debian/rules.tmpl"
-TEMPLATE_VARS += "DEBIAN_BUILD_DEPENDS OPTEE_PLATFORM TA_DEV_KIT_DIR DEBIAN_COMPAT"
+TEMPLATE_VARS += "DEBIAN_BUILD_DEPENDS OPTEE_PLATFORM TA_DEV_KIT_DIR DEBIAN_COMPAT DEBIAN_STANDARDS_VERSION"
 
 do_prepare_build() {
     cp -r ${WORKDIR}/debian ${S}/
diff --git a/meta/recipes-bsp/optee-client/files/debian/control.tmpl b/meta/recipes-bsp/optee-client/files/debian/control.tmpl
index 4cf11231..e3864407 100644
--- a/meta/recipes-bsp/optee-client/files/debian/control.tmpl
+++ b/meta/recipes-bsp/optee-client/files/debian/control.tmpl
@@ -7,7 +7,7 @@  Build-Depends: debhelper-compat (= ${DEBIAN_COMPAT}),
                pkg-config,
                uuid-dev,
                xsltproc
-Standards-Version: 4.5.1
+Standards-Version: ${DEBIAN_STANDARDS_VERSION}
 Section: libs
 Homepage: https://github.com/OP-TEE/optee_client
 Rules-Requires-Root: no
diff --git a/meta/recipes-bsp/optee-client/optee-client-custom.inc b/meta/recipes-bsp/optee-client/optee-client-custom.inc
index 8a97af58..e54c8763 100644
--- a/meta/recipes-bsp/optee-client/optee-client-custom.inc
+++ b/meta/recipes-bsp/optee-client/optee-client-custom.inc
@@ -23,7 +23,7 @@  TEE_FS_PARENT_PATH ?= "/var/lib/optee-client/data/tee"
 RPMB_EMU ?= "0"
 
 TEMPLATE_FILES = "debian/rules.tmpl debian/control.tmpl"
-TEMPLATE_VARS += "DEBIAN_COMPAT TEE_FS_PARENT_PATH RPMB_EMU"
+TEMPLATE_VARS += "DEBIAN_COMPAT TEE_FS_PARENT_PATH RPMB_EMU DEBIAN_STANDARDS_VERSION"
 
 do_prepare_build[cleandirs] += "${S}/debian"
 do_prepare_build() {
diff --git a/meta/recipes-bsp/optee-ftpm/files/debian/control.tmpl b/meta/recipes-bsp/optee-ftpm/files/debian/control.tmpl
index 3e8e6920..7f41b5c4 100644
--- a/meta/recipes-bsp/optee-ftpm/files/debian/control.tmpl
+++ b/meta/recipes-bsp/optee-ftpm/files/debian/control.tmpl
@@ -1,7 +1,7 @@ 
 Source: ${PN}
 Section: misc
 Priority: optional
-Standards-Version: 3.9.6
+Standards-Version: ${DEBIAN_STANDARDS_VERSION}
 Maintainer: Unknown maintainer <unknown@example.com>
 Build-Depends: debhelper-compat (= ${DEBIAN_COMPAT}), ${DEBIAN_BUILD_DEPENDS}
 Rules-Requires-Root: no
diff --git a/meta/recipes-bsp/optee-ftpm/optee-ftpm.inc b/meta/recipes-bsp/optee-ftpm/optee-ftpm.inc
index d7d00ae1..2c854efc 100644
--- a/meta/recipes-bsp/optee-ftpm/optee-ftpm.inc
+++ b/meta/recipes-bsp/optee-ftpm/optee-ftpm.inc
@@ -42,7 +42,8 @@  TEMPLATE_VARS += "DEBIAN_BUILD_DEPENDS \
     TA_CPU \
     TA_DEV_KIT_DIR \
     MS_TPM_20_REF_DIR \
-    OPTEE_FTPM_SRCDIR"
+    OPTEE_FTPM_SRCDIR \
+    DEBIAN_STANDARDS_VERSION"
 
 do_prepare_build() {
     rm -rf "${S}/debian"
diff --git a/meta/recipes-bsp/optee-os/files/debian/control.tmpl b/meta/recipes-bsp/optee-os/files/debian/control.tmpl
index 2a3076d3..e6a9df30 100644
--- a/meta/recipes-bsp/optee-os/files/debian/control.tmpl
+++ b/meta/recipes-bsp/optee-os/files/debian/control.tmpl
@@ -1,7 +1,7 @@ 
 Source: ${PN}
 Section: admin
 Priority: optional
-Standards-Version: 3.9.6
+Standards-Version: ${DEBIAN_STANDARDS_VERSION}
 Build-Depends: debhelper-compat (= ${DEBIAN_COMPAT}), ${DEBIAN_BUILD_DEPENDS}
 Maintainer: ISAR project <isar-users@googlegroups.com>
 Rules-Requires-Root: no
diff --git a/meta/recipes-bsp/optee-os/optee-os.inc b/meta/recipes-bsp/optee-os/optee-os.inc
index eac75ae8..a534ddf4 100644
--- a/meta/recipes-bsp/optee-os/optee-os.inc
+++ b/meta/recipes-bsp/optee-os/optee-os.inc
@@ -23,7 +23,7 @@  DEBIAN_PACKAGE_NAME ?= "optee-os-${OPTEE_NAME}"
 DEBIAN_BUILD_DEPENDS ?= "python3-pycryptodome:native, python3-pyelftools"
 
 TEMPLATE_FILES = "debian/control.tmpl debian/rules.tmpl"
-TEMPLATE_VARS += "DEBIAN_COMPAT DEBIAN_PACKAGE_NAME OPTEE_NAME DEBIAN_BUILD_DEPENDS OPTEE_PLATFORM OPTEE_EXTRA_BUILDARGS"
+TEMPLATE_VARS += "DEBIAN_COMPAT DEBIAN_PACKAGE_NAME OPTEE_NAME DEBIAN_BUILD_DEPENDS OPTEE_PLATFORM OPTEE_EXTRA_BUILDARGS DEBIAN_STANDARDS_VERSION"
 
 # split strip platform flavor, if any, from the specified platform string
 OPTEE_PLATFORM_BASE = "${@d.getVar('OPTEE_PLATFORM').split('-')[0]}"
diff --git a/meta/recipes-bsp/trusted-firmware-a/files/debian/control.tmpl b/meta/recipes-bsp/trusted-firmware-a/files/debian/control.tmpl
index 5de639d9..903da980 100644
--- a/meta/recipes-bsp/trusted-firmware-a/files/debian/control.tmpl
+++ b/meta/recipes-bsp/trusted-firmware-a/files/debian/control.tmpl
@@ -1,7 +1,7 @@ 
 Source: ${PN}
 Section: admin
 Priority: optional
-Standards-Version: 3.9.6
+Standards-Version: ${DEBIAN_STANDARDS_VERSION}
 Build-Depends: debhelper-compat (= ${DEBIAN_COMPAT}), ${DEBIAN_BUILD_DEPENDS}
 Maintainer: ISAR project <isar-users@googlegroups.com>
 Rules-Requires-Root: no
diff --git a/meta/recipes-bsp/trusted-firmware-a/trusted-firmware-a-custom.inc b/meta/recipes-bsp/trusted-firmware-a/trusted-firmware-a-custom.inc
index 9f143b13..07a03dd6 100644
--- a/meta/recipes-bsp/trusted-firmware-a/trusted-firmware-a-custom.inc
+++ b/meta/recipes-bsp/trusted-firmware-a/trusted-firmware-a-custom.inc
@@ -24,7 +24,7 @@  PROVIDES += "trusted-firmware-a-${TF_A_NAME}"
 
 TEMPLATE_FILES = "debian/control.tmpl debian/rules.tmpl"
 TEMPLATE_VARS += "DEBIAN_COMPAT \
-    TF_A_NAME DEBIAN_BUILD_DEPENDS TF_A_PLATFORM TF_A_EXTRA_BUILDARGS"
+    TF_A_NAME DEBIAN_BUILD_DEPENDS TF_A_PLATFORM TF_A_EXTRA_BUILDARGS DEBIAN_STANDARDS_VERSION"
 
 do_prepare_build() {
     cp -r ${WORKDIR}/debian ${S}/
diff --git a/meta/recipes-bsp/u-boot/files/debian/control.tmpl b/meta/recipes-bsp/u-boot/files/debian/control.tmpl
index 58f59ce6..b68e0d65 100644
--- a/meta/recipes-bsp/u-boot/files/debian/control.tmpl
+++ b/meta/recipes-bsp/u-boot/files/debian/control.tmpl
@@ -1,7 +1,7 @@ 
 Source: ${PN}
 Section: admin
 Priority: optional
-Standards-Version: 3.9.6
+Standards-Version: ${DEBIAN_STANDARDS_VERSION}
 Build-Depends: debhelper-compat (= ${DEBIAN_COMPAT}), ${DEBIAN_BUILD_DEPENDS}
 Maintainer: ISAR project <isar-users@googlegroups.com>
 Rules-Requires-Root: no
diff --git a/meta/recipes-bsp/u-boot/u-boot-custom.inc b/meta/recipes-bsp/u-boot/u-boot-custom.inc
index 2d6dd8e0..c6b3e8cf 100644
--- a/meta/recipes-bsp/u-boot/u-boot-custom.inc
+++ b/meta/recipes-bsp/u-boot/u-boot-custom.inc
@@ -26,7 +26,7 @@  U_BOOT_EXTRA_BUILDARGS ??= "BL31=${BL31} TEE=${TEE}"
 
 TEMPLATE_FILES = "debian/control.tmpl debian/rules.tmpl"
 TEMPLATE_VARS += "MACHINE DEBIAN_BUILD_DEPENDS U_BOOT_CONFIG U_BOOT_BIN \
-    U_BOOT_EXTRA_BUILDARGS DEBIAN_COMPAT"
+    U_BOOT_EXTRA_BUILDARGS DEBIAN_COMPAT DEBIAN_STANDARDS_VERSION"
 
 U_BOOT_TOOLS_PACKAGE ?= "0"
 U_BOOT_CONFIG_PACKAGE ?= "0"
diff --git a/meta/recipes-kernel/linux-module/files/debian/control.tmpl b/meta/recipes-kernel/linux-module/files/debian/control.tmpl
index 95e6e84a..d8f4aded 100644
--- a/meta/recipes-kernel/linux-module/files/debian/control.tmpl
+++ b/meta/recipes-kernel/linux-module/files/debian/control.tmpl
@@ -1,7 +1,7 @@ 
 Source: ${PN}
 Section: kernel
 Priority: optional
-Standards-Version: 3.9.6
+Standards-Version: ${DEBIAN_STANDARDS_VERSION}
 Build-Depends: debhelper-compat (= ${DEBIAN_COMPAT}), ${DEBIAN_BUILD_DEPENDS}
 Maintainer: ${MAINTAINER}
 Rules-Requires-Root: no
diff --git a/meta/recipes-kernel/linux-module/module.inc b/meta/recipes-kernel/linux-module/module.inc
index d2a41766..093ea19f 100644
--- a/meta/recipes-kernel/linux-module/module.inc
+++ b/meta/recipes-kernel/linux-module/module.inc
@@ -68,7 +68,8 @@  TEMPLATE_VARS += " \
     SIGNATURE_HASHFN \
     SIGNATURE_SIGNWITH \
     PN \
-    DEBIAN_COMPAT"
+    DEBIAN_COMPAT \
+    DEBIAN_STANDARDS_VERSION"
 
 # Add custom cflags to the kernel build
 KCFLAGS ?= "-fdebug-prefix-map=${CURDIR}=. -fmacro-prefix-map=${CURDIR}=."