shithub: pokered

Download patch

ref: c2999b8645685ace86c4420c43c809445b777a37
parent: b48dfcd123921fbd047a5af274eeba15a8bbbd2b
author: Bryan Bishop <kanzure@gmail.com>
date: Tue Jan 17 11:40:47 EST 2012

analyze_incbins - reject zero interval incbins

hg-commit-id: 3e2f4c7591f4


--- a/extras/analyze_incbins.py
+++ b/extras/analyze_incbins.py
@@ -79,7 +79,9 @@
                             "end": end,
                            }
         
-        processed_incbins[line_number] = processed_incbin
+        #don't add this incbin if the interval is 0
+        if interval != 0:
+            processed_incbins[line_number] = processed_incbin
 
 def find_incbin_to_replace_for(address):
     """returns a line number for which incbin to edit