- Timestamp:
- Jul 3, 2015, 12:00:43 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
soft/giet_vm/Makefile
r582 r583 95 95 build/boot/boot_entry.o 96 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 \ 97 ### Objects to be linked for the math library 98 MATH_OBJS = build/libs/math/e_pow.o \ 99 build/libs/math/e_rem_pio2.o \ 100 build/libs/math/k_cos.o \ 101 build/libs/math/k_rem_pio2.o \ 102 build/libs/math/k_sin.o \ 103 build/libs/math/s_copysign.o \ 104 build/libs/math/s_fabs.o \ 105 build/libs/math/s_finite.o \ 106 build/libs/math/s_floor.o \ 107 build/libs/math/s_isnan.o \ 108 build/libs/math/sqrt.o \ 109 build/libs/math/s_rint.o \ 110 build/libs/math/s_scalbn.o \ 111 build/libs/math/s_sin.o \ 112 build/libs/math/e_sqrt.o \ 112 113 113 114 ### Objects to be linked for display.elf … … 214 215 215 216 all: build \ 217 $(DISK_IMAGE) \ 216 218 map.bin \ 217 219 hard_config.h \ … … 230 232 build/classif/classif.elf \ 231 233 build/coproc/coproc.elf \ 232 $(DISK_IMAGE) 233 # build/ocean/ocean.elf \ 234 ### Copy always all files into disk image 235 mcopy -o -i $(DISK_IMAGE) build/kernel/kernel.elf ::/build/kernel 236 mcopy -o -i $(DISK_IMAGE) build/display/display.elf ::/build/display 237 mcopy -o -i $(DISK_IMAGE) build/hello/hello.elf ::/build/hello 238 mcopy -o -i $(DISK_IMAGE) build/pgcd/pgcd.elf ::/build/pgcd 239 mcopy -o -i $(DISK_IMAGE) build/router/router.elf ::/build/router 240 mcopy -o -i $(DISK_IMAGE) build/dhrystone/dhrystone.elf ::/build/dhrystone 241 mcopy -o -i $(DISK_IMAGE) build/gameoflife/gameoflife.elf ::/build/gameoflife 242 mcopy -o -i $(DISK_IMAGE) build/sort/sort.elf ::/build/sort 243 mcopy -o -i $(DISK_IMAGE) build/transpose/transpose.elf ::/build/transpose 244 mcopy -o -i $(DISK_IMAGE) build/convol/convol.elf ::/build/convol 245 mcopy -o -i $(DISK_IMAGE) build/classif/classif.elf ::/build/classif 246 mcopy -o -i $(DISK_IMAGE) build/coproc/coproc.elf ::/build/coproc 247 # mcopy -o -i $(DISK_IMAGE) build/ocean/ocean.elf ::/build/ocean 248 mcopy -o -i $(DISK_IMAGE) applications/transpose/images.raw ::/misc 249 mcopy -o -i $(DISK_IMAGE) applications/convol/philips_image.raw ::/misc 250 mcopy -o -i $(DISK_IMAGE) applications/display/lena.raw ::/misc 251 mcopy -o -i $(DISK_IMAGE) map.bin ::/ 252 ### Copy bootloader into sector 2 of disk image 253 dd if=build/boot/boot.elf of=$(DISK_IMAGE) seek=2 conv=notrunc 254 ### Checking root directory 234 build/ocean/ocean.elf 255 235 mdir -/ -b -i $(DISK_IMAGE) ::/ 256 257 236 258 237 build: 259 238 mkdir -p build 260 239 (cd build && mkdir -p $(BUILD_DIRS)) 240 241 ### copy the files generated by the virtual prototype on 242 ### the virtual disk "home" directory to the giet_vm home directory 243 extract: 244 mcopy -o -i $(DISK_IMAGE) ::/home . 261 245 262 246 ### Disk image generation (no files in this step) … … 273 257 mmd -o -i $(DISK_IMAGE) ::/misc 274 258 mmd -o -i $(DISK_IMAGE) ::/home 275 #mcopy -o -i $(DISK_IMAGE) applications/transpose/images.raw ::/misc276 #mcopy -o -i $(DISK_IMAGE) applications/convol/philips_image.raw ::/misc277 #mcopy -o -i $(DISK_IMAGE) applications/display/lena.raw ::/misc259 mcopy -o -i $(DISK_IMAGE) applications/transpose/images.raw ::/misc 260 mcopy -o -i $(DISK_IMAGE) applications/convol/philips_image.raw ::/misc 261 mcopy -o -i $(DISK_IMAGE) applications/display/lena.raw ::/misc 278 262 279 263 ### mapping generation: map.bin / map.xml / hard_config.h / giet_vsegs.ld … … 289 273 --$(APP) \ 290 274 --xml=. 291 # mcopy -o -i $(DISK_IMAGE) map.bin ::/ 292 293 ### drivers compilation 294 build/drivers/cma_driver.o: giet_drivers/cma_driver.c \ 295 giet_drivers/cma_driver.h \ 296 hard_config.h \ 297 giet_config.h 298 $(CC) $(GIET_INCLUDE) $(CFLAGS) -c -o $@ $< 299 300 build/drivers/dma_driver.o: giet_drivers/dma_driver.c \ 301 giet_drivers/dma_driver.h \ 302 hard_config.h \ 303 giet_config.h 304 $(CC) $(GIET_INCLUDE) $(CFLAGS) -c -o $@ $< 305 306 build/drivers/xcu_driver.o: giet_drivers/xcu_driver.c \ 307 giet_drivers/xcu_driver.h \ 308 hard_config.h \ 309 giet_config.h 310 $(CC) $(GIET_INCLUDE) $(CFLAGS) -c -o $@ $< 311 312 build/drivers/bdv_driver.o: giet_drivers/bdv_driver.c \ 313 giet_drivers/bdv_driver.h \ 314 hard_config.h \ 315 giet_config.h 316 $(CC) $(GIET_INCLUDE) $(CFLAGS) -c -o $@ $< 317 318 build/drivers/hba_driver.o: giet_drivers/hba_driver.c \ 319 giet_drivers/hba_driver.h \ 320 hard_config.h \ 321 giet_config.h 322 $(CC) $(GIET_INCLUDE) $(CFLAGS) -c -o $@ $< 323 324 build/drivers/sdc_driver.o: giet_drivers/sdc_driver.c \ 325 giet_drivers/sdc_driver.h \ 326 hard_config.h \ 327 giet_config.h 328 $(CC) $(GIET_INCLUDE) $(CFLAGS) -c -o $@ $< 329 330 build/drivers/spi_driver.o: giet_drivers/spi_driver.c \ 331 giet_drivers/spi_driver.h \ 332 hard_config.h \ 333 giet_config.h 334 $(CC) $(GIET_INCLUDE) $(CFLAGS) -c -o $@ $< 335 336 build/drivers/rdk_driver.o: giet_drivers/rdk_driver.c \ 337 giet_drivers/rdk_driver.h \ 338 hard_config.h \ 339 giet_config.h 340 $(CC) $(GIET_INCLUDE) $(CFLAGS) -c -o $@ $< 341 342 build/drivers/iob_driver.o: giet_drivers/iob_driver.c \ 343 giet_drivers/iob_driver.h \ 344 hard_config.h \ 345 giet_config.h 346 $(CC) $(GIET_INCLUDE) $(CFLAGS) -c -o $@ $< 347 348 build/drivers/mmc_driver.o: giet_drivers/mmc_driver.c \ 349 giet_drivers/mmc_driver.h \ 350 hard_config.h \ 351 giet_config.h 352 $(CC) $(GIET_INCLUDE) $(CFLAGS) -c -o $@ $< 353 354 build/drivers/mwr_driver.o: giet_drivers/mwr_driver.c \ 355 giet_drivers/mwr_driver.h \ 356 hard_config.h \ 357 giet_config.h 358 $(CC) $(GIET_INCLUDE) $(CFLAGS) -c -o $@ $< 359 360 build/drivers/nic_driver.o: giet_drivers/nic_driver.c \ 361 giet_drivers/nic_driver.h \ 362 hard_config.h \ 363 giet_config.h 364 $(CC) $(GIET_INCLUDE) $(CFLAGS) -c -o $@ $< 365 366 build/drivers/tim_driver.o: giet_drivers/tim_driver.c \ 367 giet_drivers/tim_driver.h \ 368 hard_config.h \ 369 giet_config.h 370 $(CC) $(GIET_INCLUDE) $(CFLAGS) -c -o $@ $< 371 372 build/drivers/tty_driver.o: giet_drivers/tty_driver.c \ 373 giet_drivers/tty_driver.h \ 374 hard_config.h \ 375 giet_config.h 376 $(CC) $(GIET_INCLUDE) $(CFLAGS) -c -o $@ $< 377 378 build/drivers/pic_driver.o: giet_drivers/pic_driver.c \ 379 giet_drivers/pic_driver.h \ 380 hard_config.h \ 381 giet_config.h 382 $(CC) $(GIET_INCLUDE) $(CFLAGS) -c -o $@ $< 275 mcopy -o -i $(DISK_IMAGE) map.bin ::/ 383 276 384 277 ################################ 385 278 ### drivers library compilation 279 build/drivers/%.o: giet_drivers/%.c \ 280 giet_drivers/%.h \ 281 hard_config.h \ 282 giet_config.h 283 $(CC) $(GIET_INCLUDE) $(CFLAGS) -c -o $@ $< 284 386 285 build/drivers/libdrivers.a: $(DRIVERS_OBJS) 387 286 $(AR) -rcs $@ $(DRIVERS_OBJS) 388 287 389 288 ########################## 390 ### commoncompilation289 ### fat32 compilation 391 290 build/fat32/fat32.o: giet_fat32/fat32.c \ 392 291 giet_fat32/fat32.h \ … … 395 294 $(CC) $(GIET_INCLUDE) $(CFLAGS) -c -o $@ $< 396 295 397 build/common/utils.o: giet_common/utils.c \ 398 giet_common/utils.h \ 399 hard_config.h \ 400 giet_config.h 401 $(CC) $(GIET_INCLUDE) $(CFLAGS) -c -o $@ $< 402 403 build/common/kernel_locks.o: giet_common/kernel_locks.c \ 404 giet_common/kernel_locks.h \ 405 hard_config.h \ 406 giet_config.h 407 $(CC) $(GIET_INCLUDE) $(CFLAGS) -c -o $@ $< 408 409 build/common/kernel_barriers.o: giet_common/kernel_barriers.c \ 410 giet_common/kernel_barriers.h \ 411 hard_config.h \ 412 giet_config.h 413 $(CC) $(GIET_INCLUDE) $(CFLAGS) -c -o $@ $< 414 415 build/common/tty0.o: giet_common/tty0.c \ 416 giet_common/tty0.h \ 417 hard_config.h \ 418 giet_config.h 419 $(CC) $(GIET_INCLUDE) $(CFLAGS) -c -o $@ $< 420 421 build/common/vmem.o: giet_common/vmem.c \ 422 giet_common/vmem.h \ 423 hard_config.h \ 424 giet_config.h 425 $(CC) $(GIET_INCLUDE) $(CFLAGS) -c -o $@ $< 426 427 build/common/pmem.o: giet_common/pmem.c \ 428 giet_common/pmem.h \ 429 hard_config.h \ 430 giet_config.h 431 $(CC) $(GIET_INCLUDE) $(CFLAGS) -c -o $@ $< 432 433 build/common/kernel_malloc.o: giet_common/kernel_malloc.c \ 434 giet_common/kernel_malloc.h \ 435 hard_config.h \ 436 giet_config.h 296 ########################## 297 ### common compilation 298 build/common/%.o: giet_common/%.c \ 299 giet_common/%.h \ 300 hard_config.h \ 301 giet_config.h 437 302 $(CC) $(GIET_INCLUDE) $(CFLAGS) -c -o $@ $< 438 303 … … 440 305 ### boot compilation 441 306 ### Copy bootloader into sector 2 of disk image 442 443 307 build/boot/boot.elf: $(BOOT_OBJS) \ 444 308 $(DISK_IMAGE) \ 445 309 giet_boot/boot.ld \ 446 build/drivers/libdrivers.a | build/boot310 build/drivers/libdrivers.a 447 311 $(LD) -o $@ -T giet_boot/boot.ld $(BOOT_OBJS) -Lbuild/drivers -ldrivers 448 312 $(DU) -D $@ > $@.txt … … 470 334 $(DU) -D $@ > $@.txt 471 335 mmd -o -i $(DISK_IMAGE) ::/build/kernel || true 472 #mcopy -o -i $(DISK_IMAGE) $@ ::/build/kernel336 mcopy -o -i $(DISK_IMAGE) $@ ::/build/kernel 473 337 474 338 build/kernel/%.o: giet_kernel/%.c \ … … 484 348 ########################### 485 349 ### user libs compilation 486 build/libs/ stdio.o: giet_libs/stdio.c\487 giet_libs/stdio.h\488 hard_config.h\489 350 build/libs/%.o: giet_libs/%.c \ 351 giet_libs/%.h \ 352 hard_config.h \ 353 giet_config.h 490 354 $(CC) $(CFLAGS) $(USER_INCLUDE) -c -o $@ $< 491 355 492 build/libs/mwmr_channel.o: giet_libs/mwmr_channel.c \ 493 giet_libs/mwmr_channel.h \ 494 hard_config.h \ 495 giet_config.h 356 ################################ 357 ### math library compilation 358 build/libs/math/%.o: giet_libs/math/%.c \ 359 giet_libs/math/math_private.h \ 360 giet_libs/math.h 496 361 $(CC) $(CFLAGS) $(USER_INCLUDE) -c -o $@ $< 497 362 498 build/libs/malloc.o: giet_libs/malloc.c \ 499 giet_libs/malloc.h \ 500 hard_config.h \ 501 giet_config.h 502 $(CC) $(CFLAGS) $(USER_INCLUDE) -c -o $@ $< 503 504 build/libs/user_barrier.o: giet_libs/user_barrier.c \ 505 giet_libs/user_barrier.h \ 506 hard_config.h \ 507 giet_config.h 508 $(CC) $(CFLAGS) $(USER_INCLUDE) -c -o $@ $< 509 510 build/libs/stdlib.o: giet_libs/stdlib.c \ 511 giet_libs/stdlib.h \ 512 hard_config.h \ 513 giet_config.h 514 $(CC) $(CFLAGS) $(USER_INCLUDE) -c -o $@ $< 515 516 build/libs/string.o: giet_libs/string.c \ 517 giet_libs/string.h \ 518 hard_config.h \ 519 giet_config.h 520 $(CC) $(CFLAGS) $(USER_INCLUDE) -c -o $@ $< 521 522 build/libs/user_lock.o: giet_libs/user_lock.c \ 523 giet_libs/user_lock.h \ 524 hard_config.h \ 525 giet_config.h 526 $(CC) $(CFLAGS) $(USER_INCLUDE) -c -o $@ $< 527 528 build/libs/user_sqt_lock.o: giet_libs/user_sqt_lock.c \ 529 giet_libs/user_sqt_lock.h \ 530 giet_libs/user_lock.h \ 531 hard_config.h \ 532 giet_config.h 533 $(CC) $(CFLAGS) $(USER_INCLUDE) -c -o $@ $< 534 535 build/libs/libmath.a: $(MATH_OBJ) 363 build/libs/libmath.a: $(MATH_OBJS) 536 364 $(AR) -rcs $@ $^ 537 538 build/libs/math/%.o: giet_libs/math/%.c giet_libs/math/math_private.h giet_libs/math.h539 $(CC) $(CFLAGS) $(USER_INCLUDE) -c -o $@ $<540 365 541 366 ######################################## … … 545 370 $(DU) -D $@ > $@.txt 546 371 mmd -o -i $(DISK_IMAGE) ::/build/display || true 547 #mcopy -o -i $(DISK_IMAGE) $@ ::/build/display372 mcopy -o -i $(DISK_IMAGE) $@ ::/build/display 548 373 549 374 build/display/main.o: applications/display/main.c hard_config.h … … 556 381 $(DU) -D $@ > $@.txt 557 382 mmd -o -i $(DISK_IMAGE) ::/build/router || true 558 #mcopy -o -i $(DISK_IMAGE) $@ ::/build/router383 mcopy -o -i $(DISK_IMAGE) $@ ::/build/router 559 384 560 385 build/router/main.o: applications/router/main.c hard_config.h … … 567 392 $(DU) -D $@ > $@.txt 568 393 mmd -o -i $(DISK_IMAGE) ::/build/hello || true 569 #mcopy -o -i $(DISK_IMAGE) $@ ::/build/hello394 mcopy -o -i $(DISK_IMAGE) $@ ::/build/hello 570 395 571 396 build/hello/main.o: applications/hello/main.c hard_config.h … … 578 403 $(DU) -D $@ > $@.txt 579 404 mmd -o -i $(DISK_IMAGE) ::/build/pgcd || true 580 #mcopy -o -i $(DISK_IMAGE) $@ ::/build/pgcd405 mcopy -o -i $(DISK_IMAGE) $@ ::/build/pgcd 581 406 582 407 build/pgcd/main.o: applications/pgcd/main.c hard_config.h … … 589 414 $(DU) -D $@ > $@.txt 590 415 mmd -o -i $(DISK_IMAGE) ::/build/gameoflife || true 591 #mcopy -o -i $(DISK_IMAGE) $@ ::/build/gameoflife592 593 build/gameoflife/main.o: applications/gameoflife/main.c 416 mcopy -o -i $(DISK_IMAGE) $@ ::/build/gameoflife 417 418 build/gameoflife/main.o: applications/gameoflife/main.c hard_config.h 594 419 $(CC) $(USER_INCLUDE) $(CFLAGS) -O3 -c -o $@ $< 595 420 … … 600 425 $(DU) -D $@ > $@.txt 601 426 mmd -o -i $(DISK_IMAGE) ::/build/dhrystone || true 602 #mcopy -o -i $(DISK_IMAGE) $@ ::/build/dhrystone427 mcopy -o -i $(DISK_IMAGE) $@ ::/build/dhrystone 603 428 604 429 build/dhrystone/dhry_1.o: applications/dhrystone/dhry_1.c hard_config.h … … 614 439 $(DU) -D $@ > $@.txt 615 440 mmd -o -i $(DISK_IMAGE) ::/build/sort || true 616 #mcopy -o -i $(DISK_IMAGE) $@ ::/build/sort441 mcopy -o -i $(DISK_IMAGE) $@ ::/build/sort 617 442 618 443 build/sort/main.o: applications/sort/main.c hard_config.h … … 625 450 $(DU) -D $@ > $@.txt 626 451 mmd -o -i $(DISK_IMAGE) ::/build/transpose || true 627 #mcopy -o -i $(DISK_IMAGE) $@ ::/build/transpose452 mcopy -o -i $(DISK_IMAGE) $@ ::/build/transpose 628 453 629 454 build/transpose/main.o: applications/transpose/main.c hard_config.h … … 636 461 $(DU) -D $@ > $@.txt 637 462 mmd -o -i $(DISK_IMAGE) ::/build/convol || true 638 #mcopy -o -i $(DISK_IMAGE) $@ ::/build/convol463 mcopy -o -i $(DISK_IMAGE) $@ ::/build/convol 639 464 640 465 build/convol/main.o: applications/convol/main.c hard_config.h … … 647 472 $(DU) -D $@ > $@.txt 648 473 mmd -o -i $(DISK_IMAGE) ::/build/classif || true 649 #mcopy -o -i $(DISK_IMAGE) $@ ::/build/classif474 mcopy -o -i $(DISK_IMAGE) $@ ::/build/classif 650 475 651 476 build/classif/main.o: applications/classif/main.c hard_config.h … … 658 483 $(DU) -D $@ > $@.txt 659 484 mmd -o -i $(DISK_IMAGE) ::/build/coproc || true 660 #mcopy -o -i $(DISK_IMAGE) $@ ::/build/coproc661 662 build/coproc/main.o: applications/coproc/main.c 485 mcopy -o -i $(DISK_IMAGE) $@ ::/build/coproc 486 487 build/coproc/main.o: applications/coproc/main.c hard_config.h 663 488 $(CC) $(USER_INCLUDE) $(CFLAGS) -O0 -c -o $@ $< 664 489 665 490 ######################################## 666 491 ### ocean compilation 667 build/ocean/ocean.elf: applications/ocean/ocean.elf 492 build/ocean/ocean.elf: applications/ocean/ocean.elf hard_config.h 668 493 mv $< $@ 669 494 $(DU) -D $@ > $@.txt 670 671 applications/ocean/ocean.elf: $(OCEAN_OBJS) 495 mmd -o -i $(DISK_IMAGE) ::/build/ocean || true 496 mcopy -o -i $(DISK_IMAGE) $@ ::/build/ocean 497 498 applications/ocean/ocean.elf: $(OCEAN_OBJS) hard_config.h 672 499 cd applications/ocean/ && $(MAKE) 673 500
Note: See TracChangeset
for help on using the changeset viewer.