Changeset 463 for soft/giet_vm/Makefile
- Timestamp:
- Dec 5, 2014, 4:23:45 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
soft/giet_vm/Makefile
r445 r463 8 8 AR = mipsel-unknown-elf-ar 9 9 10 # Parameters definition 10 11 ARCH ?= ../tsar-trunk-svn-2013/platforms/tsar_generic_iob 11 X_SIZE ?= 2 12 Y_SIZE ?= 2 13 NPROCS ?= 2 14 FBF_WIDTH ?= 1024 15 APP ?= convol 12 X_SIZE ?= 1 13 Y_SIZE ?= 1 14 NB_PROCS ?= 4 15 NB_TTYS ?= 1 16 FBF_WIDTH ?= 128 17 APP ?= classif 16 18 17 19 .PHONY: map.bin … … 23 25 ### partition sectors = 524832 24 26 25 ### Objects to be linked for the drivers staticlibrary27 ### Objects to be linked for the drivers library 26 28 DRIVERS_OBJS = build/drivers/dma_driver.o \ 27 29 build/drivers/cma_driver.o \ … … 43 45 ### Objects to be linked for kernel.elf 44 46 KERNEL_OBJS = build/common/utils.o \ 45 build/kernel/kernel_utils.o \ 47 build/common/locks.o \ 48 build/common/tty0.o \ 46 49 build/common/vmem.o \ 47 50 build/fat32/fat32.o \ … … 55 58 56 59 ### Objects to be linked for boot.elf 57 BOOT_OBJS = build/common/utils.o \ 58 build/common/pmem.o \ 59 build/common/vmem.o \ 60 build/fat32/fat32.o \ 61 build/kernel/ctx_handler.o \ 62 build/kernel/switch.o \ 63 build/boot/boot.o \ 60 BOOT_OBJS = build/common/utils.o \ 61 build/common/locks.o \ 62 build/common/tty0.o \ 63 build/common/pmem.o \ 64 build/common/vmem.o \ 65 build/fat32/fat32.o \ 66 build/kernel/ctx_handler.o \ 67 build/kernel/switch.o \ 68 build/boot/boot.o \ 64 69 build/boot/boot_entry.o 65 70 … … 71 76 ROUTER_OBJS = build/router/main.o \ 72 77 build/libs/mwmr_channel.o \ 78 build/libs/user_lock.o \ 73 79 build/libs/stdio.o 74 80 … … 86 92 build/libs/barrier.o \ 87 93 build/libs/malloc.o \ 88 build/libs/ spin_lock.o94 build/libs/user_lock.o 89 95 90 96 … … 95 101 build/libs/stdio.o \ 96 102 build/libs/string.o \ 97 build/libs/ spin_lock.o \103 build/libs/user_lock.o \ 98 104 build/libs/malloc.o 99 105 100 106 ### Objects to be linked for sort.elf 101 107 SORT_OBJS = build/sort/main.o \ … … 103 109 build/libs/barrier.o \ 104 110 build/libs/malloc.o \ 105 build/libs/ spin_lock.o111 build/libs/user_lock.o 106 112 107 113 ### Objects to be linked for transpose.elf … … 110 116 build/libs/barrier.o \ 111 117 build/libs/malloc.o \ 112 build/libs/ spin_lock.o118 build/libs/user_lock.o 113 119 114 120 ### Objects to be linked for convol.elf … … 118 124 build/libs/barrier.o \ 119 125 build/libs/malloc.o \ 120 build/libs/spin_lock.o 126 build/libs/user_lock.o 127 128 ### Objects to be linked for classif.elf 129 CLASSIF_OBJS = build/classif/main.o \ 130 build/libs/stdio.o \ 131 build/libs/mwmr_channel.o \ 132 build/libs/barrier.o \ 133 build/libs/malloc.o \ 134 build/libs/user_lock.o 121 135 122 136 CFLAGS = -Wall -ffreestanding -mno-gpopt -mips32 -g -O2 \ … … 152 166 build/transpose/transpose.elf \ 153 167 build/convol/convol.elf \ 168 build/router/router.elf \ 169 build/classif/classif.elf \ 154 170 $(DISK_IMAGE) 155 171 … … 160 176 mcopy -o -i $(DISK_IMAGE) build/transpose/transpose.elf ::/build/transpose 161 177 mcopy -o -i $(DISK_IMAGE) build/convol/convol.elf ::/build/convol 178 mcopy -o -i $(DISK_IMAGE) build/classif/classif.elf ::/build/classif 162 179 mcopy -o -i $(DISK_IMAGE) build/hello/hello.elf ::/build/hello 163 180 mcopy -o -i $(DISK_IMAGE) build/pgcd/pgcd.elf ::/build/pgcd … … 184 201 mmd -o -i $(DISK_IMAGE) ::/build/transpose 185 202 mmd -o -i $(DISK_IMAGE) ::/build/convol 203 mmd -o -i $(DISK_IMAGE) ::/build/classif 186 204 mmd -o -i $(DISK_IMAGE) ::/build/hello 187 205 mmd -o -i $(DISK_IMAGE) ::/build/pgcd … … 195 213 ### mapping generation: map.bin / map.xml / hard_config.h / giet_vsegs.ld 196 214 map.bin hard_config.h giet_vsegs.ld: $(ARCH)/arch.py applications/$(APP)/$(APP).py 197 giet_python/genmap --arch=$(ARCH) \215 giet_python/genmap --arch=$(ARCH) \ 198 216 --x=$(X_SIZE) \ 199 217 --y=$(Y_SIZE) \ 200 --p=$(NPROCS) \ 218 --p=$(NB_PROCS) \ 219 --tty=$(NB_TTYS) \ 201 220 --fbf=$(FBF_WIDTH) \ 202 221 --giet=. \ … … 316 335 build/common/utils.o: giet_common/utils.c \ 317 336 giet_common/utils.h \ 337 hard_config.h \ 338 giet_config.h 339 $(CC) $(GIET_INCLUDE) $(CFLAGS) -c -o $@ $< 340 341 build/common/locks.o: giet_common/locks.c \ 342 giet_common/locks.h \ 343 hard_config.h \ 344 giet_config.h 345 $(CC) $(GIET_INCLUDE) $(CFLAGS) -c -o $@ $< 346 347 build/common/tty0.o: giet_common/tty0.c \ 348 giet_common/tty0.h \ 318 349 hard_config.h \ 319 350 giet_config.h … … 388 419 build/libs/malloc.o: giet_libs/malloc.c \ 389 420 giet_libs/malloc.h \ 390 giet_libs/malloc_private.h \391 421 hard_config.h \ 392 422 giet_config.h … … 411 441 $(CC) $(CFLAGS) $(USER_INCLUDE) -c -o $@ $< 412 442 413 build/libs/ spin_lock.o: giet_libs/spin_lock.c \414 giet_libs/ spin_lock.h \443 build/libs/user_lock.o: giet_libs/user_lock.c \ 444 giet_libs/user_lock.h \ 415 445 hard_config.h \ 416 446 giet_config.h … … 504 534 505 535 build/convol/main.o: applications/convol/main.c 536 $(CC) $(USER_INCLUDE) $(CFLAGS) -O0 -c -o $@ $< 537 538 ######################################## 539 ### classif compilation 540 build/classif/classif.elf: $(CLASSIF_OBJS) applications/classif/classif.ld hard_config.h 541 $(LD) -o $@ -T applications/classif/classif.ld $(CLASSIF_OBJS) 542 $(DU) -D $@ > $@.txt 543 544 build/classif/main.o: applications/classif/main.c 506 545 $(CC) $(USER_INCLUDE) $(CFLAGS) -O0 -c -o $@ $< 507 546 … … 527 566 rm -rf build/transpose/* 528 567 rm -rf build/convol/* 568 rm -rf build/classif/* 529 569 rm -rf $(DISK_IMAGE)
Note: See TracChangeset
for help on using the changeset viewer.