Skip to contentSkip to conversation

poky.conf: use weak assignment for WARN_QA and ERROR_QA

PATCH In review [email protected] 1 participant 2 messages Nov 6, 2013 – Nov 22, 2013 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

PATCH 1/1 poky.conf: use weak assignment for WARN_QA and ERROR_QA

From: Chen Qi <[email protected]>

Use weak assignment for WARN_QA and ERROR_QA in the ditro configuration file (poky.conf) to allow for override in local.conf.

As local.conf is included before the distro configuration file, we cannot easily set custom WARN_QA and ERROR_QA in local.conf if we don't use weak assignment in poky.conf.

---
 meta-yocto/conf/distro/poky.conf |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
meta-yocto/conf/distro/poky.conf +2 -2
index 44bc4c6..c4643d2 100644
@@ -101,8 +101,8 @@ OELAYOUT_ABI = "8"
 INHERIT += "poky-sanity"
 
 # QA check settings - a little stricter than the OE-Core defaults
-WARN_QA = "textrel files-invalid incompatible-license xorg-driver-abi libdir"
-ERROR_QA = "dev-so debug-deps dev-deps debug-files arch pkgconfig la perms \
+WARN_QA ?= "textrel files-invalid incompatible-license xorg-driver-abi libdir"
+ERROR_QA ?= "dev-so debug-deps dev-deps debug-files arch pkgconfig la perms \
             useless-rpaths rpaths staticdev ldflags pkgvarcheck already-stripped \
             compile-host-path dep-cmp installed-vs-shipped install-host-path \
             packages-list perm-config perm-line perm-link pkgv-undefined \
Signature · 1 line
1.7.9.5
author
#2 lore raw

ping

Quoted 29 lines · On 11/06/2013 11:13 AM, [email protected] wrote:

From: Chen Qi <[email protected]>

Use weak assignment for WARN_QA and ERROR_QA in the ditro configuration file (poky.conf) to allow for override in local.conf.

As local.conf is included before the distro configuration file, we cannot easily set custom WARN_QA and ERROR_QA in local.conf if we don't use weak assignment in poky.conf.

---
  meta-yocto/conf/distro/poky.conf |    4 ++--
  1 file changed, 2 insertions(+), 2 deletions(-)
meta-yocto/conf/distro/poky.conf +2 -2
index 44bc4c6..c4643d2 100644
@@ -101,8 +101,8 @@ OELAYOUT_ABI = "8"
  INHERIT += "poky-sanity"
 
  # QA check settings - a little stricter than the OE-Core defaults
-WARN_QA = "textrel files-invalid incompatible-license xorg-driver-abi libdir"
-ERROR_QA = "dev-so debug-deps dev-deps debug-files arch pkgconfig la perms \
+WARN_QA ?= "textrel files-invalid incompatible-license xorg-driver-abi libdir"
+ERROR_QA ?= "dev-so debug-deps dev-deps debug-files arch pkgconfig la perms \
              useless-rpaths rpaths staticdev ldflags pkgvarcheck already-stripped \
              compile-host-path dep-cmp installed-vs-shipped install-host-path \
              packages-list perm-config perm-line perm-link pkgv-undefined \