Patchwork feature-arm-thumb.inc: Suppress false warning

login
register
mail settings
Submitter Jacob Kroon
Date April 29, 2014, 8:07 p.m.
Message ID <1398802029-13155-1-git-send-email-jacob.kroon@mikrodidakt.se>
Download mbox | patch
Permalink /patch/71243/
State New
Headers show

Comments

Jacob Kroon - April 29, 2014, 8:07 p.m.
If a recipe does not explicitly set ARM_INSTRUCTION_SET, then there is no
need to throw a warning:

  WARNING: Recipe 'foobar' selects ARM_INSTRUCTION_SET to be 'None',
           but tune configuration overrides it to 'arm'

Signed-off-by: Jacob Kroon <jacob.kroon@mikrodidakt.se>
---
 meta/conf/machine/include/arm/feature-arm-thumb.inc | 2 ++
 1 file changed, 2 insertions(+)

Patch

diff --git a/meta/conf/machine/include/arm/feature-arm-thumb.inc b/meta/conf/machine/include/arm/feature-arm-thumb.inc
index 670e68e..a94386f 100644
--- a/meta/conf/machine/include/arm/feature-arm-thumb.inc
+++ b/meta/conf/machine/include/arm/feature-arm-thumb.inc
@@ -19,6 +19,8 @@  ARM_THUMB_SUFFIX .= "${@bb.utils.contains('TUNE_FEATURES', 'armv7m', 't2', '', d
 ARM_M_OPT = "${@bb.utils.contains('TUNE_FEATURES', 'arm', '${ARM_THUMB_OPT}', 'thumb', d)}"
 python () {
     selected = d.getVar('ARM_INSTRUCTION_SET', True)
+    if selected == None:
+        return
     used = d.getVar('ARM_M_OPT', True)
     if selected != used:
         pn = d.getVar('PN', True)