Changeset 364 for soft/giet_vm/Makefile


Ignore:
Timestamp:
Jul 23, 2014, 11:02:57 AM (10 years ago)
Author:
alain
Message:

Increase the size of the "reserved" section in the disk image
from 256 Kbytes to 1 Mbytes. This section contains the boot record,
and the boot.elf file (starting at lba = 2).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • soft/giet_vm/Makefile

    r356 r364  
    88
    99ARCH ?= ../tsar-trunk-svn-2013/platforms/tsar_generic_iob
    10 X    ?= 4
    11 Y    ?= 4
    12 P    ?= 4
     10X    ?= 2
     11Y    ?= 2
     12P    ?= 2
    1313APP  ?= convol
    1414
     
    119119               build/libs/barrier.o
    120120
    121                            CFLAGS = -Wall -ffreestanding -mno-gpopt -mips32 -g
     121CFLAGS = -Wall -ffreestanding -mno-gpopt -mips32 -g -O2
    122122
    123123GIET_INCLUDE = -Igiet_boot    \
     
    136136DISK_IMAGE  := hdd/virt_hdd.dmg
    137137
    138 ### Copy executable and miscellaneous files into disk image
    139 ### Copy bootloader into sector 2 of disk image
    140138all: map.bin                         \
    141139     hard_config.h                   \
     
    154152     $(DISK_IMAGE)                   
    155153         
     154### Copy always all files into disk image
    156155        mcopy -o -i $(DISK_IMAGE) build/kernel/kernel.elf ::/build/kernel
    157156        mcopy -o -i $(DISK_IMAGE) build/display/display.elf ::/build/display
     
    167166        mcopy -o -i $(DISK_IMAGE) convol/philips_image.raw ::/misc
    168167        mcopy -o -i $(DISK_IMAGE) map.bin ::/
     168### Copy bootloader into sector 2 of disk image
    169169        dd if=build/boot/boot.elf of=$(DISK_IMAGE) seek=2 conv=notrunc
    170 
    171 ### Disk image generation
     170### Checking root directory
     171        mdir -i $(DISK_IMAGE) ::/
     172
     173### Disk image generation (no files in this step)
    172174### This requires the generic LINUX/MacOS script "create_dmg" script
    173175### written by C.Fuguet. (should be installed in GIET-VM root directory).
     
    476478
    477479build/convol/main.o: convol/main.c
    478         $(CC) $(USER_INCLUDE) $(CFLAGS) -c -o $@ $<
     480        $(CC) $(USER_INCLUDE) $(CFLAGS) -O0 -c -o $@ $<
    479481
    480482### clean
     
    498500        rm -rf build/transpose/*
    499501        rm -rf build/convol/*
    500 
    501 distclean: clean
    502502        rm -rf hdd/virt_hdd.dmg
Note: See TracChangeset for help on using the changeset viewer.