Changeset 302 for soft/giet_vm/Makefile
- Timestamp:
- Apr 14, 2014, 6:47:07 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
soft/giet_vm/Makefile
r300 r302 1 -include build.mk 2 1 3 export # export all variable to sub-Makefile 2 4 CC = mipsel-unknown-elf-gcc … … 11 13 ### partition sectors = 524832 12 14 13 MAP_XML ?= mappings/4c_1p_ iob_sort.xml15 MAP_XML ?= mappings/4c_1p_sort_leti.xml 14 16 15 17 ### Objects to be linked for kernel.elf … … 123 125 -I. 124 126 125 all: map.bin \ 127 DISK_IMAGE := hdd/virt_hdd.dmg 128 129 ### Copy executable and miscellaneous files into disk image 130 ### Copy bootloader into sector 2 of disk image 131 all: $(DISK_IMAGE) \ 132 $(MAP_XML) \ 133 giet_config.h \ 134 map.bin \ 126 135 build/boot/boot.elf \ 127 136 build/kernel/kernel.elf \ 128 137 build/display/display.elf \ 129 build/router/router.elf \130 138 build/hello/hello.elf \ 131 139 build/pgcd/pgcd.elf \ 140 build/router/router.elf \ 132 141 build/dhrystone/dhrystone.elf \ 133 142 build/gameoflife/gameoflife.elf \ 134 143 build/sort/sort.elf \ 135 144 build/transpose/transpose.elf \ 136 hdd/virt_hdd.dmg 145 146 mcopy -so -i $(DISK_IMAGE) build ::/ 147 mcopy -so -i $(DISK_IMAGE) hdd/misc ::/ 148 mcopy -so -i $(DISK_IMAGE) map.bin ::/ 149 dd if=build/boot/boot.elf of=$(DISK_IMAGE) seek=2 conv=notrunc 137 150 138 151 ### Disk image generation 139 152 ### This requires the generic LINUX/MacOS script "create_dmg" script 140 153 ### written by C.Fuguet. (should be installed in GIET-VM root directory). 141 hdd/virt_hdd.dmg: map.bin \ 142 build/boot/boot.elf \ 143 build/kernel/kernel.elf \ 144 build/display/display.elf \ 145 build/hello/hello.elf \ 146 build/pgcd/pgcd.elf \ 147 build/router/router.elf \ 148 build/dhrystone/dhrystone.elf \ 149 build/gameoflife/gameoflife.elf \ 150 build/sort/sort.elf \ 151 build/transpose/transpose.elf 152 153 ### remove all content of virtual disk virt_hdd 154 rm -rf hdd/virt_hdd/* 155 ### copy content to virtual disk from build, misc and map.bin 156 ### the boot.elf file is not copied on the virtual disk 157 cp -r build hdd/virt_hdd 158 rm -rf hdd/virt_hdd/build/boot 159 cp -r hdd/misc hdd/virt_hdd 160 cp map.bin hdd/virt_hdd 161 ### create temporary partition image 162 ./create_dmg create hdd/virt_hdd $(basename $@) 163 ### copy boot.elf into virtual disk image (sector 2) 164 dd if=build/boot/boot.elf of=$@ seek=2 conv=notrunc 154 $(DISK_IMAGE): 155 ./create_dmg create $(basename $(DISK_IMAGE)) 165 156 166 157 ### mapping compilation … … 455 446 rm -rf build/transpose/* 456 447 rm -rf build/map.bin 457 rm -rf hdd/virt_hdd/* 448 449 distclean: clean 458 450 rm -rf hdd/virt_hdd.dmg
Note: See TracChangeset
for help on using the changeset viewer.