diff options
-rw-r--r-- | meta/classes-recipe/uboot-config.bbclass | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/meta/classes-recipe/uboot-config.bbclass b/meta/classes-recipe/uboot-config.bbclass index 9889d026fa..7ab006a20d 100644 --- a/meta/classes-recipe/uboot-config.bbclass +++ b/meta/classes-recipe/uboot-config.bbclass | |||
@@ -112,8 +112,10 @@ python () { | |||
112 | 112 | ||
113 | if len(ubootconfig) > 0: | 113 | if len(ubootconfig) > 0: |
114 | for config in ubootconfig: | 114 | for config in ubootconfig: |
115 | found = False | ||
115 | for f, v in ubootconfigflags.items(): | 116 | for f, v in ubootconfigflags.items(): |
116 | if config == f: | 117 | if config == f: |
118 | found = True | ||
117 | items = v.split(',') | 119 | items = v.split(',') |
118 | if items[0] and len(items) > 3: | 120 | if items[0] and len(items) > 3: |
119 | raise bb.parse.SkipRecipe('Only config,images,binary can be specified!') | 121 | raise bb.parse.SkipRecipe('Only config,images,binary can be specified!') |
@@ -128,6 +130,8 @@ python () { | |||
128 | else: | 130 | else: |
129 | bb.debug(1, "Appending '%s' to UBOOT_BINARIES." % ubootbinary) | 131 | bb.debug(1, "Appending '%s' to UBOOT_BINARIES." % ubootbinary) |
130 | d.appendVar('UBOOT_BINARIES', ' ' + ubootbinary) | 132 | d.appendVar('UBOOT_BINARIES', ' ' + ubootbinary) |
131 | return | 133 | break |
132 | raise bb.parse.SkipRecipe("The selected UBOOT_CONFIG key %s has no match in %s." % (ubootconfig, ubootconfigflags.keys())) | 134 | |
135 | if not found: | ||
136 | raise bb.parse.SkipRecipe("The selected UBOOT_CONFIG key %s has no match in %s." % (ubootconfig, ubootconfigflags.keys())) | ||
133 | } | 137 | } |