Changeset 25eec4e in mainline for tools/mkuimage.py
- Timestamp:
- 2013-04-19T18:38:18Z (12 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 6d717a4
- Parents:
- a1e2df13 (diff), 289cb7dd (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
tools/mkuimage.py
ra1e2df13 r25eec4e 60 60 load_addr = 0 61 61 start_addr = 0 62 os_type = 5 #Linux is the default 62 63 63 64 while len(args) >= 2 and args[0][0] == '-': … … 71 72 elif opt == 'saddr': 72 73 start_addr = (int)(optarg, 0) 74 elif opt == 'ostype': 75 os_type = (int)(optarg, 0) 73 76 else: 74 77 print(base_name + ": Unrecognized option.") … … 85 88 86 89 try: 87 mkuimage(inf_name, outf_name, image_name, load_addr, start_addr )90 mkuimage(inf_name, outf_name, image_name, load_addr, start_addr, os_type) 88 91 except: 89 92 os.remove(outf_name) 90 93 raise 91 94 92 def mkuimage(inf_name, outf_name, image_name, load_addr, start_addr ):95 def mkuimage(inf_name, outf_name, image_name, load_addr, start_addr, os_type): 93 96 inf = open(inf_name, 'rb') 94 97 outf = open(outf_name, 'wb') … … 120 123 header.start_addr = start_addr # Address of entry point 121 124 header.data_crc = data_crc 122 header.os = 5 # Linux125 header.os = os_type 123 126 header.arch = 2 # ARM 124 127 header.img_type = 2 # Kernel
Note:
See TracChangeset
for help on using the changeset viewer.