Changeset 582 for soft/giet_vm/Makefile
- Timestamp:
- Jul 2, 2015, 2:05:40 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
soft/giet_vm/Makefile
r581 r582 26 26 ### partition_begin_lba = 300 27 27 ### sector_per_cluster = 8 28 ### partition sectors = 524832 28 ### partition sectors = 524832 29 29 30 30 BUILD_DIRS = boot \ … … 119 119 build/libs/mwmr_channel.o \ 120 120 build/libs/user_lock.o \ 121 build/libs/stdio.o 121 build/libs/stdio.o 122 122 123 123 ### Objects to be linked for hello.elf 124 124 HELLO_OBJS = build/hello/main.o \ 125 build/libs/stdio.o 125 build/libs/stdio.o 126 126 127 127 ### Objects to be linked for pgcd.elf 128 128 PGCD_OBJS = build/pgcd/main.o \ 129 build/libs/stdio.o 129 build/libs/stdio.o 130 130 131 131 ### Objects to be linked for game.elf … … 135 135 build/libs/malloc.o \ 136 136 build/libs/user_lock.o 137 138 137 139 138 ### Objects to be linked for dhrystone.elf … … 145 144 build/libs/user_lock.o \ 146 145 build/libs/malloc.o 147 146 148 147 ### Objects to be linked for sort.elf 149 148 SORT_OBJS = build/sort/main.o \ … … 174 173 build/libs/user_barrier.o \ 175 174 build/libs/malloc.o \ 176 build/libs/user_lock.o 175 build/libs/user_lock.o 177 176 178 177 ### Objects to be linked for coproc.elf 179 178 COPROC_OBJS = build/coproc/main.o \ 180 build/libs/stdio.o 179 build/libs/stdio.o 181 180 182 181 … … 189 188 build/libs/user_barrier.o \ 190 189 build/libs/libmath.a 191 192 190 193 191 CFLAGS = -Wall -ffreestanding -mno-gpopt -mips32 -g -O2 \ … … 208 206 209 207 DISK_IMAGE := hdd/virt_hdd.dmg 208 209 ### All the Mtools commands perform a few sanity checks before going ahead, 210 ### to make sure that the disk is indeed an MS-DOS disk. However, the size 211 ### of the disk image used by the Giet-VM is not MS-DOS compliant. 212 ### Setting this variable prevents these checks. 213 MTOOLS_SKIP_CHECK := 1 210 214 211 215 all: build \ … … 226 230 build/classif/classif.elf \ 227 231 build/coproc/coproc.elf \ 228 build/ocean/ocean.elf \229 232 $(DISK_IMAGE) 233 # build/ocean/ocean.elf \ 230 234 ### Copy always all files into disk image 231 235 mcopy -o -i $(DISK_IMAGE) build/kernel/kernel.elf ::/build/kernel … … 241 245 mcopy -o -i $(DISK_IMAGE) build/classif/classif.elf ::/build/classif 242 246 mcopy -o -i $(DISK_IMAGE) build/coproc/coproc.elf ::/build/coproc 243 mcopy -o -i $(DISK_IMAGE) build/ocean/ocean.elf ::/build/ocean247 # mcopy -o -i $(DISK_IMAGE) build/ocean/ocean.elf ::/build/ocean 244 248 mcopy -o -i $(DISK_IMAGE) applications/transpose/images.raw ::/misc 245 249 mcopy -o -i $(DISK_IMAGE) applications/convol/philips_image.raw ::/misc … … 257 261 258 262 ### Disk image generation (no files in this step) 259 ### This requires the generic LINUX/MacOS script "create_dmg" script 263 ### This requires the generic LINUX/MacOS script "create_dmg" script 260 264 ### written by C.Fuguet. (should be installed in GIET-VM root directory). 261 265 ### create the three build / misc / home directories 262 ### store the images files into misc 266 ### store the images files into misc 263 267 $(DISK_IMAGE): 264 268 ./create_dmg create $(basename $(DISK_IMAGE)) … … 441 445 giet_boot/boot.ld \ 442 446 build/drivers/libdrivers.a | build/boot 443 $(LD) -o $@ -T giet_boot/boot.ld $(BOOT_OBJS) -Lbuild/drivers -ldrivers 447 $(LD) -o $@ -T giet_boot/boot.ld $(BOOT_OBJS) -Lbuild/drivers -ldrivers 444 448 $(DU) -D $@ > $@.txt 445 449 dd if=$@ of=$(DISK_IMAGE) seek=2 conv=notrunc … … 463 467 giet_kernel/kernel.ld \ 464 468 build/drivers/libdrivers.a 465 $(LD) -o $@ -T giet_kernel/kernel.ld $(KERNEL_OBJS) -Lbuild/drivers -ldrivers 466 $(DU) -D $@ > $@.txt 469 $(LD) -o $@ -T giet_kernel/kernel.ld $(KERNEL_OBJS) -Lbuild/drivers -ldrivers 470 $(DU) -D $@ > $@.txt 467 471 mmd -o -i $(DISK_IMAGE) ::/build/kernel || true 468 472 # mcopy -o -i $(DISK_IMAGE) $@ ::/build/kernel … … 470 474 build/kernel/%.o: giet_kernel/%.c \ 471 475 hard_config.h \ 472 giet_config.h 476 giet_config.h 473 477 $(CC) $(GIET_INCLUDE) $(CFLAGS) -c -o $@ $< 474 478 475 479 build/kernel/%.o: giet_kernel/%.s \ 476 480 hard_config.h \ 477 giet_config.h 481 giet_config.h 478 482 $(CC) $(GIET_INCLUDE) $(CFLAGS) -c -o $@ $< 479 483 … … 483 487 giet_libs/stdio.h \ 484 488 hard_config.h \ 485 giet_config.h 489 giet_config.h 486 490 $(CC) $(CFLAGS) $(USER_INCLUDE) -c -o $@ $< 487 491 … … 669 673 670 674 ######################################## 671 ### clean 675 ### clean 672 676 clean: 673 rm -f *.o *.elf *.bin *.txt core 677 rm -f *.o *.elf *.bin *.txt core 674 678 rm -f hard_config.h giet_vsegs.ld map.bin map.xml 675 679 rm -rf build/ 676 680 cd applications/ocean && $(MAKE) clean 681 682 clean-disk: 683 rm -f $(DISK_IMAGE)
Note: See TracChangeset
for help on using the changeset viewer.