image: Fix debugfs image type recursion loop

The debugfs prefix is striped from t, but not from baset.
Therefore baset never matches t.

(From OE-Core rev: 2862cbf74925cb084d3f9c206d3448112ba6a0aa)

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>
This commit is contained in:
Freudiger Raphael
2016-04-01 14:54:20 +02:00
committed by Richard Purdie
parent 7dcb4c4127
commit 25102393b4

View 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)