Changeset 580 for soft/giet_vm/Makefile
- Timestamp:
- May 28, 2015, 3:34:23 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
soft/giet_vm/Makefile
r573 r580 9 9 10 10 # Parameters definition 11 ARCH ?= ../tsar-trunk-svn-2013/platforms/tsar_generic_iob 12 X_SIZE ?= 1 13 Y_SIZE ?= 1 11 #ARCH ?= ../tsar-trunk-svn-2013/platforms/tsar_generic_iob 12 ARCH ?= ../../../tsar/platforms/tsar_generic_iob 13 X_SIZE ?= 2 14 Y_SIZE ?= 2 14 15 NB_PROCS ?= 4 15 NB_TTYS ?= 216 FBF_WIDTH ?= 25617 IOC_TYPE ?= BDV18 APP ?= transpose19 20 21 .PHONY: map.bin 16 NB_TTYS ?= 1 17 FBF_WIDTH ?= 128 18 IOC_TYPE ?= HBA 19 APP ?= ocean 20 21 22 .PHONY: map.bin build clean 22 23 23 24 ### FAT parameters definition for Disk image … … 26 27 ### sector_per_cluster = 8 27 28 ### partition sectors = 524832 29 30 BUILD_DIRS = boot \ 31 classif \ 32 common \ 33 convol \ 34 coproc \ 35 dhrystone \ 36 display \ 37 drivers \ 38 fat32 \ 39 gameoflife\ 40 hello \ 41 kernel \ 42 libs/math \ 43 ocean \ 44 pgcd \ 45 router \ 46 sort \ 47 transpose 28 48 29 49 ### Objects to be linked for the drivers library … … 75 95 build/boot/boot_entry.o 76 96 97 MATH_OBJ = build/libs/math/e_pow.o \ 98 build/libs/math/e_rem_pio2.o \ 99 build/libs/math/k_cos.o \ 100 build/libs/math/k_rem_pio2.o \ 101 build/libs/math/k_sin.o \ 102 build/libs/math/s_copysign.o \ 103 build/libs/math/s_fabs.o \ 104 build/libs/math/s_finite.o \ 105 build/libs/math/s_floor.o \ 106 build/libs/math/s_isnan.o \ 107 build/libs/math/sqrt.o \ 108 build/libs/math/s_rint.o \ 109 build/libs/math/s_scalbn.o \ 110 build/libs/math/s_sin.o 111 # build/libs/math/e_sqrt.o \ 112 77 113 ### Objects to be linked for display.elf 78 114 DISPLAY_OBJS = build/display/main.o \ … … 144 180 build/libs/stdio.o 145 181 182 183 ### Objects to be linked for ocean.elf 184 OCEAN_OBJS = build/libs/stdio.o \ 185 build/libs/malloc.o \ 186 build/libs/stdlib.o \ 187 build/libs/user_sqt_lock.o\ 188 build/libs/user_lock.o \ 189 build/libs/user_barrier.o \ 190 build/libs/libmath.a 191 192 146 193 CFLAGS = -Wall -ffreestanding -mno-gpopt -mips32 -g -O2 \ 147 194 -fno-delete-null-pointer-checks … … 162 209 DISK_IMAGE := hdd/virt_hdd.dmg 163 210 164 all: $(DISK_IMAGE)\211 all: build \ 165 212 map.bin \ 166 213 hard_config.h \ … … 179 226 build/classif/classif.elf \ 180 227 build/coproc/coproc.elf \ 181 182 mdir -/ -b -i $(DISK_IMAGE) ::/ 183 184 ### copy the files generated by the virtual prototype on 185 ### the virtual disk "home" directory to the giet_vm home directory 186 extract: 187 mcopy -o -i $(DISK_IMAGE) ::/home . 228 build/ocean/ocean.elf \ 229 $(DISK_IMAGE) 230 ### Copy always all files into disk image 231 mcopy -o -i $(DISK_IMAGE) build/kernel/kernel.elf ::/build/kernel 232 mcopy -o -i $(DISK_IMAGE) build/display/display.elf ::/build/display 233 mcopy -o -i $(DISK_IMAGE) build/hello/hello.elf ::/build/hello 234 mcopy -o -i $(DISK_IMAGE) build/pgcd/pgcd.elf ::/build/pgcd 235 mcopy -o -i $(DISK_IMAGE) build/router/router.elf ::/build/router 236 mcopy -o -i $(DISK_IMAGE) build/dhrystone/dhrystone.elf ::/build/dhrystone 237 mcopy -o -i $(DISK_IMAGE) build/gameoflife/gameoflife.elf ::/build/gameoflife 238 mcopy -o -i $(DISK_IMAGE) build/sort/sort.elf ::/build/sort 239 mcopy -o -i $(DISK_IMAGE) build/transpose/transpose.elf ::/build/transpose 240 mcopy -o -i $(DISK_IMAGE) build/convol/convol.elf ::/build/convol 241 mcopy -o -i $(DISK_IMAGE) build/classif/classif.elf ::/build/classif 242 mcopy -o -i $(DISK_IMAGE) build/coproc/coproc.elf ::/build/coproc 243 mcopy -o -i $(DISK_IMAGE) build/ocean/ocean.elf ::/build/ocean 244 mcopy -o -i $(DISK_IMAGE) applications/transpose/images.raw ::/misc 245 mcopy -o -i $(DISK_IMAGE) applications/convol/philips_image.raw ::/misc 246 mcopy -o -i $(DISK_IMAGE) map.bin ::/ 247 ### Copy bootloader into sector 2 of disk image 248 dd if=build/boot/boot.elf of=$(DISK_IMAGE) seek=2 conv=notrunc 249 ### Checking root directory 250 mdir -/ -b -i $(DISK_IMAGE) ::/ 251 252 253 build: 254 mkdir -p build 255 (cd build && mkdir -p $(BUILD_DIRS)) 188 256 189 257 ### Disk image generation (no files in this step) … … 197 265 mv temp.dmg $(DISK_IMAGE) 198 266 mmd -o -i $(DISK_IMAGE) ::/build 267 mmd -o -i $(DISK_IMAGE) ::/build/ocean 199 268 mmd -o -i $(DISK_IMAGE) ::/misc 200 269 mmd -o -i $(DISK_IMAGE) ::/home … … 452 521 $(CC) $(CFLAGS) $(USER_INCLUDE) -c -o $@ $< 453 522 523 build/libs/user_sqt_lock.o: giet_libs/user_sqt_lock.c \ 524 giet_libs/user_sqt_lock.h \ 525 giet_libs/user_lock.h \ 526 hard_config.h \ 527 giet_config.h 528 $(CC) $(CFLAGS) $(USER_INCLUDE) -c -o $@ $< 529 530 build/libs/libmath.a: $(MATH_OBJ) 531 $(AR) -rcs $@ $^ 532 533 build/libs/math/%.o: giet_libs/math/%.c giet_libs/math/math_private.h giet_libs/math.h 534 $(CC) $(CFLAGS) $(USER_INCLUDE) -c -o $@ $< 535 454 536 ######################################## 455 537 ### display application compilation … … 460 542 mcopy -o -i $(DISK_IMAGE) $@ ::/build/display 461 543 462 build/display/main.o: applications/display/main.c 544 build/display/main.o: applications/display/main.c hard_config.h 463 545 $(CC) $(USER_INCLUDE) $(CFLAGS) -c -o $@ $< 464 546 … … 471 553 mcopy -o -i $(DISK_IMAGE) $@ ::/build/router 472 554 473 build/router/main.o: applications/router/main.c 555 build/router/main.o: applications/router/main.c hard_config.h 474 556 $(CC) $(USER_INCLUDE) $(CFLAGS) -c -o $@ $< 475 557 … … 482 564 mcopy -o -i $(DISK_IMAGE) $@ ::/build/hello 483 565 484 build/hello/main.o: applications/hello/main.c 566 build/hello/main.o: applications/hello/main.c hard_config.h 485 567 $(CC) $(USER_INCLUDE) $(CFLAGS) -c -o $@ $< 486 568 … … 493 575 mcopy -o -i $(DISK_IMAGE) $@ ::/build/pgcd 494 576 495 build/pgcd/main.o: applications/pgcd/main.c 577 build/pgcd/main.o: applications/pgcd/main.c hard_config.h 496 578 $(CC) $(USER_INCLUDE) $(CFLAGS) -c -o $@ $< 497 579 … … 515 597 mcopy -o -i $(DISK_IMAGE) $@ ::/build/dhrystone 516 598 517 build/dhrystone/dhry_1.o: applications/dhrystone/dhry_1.c 599 build/dhrystone/dhry_1.o: applications/dhrystone/dhry_1.c hard_config.h 518 600 $(CC) $(USER_INCLUDE) $(CFLAGS) -c -o $@ $< 519 601 520 build/dhrystone/dhry_2.o: applications/dhrystone/dhry_2.c 602 build/dhrystone/dhry_2.o: applications/dhrystone/dhry_2.c hard_config.h 521 603 $(CC) $(USER_INCLUDE) $(CFLAGS) -c -o $@ $< 522 604 … … 575 657 build/coproc/main.o: applications/coproc/main.c 576 658 $(CC) $(USER_INCLUDE) $(CFLAGS) -O0 -c -o $@ $< 659 660 ######################################## 661 ### ocean compilation 662 build/ocean/ocean.elf: applications/ocean/ocean.elf 663 mv $< $@ 664 $(DU) -D $@ > $@.txt 665 666 applications/ocean/ocean.elf: $(OCEAN_OBJS) 667 cd applications/ocean/ && $(MAKE) 577 668 578 669 ######################################## … … 581 672 rm -f *.o *.elf *.bin *.txt core 582 673 rm -f hard_config.h giet_vsegs.ld map.bin map.xml 583 rm -rf build/boot/* 584 rm -rf build/fat32/* 585 rm -rf build/common/* 586 rm -rf build/drivers/* 587 rm -rf build/kernel/* 588 rm -rf build/reset/* 589 rm -rf build/libs/* 590 rm -rf build/pgcd/* 591 rm -rf build/hello/* 592 rm -rf build/display/* 593 rm -rf build/router/* 594 rm -rf build/gameoflife/* 595 rm -rf build/dhrystone/* 596 rm -rf build/sort/* 597 rm -rf build/transpose/* 598 rm -rf build/convol/* 599 rm -rf build/classif/* 600 rm -rf build/coproc/* 674 rm -rf build/ 675 cd applications/ocean && $(MAKE) clean
Note: See TracChangeset
for help on using the changeset viewer.