]> code.ossystems Code Review - openembedded-core.git/commitdiff
image: Fix debugfs image type recursion loop
authorFreudiger Raphael <raphael.freudiger@siemens.com>
Fri, 1 Apr 2016 12:54:20 +0000 (14:54 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 1 Apr 2016 14:01:46 +0000 (15:01 +0100)
The debugfs prefix is striped from t, but not from baset.
Therefore baset never matches t.

Signed-off-by: Freudiger Raphael <raphael.freudiger@siemens.com>
Signed-off-by: Pascal Bach <pascal.bach@siemens.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/image.bbclass

index d9c16106c26124ec6780917e0dc8ddf28944ed06..ea77ab8878e0470475d63535a7fa00b1f47589fe 100644 (file)
@@ -324,6 +324,7 @@ python () {
 
     def _add_type(t):
         baset = _image_base_type(t)
+        input_t = t
         if baset not in basetypes:
             basetypes[baset]= []
         if t not in basetypes[baset]:
@@ -344,9 +345,9 @@ python () {
             basedep = _image_base_type(dep)
             typedeps[baset].add(basedep)
 
-        if baset != t:
+        if baset != input_t:
             _add_type(baset)
-        
+
     for t in alltypes[:]:
         _add_type(t)