binman: Record the parent section of each section
[oweals/u-boot.git] / tools / binman / etype / text.py
index 7a1cddf4af827e6e3bacc18c6d313c9081067c9b..6e99819487faab75b2a2d7ded198f1b48987369e 100644 (file)
@@ -51,6 +51,9 @@ class Entry_text(Entry):
         self.text_label, = self.GetEntryArgsOrProps(
             [EntryArg('text-label', str)])
         self.value, = self.GetEntryArgsOrProps([EntryArg(self.text_label, str)])
+        if not self.value:
+            self.Raise("No value provided for text label '%s'" %
+                       self.text_label)
 
     def ObtainContents(self):
         self.SetContents(self.value)