Changeset 22299ed in mainline
- Timestamp:
- 2017-06-07T15:11:10Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 4646710
- Parents:
- 5f53428a
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
tools/mkarray.py
r5f53428a r22299ed 39 39 def usage(prname): 40 40 "Print usage syntax" 41 print("%s [--deflate] <DESTINATION> <LABEL> <AS_PROLOG> [SOURCE ...]" % prname)41 print("%s [--deflate] <DESTINATION> <LABEL> <AS_PROLOG> <SECTION> [SOURCE ...]" % prname) 42 42 43 43 def arg_check(): 44 if (len(sys.argv) < 4):44 if (len(sys.argv) < 5): 45 45 usage(sys.argv[0]) 46 46 sys.exit() … … 68 68 label = sys.argv[2] 69 69 as_prolog = sys.argv[3] 70 section = sys.argv[4] 70 71 71 72 header_ctx = [] … … 76 77 src_cnt = 0 77 78 78 for src in sys.argv[ 4:]:79 for src in sys.argv[5:]: 79 80 basename = os.path.basename(src) 80 81 plainname = os.path.splitext(basename)[0] … … 150 151 data += ' ***************************************/\n\n' 151 152 data += as_prolog 152 data += '.data\n\n'153 data += "%s\n\n" % section 153 154 data += "\n".join(data_ctx) 154 155 data += "\n" -
uspace/app/barber/Makefile
r5f53428a r22299ed 99 99 100 100 $(IMGS).zip: $(IMAGES) 101 $(ROOT_PATH)/tools/mkarray.py $(IMGS) $(IMG) "$(AS_PROLOG)" $^101 $(ROOT_PATH)/tools/mkarray.py $(IMGS) $(IMG) "$(AS_PROLOG)" .data $^ -
uspace/app/vlaunch/Makefile
r5f53428a r22299ed 69 69 70 70 $(IMGS).zip: $(IMAGES) 71 $(ROOT_PATH)/tools/mkarray.py $(IMGS) $(IMG) "$(AS_PROLOG)" $^71 $(ROOT_PATH)/tools/mkarray.py $(IMGS) $(IMG) "$(AS_PROLOG)" .data $^
Note:
See TracChangeset
for help on using the changeset viewer.