OpenCores
URL https://opencores.org/ocsvn/c0or1k/c0or1k/trunk

Subversion Repositories c0or1k

[/] [c0or1k/] [trunk/] [conts/] [posix/] [test0/] [tools/] [generate_bootdesc.py] - Rev 2

Compare with Previous | Blame | View Log

#!/usr/bin/python
import os
import sys
 
compiler_prefix = "arm-linux-"
objdump = "objdump"
command = "-t"
image_name = "roottask.axf"
linkoutput_file_suffix = "-linkinfo.txt"
linkoutput_file = image_name + linkoutput_file_suffix
def generate_bootdesc():
	command = compiler_prefix + objdump + " -t " + image_name + " > " + linkoutput_file
	print command
	os.system(command)
	f = open(linkoutput_file, "r")
 
	while True:
		line = f.readline()
		if len(line) is 0:
			break
		if "_start" in line or "_end" in line:
			print line
	f.close()
 
if __name__ == "__main__":
	generate_bootdesc()
 
 

Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.