Skip to contentSkip to conversation

classes/uboot-config: ignore doc varflag

PATCH In review Paul Eggleton 2 participants 2 messages Mar 7, 2014

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 classes/uboot-config: ignore doc varflag

The doc varflag on UBOOT_CONFIG should be ignored by this code; without this the recent addition of the UBOOT_CONFIG[doc] to documentation.conf causes errors when UBOOT_MACHINE is used.

---
 meta/classes/uboot-config.bbclass | 2 ++
 1 file changed, 2 insertions(+)
meta/classes/uboot-config.bbclass +2 -0
index 3e09f17..8ac1b71 100644
@@ -14,6 +14,8 @@
 python () {
     ubootmachine = d.getVar("UBOOT_MACHINE", True)
     ubootconfigflags = d.getVarFlags('UBOOT_CONFIG')
+    # The "doc" varflag is special, we don't want to see it here
+    ubootconfigflags.pop('doc', None)
 
     if not ubootmachine and not ubootconfigflags:
         PN = d.getVar("PN", True)
Signature · 1 line
1.8.5.3
Acked-by on v1 1/1
#1 lore raw
Quoted 5 lines · Paul Eggleton

The doc varflag on UBOOT_CONFIG should be ignored by this code; without this the recent addition of the UBOOT_CONFIG[doc] to documentation.conf causes errors when UBOOT_MACHINE is used.

Signature · 3 lines
Otavio Salvador                             O.S. Systems
http://www.ossystems.com.br        http://code.ossystems.com.br
Mobile: +55 (53) 9981-7854            Mobile: +1 (347) 903-9750