Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset 22299ed in mainline


Ignore:
Timestamp:
2017-06-07T15:11:10Z (3 years ago)
Author:
Martin Decky <martin@…>
Branches:
master
Children:
4646710
Parents:
5f53428a
Message:

add support for custom sections

Files:
3 edited

Legend:

Unmodified
Added
Removed
  • tools/mkarray.py

    r5f53428a r22299ed  
    3939def usage(prname):
    4040        "Print usage syntax"
    41         print("%s [--deflate] <DESTINATION> <LABEL> <AS_PROLOG> [SOURCE ...]" % prname)
     41        print("%s [--deflate] <DESTINATION> <LABEL> <AS_PROLOG> <SECTION> [SOURCE ...]" % prname)
    4242
    4343def arg_check():
    44         if (len(sys.argv) < 4):
     44        if (len(sys.argv) < 5):
    4545                usage(sys.argv[0])
    4646                sys.exit()
     
    6868        label = sys.argv[2]
    6969        as_prolog = sys.argv[3]
     70        section = sys.argv[4]
    7071       
    7172        header_ctx = []
     
    7677        src_cnt = 0
    7778       
    78         for src in sys.argv[4:]:
     79        for src in sys.argv[5:]:
    7980                basename = os.path.basename(src)
    8081                plainname = os.path.splitext(basename)[0]
     
    150151        data += ' ***************************************/\n\n'
    151152        data += as_prolog
    152         data += '.data\n\n'
     153        data += "%s\n\n" % section
    153154        data += "\n".join(data_ctx)
    154155        data += "\n"
  • uspace/app/barber/Makefile

    r5f53428a r22299ed  
    9999
    100100$(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  
    6969
    7070$(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.