Changeset 304 for soft/giet_vm/Makefile


Ignore:
Timestamp:
Apr 16, 2014, 3:14:32 PM (11 years ago)
Author:
alain
Message:

Improving Makefile to avoid systematic disk image creation
and to limit the disk image to 32 Mbytes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • soft/giet_vm/Makefile

    r302 r304  
    1313### partition sectors    = 524832
    1414
    15 MAP_XML     ?= mappings/4c_1p_sort_leti.xml
     15MAP_XML     ?= mappings/tsar_leti_2_2_4_sort.xml
    1616
    1717### Objects to be linked for kernel.elf
     
    144144     build/transpose/transpose.elf   \
    145145         
    146         mcopy -so -i $(DISK_IMAGE) build ::/
    147         mcopy -so -i $(DISK_IMAGE) hdd/misc ::/
    148         mcopy -so -i $(DISK_IMAGE) map.bin ::/
     146        mcopy -o -i $(DISK_IMAGE) build/kernel/kernel.elf ::/build/kernel
     147        mcopy -o -i $(DISK_IMAGE) build/display/display.elf ::/build/display
     148        mcopy -o -i $(DISK_IMAGE) build/sort/sort.elf ::/build/sort
     149        mcopy -o -i $(DISK_IMAGE) build/transpose/transpose.elf ::/build/transpose
     150        mcopy -o -i $(DISK_IMAGE) build/hello/hello.elf ::/build/hello
     151        mcopy -o -i $(DISK_IMAGE) build/pgcd/pgcd.elf ::/build/pgcd
     152        mcopy -o -i $(DISK_IMAGE) build/router/router.elf ::/build/router
     153        mcopy -o -i $(DISK_IMAGE) build/gameoflife/gameoflife.elf ::/build/gameoflife
     154        mcopy -o -i $(DISK_IMAGE) build/dhrystone/dhrystone.elf ::/build/dhrystone
     155        mcopy -o -i $(DISK_IMAGE) map.bin ::/
    149156        dd if=build/boot/boot.elf of=$(DISK_IMAGE) seek=2 conv=notrunc
    150157
     
    154161$(DISK_IMAGE):
    155162        ./create_dmg create $(basename $(DISK_IMAGE))
     163        mmd -o -i $(DISK_IMAGE) ::/build
     164        mmd -o -i $(DISK_IMAGE) ::/build/kernel
     165        mmd -o -i $(DISK_IMAGE) ::/build/display
     166        mmd -o -i $(DISK_IMAGE) ::/build/sort 
     167        mmd -o -i $(DISK_IMAGE) ::/build/transpose
     168        mmd -o -i $(DISK_IMAGE) ::/build/hello
     169        mmd -o -i $(DISK_IMAGE) ::/build/pgcd 
     170        mmd -o -i $(DISK_IMAGE) ::/build/router
     171        mmd -o -i $(DISK_IMAGE) ::/build/gameoflife
     172        mmd -o -i $(DISK_IMAGE) ::/build/dhrystone
     173        mmd -o -i $(DISK_IMAGE) ::/misc
     174        dd if=$(DISK_IMAGE) of=temp.dmg count=65536
     175        mv temp.dmg $(DISK_IMAGE)
    156176
    157177### mapping compilation
Note: See TracChangeset for help on using the changeset viewer.