From e5f9d4a1444d7a5dcb755ab1304b9be3ee4db6ed Mon Sep 17 00:00:00 2001 From: Bryan Bishop Date: Tue, 17 Jan 2012 13:34:51 -0600 Subject: text insertion code for unnamed TX_FARs These TX_FARs are found in ASM inside INCBIN intervals, and as a consequence do not have good names. Someone will have to review the naming. Note that these texts may or may not be referenced in scripts that will eventually be imported. Some of these are raw texts that could be completely unreferenced, but so far that doesn't look like the case. hg-commit-id: 47239e73071a --- extras/analyze_incbins.py | 1 + 1 file changed, 1 insertion(+) (limited to 'extras/analyze_incbins.py') diff --git a/extras/analyze_incbins.py b/extras/analyze_incbins.py index 353e5ea6..cc8d9810 100644 --- a/extras/analyze_incbins.py +++ b/extras/analyze_incbins.py @@ -236,6 +236,7 @@ def apply_diff(diff, try_fixing=True): #confirm it's working try: subprocess.check_call("cd ../; make clean; LC_CTYPE=UTF-8 make", shell=True) + return True except Exception, exc: if try_fixing: os.system("mv ../common1.asm ../common.asm") -- cgit v1.2.3 From be34aed58e24303a9d8dee6cf36009cbc2653568 Mon Sep 17 00:00:00 2001 From: Bryan Bishop Date: Tue, 17 Jan 2012 14:54:06 -0600 Subject: fix some offset errors in insert_texts.py hg-commit-id: b131d049ecd3 --- extras/analyze_incbins.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'extras/analyze_incbins.py') diff --git a/extras/analyze_incbins.py b/extras/analyze_incbins.py index cc8d9810..9cdc2083 100644 --- a/extras/analyze_incbins.py +++ b/extras/analyze_incbins.py @@ -235,7 +235,7 @@ def apply_diff(diff, try_fixing=True): #confirm it's working try: - subprocess.check_call("cd ../; make clean; LC_CTYPE=UTF-8 make", shell=True) + subprocess.check_call("cd ../; make clean; LC_CTYPE=C make", shell=True) return True except Exception, exc: if try_fixing: -- cgit v1.2.3 From c2999b8645685ace86c4420c43c809445b777a37 Mon Sep 17 00:00:00 2001 From: Bryan Bishop Date: Tue, 17 Jan 2012 16:40:47 -0600 Subject: analyze_incbins - reject zero interval incbins hg-commit-id: 3e2f4c7591f4 --- extras/analyze_incbins.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'extras/analyze_incbins.py') diff --git a/extras/analyze_incbins.py b/extras/analyze_incbins.py index 9cdc2083..9069a3ae 100644 --- a/extras/analyze_incbins.py +++ b/extras/analyze_incbins.py @@ -79,7 +79,9 @@ def process_incbins(): "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 -- cgit v1.2.3