Changeset 300 for soft/giet_vm/Makefile


Ignore:
Timestamp:
Apr 10, 2014, 2:33:56 PM (11 years ago)
Author:
cfuguet
Message:

The disk image used by the GIET_VM does not contain
anymore a Master Boot Record (MBR) as we do not need
multiple partitions.

The only filesystem in the disk is the FAT32 which
starts at sector 0 (Volume Boot Record).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • soft/giet_vm/Makefile

    r299 r300  
    1111### partition sectors    = 524832
    1212
    13 MAP_XML      = mappings/4c_1p_sort_iob.xml
     13MAP_XML     ?= mappings/4c_1p_iob_sort.xml
    1414
    1515### Objects to be linked for kernel.elf
     
    159159        cp -r hdd/misc hdd/virt_hdd
    160160        cp map.bin  hdd/virt_hdd
    161 ### create temporary partition image (partition_image.dmg)
    162         ./create_dmg create hdd/virt_hdd partition_image
    163 ### copy standard MBR into virtual disk image (mbr.dmg)
    164         cp hdd/mbr.dmg $@
     161### create temporary partition image
     162        ./create_dmg create hdd/virt_hdd $(basename $@)
    165163### copy boot.elf into virtual disk image (sector 2)
    166         dd if=build/boot/boot.elf of=$@ seek=2
    167 ### copy partition image into virtual disk image (sector 300)
    168         dd if=partition_image.dmg of=$@ seek=300
    169 ### remove partition image
    170         rm partition_image.dmg
     164        dd if=build/boot/boot.elf of=$@ seek=2 conv=notrunc
    171165
    172166### mapping compilation
Note: See TracChangeset for help on using the changeset viewer.