Changeset 326
- Timestamp:
- Jun 10, 2014, 2:27:17 PM (11 years ago)
- Location:
- soft/giet_vm
- Files:
-
- 1 deleted
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
soft/giet_vm/Makefile
r314 r326 7 7 DU = mipsel-unknown-elf-objdump 8 8 9 ARCH ?= ../tsar-trunk-svn-2013/platforms/tsar_generic_iob 10 X ?= 2 11 Y ?= 2 12 P ?= 2 13 APP ?= transpose 14 15 .PHONY: map.bin 16 9 17 ### FAT parameters definition for Disk image 10 18 ### sector_size = 512 … … 12 20 ### sector_per_cluster = 8 13 21 ### partition sectors = 524832 14 15 MAP_XML ?= mappings/tsar_leti_4_4_4_transpose.xml16 22 17 23 ### Objects to be linked for kernel.elf … … 111 117 CFLAGS = -Wall -ffreestanding -mno-gpopt -mips32 112 118 113 114 119 GIET_INCLUDE = -Igiet_boot \ 115 120 -Igiet_kernel \ … … 129 134 ### Copy executable and miscellaneous files into disk image 130 135 ### Copy bootloader into sector 2 of disk image 131 all: $(DISK_IMAGE) \ 132 $(MAP_XML) \ 133 giet_config.h \ 134 map.bin \ 136 all: map.bin \ 137 hard_config.h \ 138 giet_vsegs.ld \ 135 139 build/boot/boot.elf \ 136 140 build/kernel/kernel.elf \ … … 143 147 build/sort/sort.elf \ 144 148 build/transpose/transpose.elf \ 149 $(DISK_IMAGE) 145 150 146 151 mcopy -o -i $(DISK_IMAGE) build/kernel/kernel.elf ::/build/kernel … … 176 181 mv temp.dmg $(DISK_IMAGE) 177 182 178 ### mapping compilation 179 map.bin: $(MAP_XML) 180 $(MAKE) -C giet_xml 181 giet_xml/xml2bin $< . 183 ### mapping generation: map.bin / map.xml / hard_config.h / giet_vsegs.ld 184 map.bin: $(ARCH)/genmap.py $(APP)/$(APP).py 185 giet_python/tsarmap --arch=$(ARCH) --x=$(X) --y=$(Y) --p=$(P) --giet=. --$(APP) --xml=. 186 187 hard_config.h: $(ARCH)/genmap.py $(APP)/$(APP).py 188 giet_python/tsarmap --arch=$(ARCH) --x=$(X) --y=$(Y) --p=$(P) --giet=. --$(APP) --xml=. 189 190 giet_vsegs.ld: $(ARCH)/genmap.py $(APP)/$(APP).py 191 giet_python/tsarmap --arch=$(ARCH) --x=$(X) --y=$(Y) --p=$(P) --giet=. --$(APP) --xml=. 182 192 183 193 ### drivers compilation 184 194 build/drivers/cma_driver.o: giet_drivers/cma_driver.c \ 185 195 giet_drivers/cma_driver.h \ 186 giet_config.h \187 $(MAP_XML)196 hard_config.h \ 197 giet_config.h 188 198 $(CC) $(GIET_INCLUDE) $(CFLAGS) -c -o $@ $< 189 199 190 200 build/drivers/dma_driver.o: giet_drivers/dma_driver.c \ 191 201 giet_drivers/dma_driver.h \ 192 giet_config.h \193 $(MAP_XML)202 hard_config.h \ 203 giet_config.h 194 204 $(CC) $(GIET_INCLUDE) $(CFLAGS) -c -o $@ $< 195 205 196 206 build/drivers/fbf_driver.o: giet_drivers/fbf_driver.c \ 197 207 giet_drivers/fbf_driver.h \ 198 giet_config.h \199 $(MAP_XML)208 hard_config.h \ 209 giet_config.h 200 210 $(CC) $(GIET_INCLUDE) $(CFLAGS) -c -o $@ $< 201 211 202 212 build/drivers/xcu_driver.o: giet_drivers/xcu_driver.c \ 203 213 giet_drivers/xcu_driver.h \ 204 giet_config.h \205 $(MAP_XML)214 hard_config.h \ 215 giet_config.h 206 216 $(CC) $(GIET_INCLUDE) $(CFLAGS) -c -o $@ $< 207 217 208 218 build/drivers/icu_driver.o: giet_drivers/icu_driver.c \ 209 219 giet_drivers/icu_driver.h \ 210 giet_config.h \211 $(MAP_XML)220 hard_config.h \ 221 giet_config.h 212 222 $(CC) $(GIET_INCLUDE) $(CFLAGS) -c -o $@ $< 213 223 214 224 build/drivers/ioc_driver.o: giet_drivers/ioc_driver.c \ 215 225 giet_drivers/ioc_driver.h \ 216 giet_config.h \217 $(MAP_XML)226 hard_config.h \ 227 giet_config.h 218 228 $(CC) $(GIET_INCLUDE) $(CFLAGS) -c -o $@ $< 219 229 220 230 build/drivers/bdv_driver.o: giet_drivers/bdv_driver.c \ 221 231 giet_drivers/bdv_driver.h \ 222 giet_config.h \223 $(MAP_XML)232 hard_config.h \ 233 giet_config.h 224 234 $(CC) $(GIET_INCLUDE) $(CFLAGS) -c -o $@ $< 225 235 226 236 build/drivers/hba_driver.o: giet_drivers/hba_driver.c \ 227 237 giet_drivers/hba_driver.h \ 228 giet_config.h \229 $(MAP_XML)238 hard_config.h \ 239 giet_config.h 230 240 $(CC) $(GIET_INCLUDE) $(CFLAGS) -c -o $@ $< 231 241 232 242 build/drivers/sdc_driver.o: giet_drivers/sdc_driver.c \ 233 243 giet_drivers/sdc_driver.h \ 234 giet_config.h \235 $(MAP_XML)244 hard_config.h \ 245 giet_config.h 236 246 $(CC) $(GIET_INCLUDE) $(CFLAGS) -c -o $@ $< 237 247 238 248 build/drivers/spi_driver.o: giet_drivers/spi_driver.c \ 239 249 giet_drivers/spi_driver.h \ 240 giet_config.h \241 $(MAP_XML)250 hard_config.h \ 251 giet_config.h 242 252 $(CC) $(GIET_INCLUDE) $(CFLAGS) -c -o $@ $< 243 253 244 254 build/drivers/rdk_driver.o: giet_drivers/rdk_driver.c \ 245 255 giet_drivers/rdk_driver.h \ 246 giet_config.h \247 $(MAP_XML)256 hard_config.h \ 257 giet_config.h 248 258 $(CC) $(GIET_INCLUDE) $(CFLAGS) -c -o $@ $< 249 259 250 260 build/drivers/iob_driver.o: giet_drivers/iob_driver.c \ 251 261 giet_drivers/iob_driver.h \ 252 giet_config.h \253 $(MAP_XML)262 hard_config.h \ 263 giet_config.h 254 264 $(CC) $(GIET_INCLUDE) $(CFLAGS) -c -o $@ $< 255 265 256 266 build/drivers/mmc_driver.o: giet_drivers/mmc_driver.c \ 257 267 giet_drivers/mmc_driver.h \ 258 giet_config.h \259 $(MAP_XML)268 hard_config.h \ 269 giet_config.h 260 270 $(CC) $(GIET_INCLUDE) $(CFLAGS) -c -o $@ $< 261 271 262 272 build/drivers/mwr_driver.o: giet_drivers/mwr_driver.c \ 263 273 giet_drivers/mwr_driver.h \ 264 giet_config.h \265 $(MAP_XML)274 hard_config.h \ 275 giet_config.h 266 276 $(CC) $(GIET_INCLUDE) $(CFLAGS) -c -o $@ $< 267 277 268 278 build/drivers/nic_driver.o: giet_drivers/nic_driver.c \ 269 279 giet_drivers/nic_driver.h \ 270 giet_config.h \271 $(MAP_XML)280 hard_config.h \ 281 giet_config.h 272 282 $(CC) $(GIET_INCLUDE) $(CFLAGS) -c -o $@ $< 273 283 274 284 build/drivers/tim_driver.o: giet_drivers/tim_driver.c \ 275 285 giet_drivers/tim_driver.h \ 276 giet_config.h \277 $(MAP_XML)286 hard_config.h \ 287 giet_config.h 278 288 $(CC) $(GIET_INCLUDE) $(CFLAGS) -c -o $@ $< 279 289 280 290 build/drivers/tty_driver.o: giet_drivers/tty_driver.c \ 281 291 giet_drivers/tty_driver.h \ 282 giet_config.h \283 $(MAP_XML)292 hard_config.h \ 293 giet_config.h 284 294 $(CC) $(GIET_INCLUDE) $(CFLAGS) -c -o $@ $< 285 295 286 296 build/drivers/pic_driver.o: giet_drivers/pic_driver.c \ 287 297 giet_drivers/pic_driver.h \ 288 giet_config.h \289 $(MAP_XML)298 hard_config.h \ 299 giet_config.h 290 300 $(CC) $(GIET_INCLUDE) $(CFLAGS) -c -o $@ $< 291 301 … … 293 303 build/fat32/fat32.o: giet_fat32/fat32.c \ 294 304 giet_fat32/fat32.h \ 295 giet_config.h \296 $(MAP_XML)305 hard_config.h \ 306 giet_config.h 297 307 $(CC) $(GIET_INCLUDE) $(CFLAGS) -c -o $@ $< 298 308 … … 300 310 build/common/utils.o: giet_common/utils.c \ 301 311 giet_common/utils.h \ 302 giet_config.h \303 $(MAP_XML)312 hard_config.h \ 313 giet_config.h 304 314 $(CC) $(GIET_INCLUDE) $(CFLAGS) -c -o $@ $< 305 315 … … 307 317 build/common/vmem.o: giet_common/vmem.c \ 308 318 giet_common/vmem.h \ 309 giet_config.h\310 $(MAP_XML)319 hard_config.h \ 320 giet_config.h 311 321 $(CC) $(GIET_INCLUDE) $(CFLAGS) -c -o $@ $< 312 322 313 323 ### boot compilation 314 build/boot/boot.elf: $(BOOT_OBJS) 324 build/boot/boot.elf: $(BOOT_OBJS) \ 325 giet_boot/boot.ld 315 326 $(LD) -o $@ -T giet_boot/boot.ld $(BOOT_OBJS) 316 327 $(DU) -D $@ > $@.txt … … 322 333 giet_drivers/tty_driver.h \ 323 334 giet_drivers/ioc_driver.h \ 324 giet_config.h \325 $(MAP_XML)335 hard_config.h \ 336 giet_config.h 326 337 $(CC) $(GIET_INCLUDE) $(CFLAGS) -c -o $@ $< 327 338 328 339 ### kernel compilation 329 build/kernel/kernel.elf: $(KERNEL_OBJS) giet_kernel/kernel.ld 340 build/kernel/kernel.elf: $(KERNEL_OBJS) \ 341 giet_kernel/kernel.ld 330 342 $(LD) -o $@ -T giet_kernel/kernel.ld $(KERNEL_OBJS) 331 343 $(DU) -D $@ > $@.txt 332 344 333 build/kernel/%.o: giet_kernel/%.c giet_config.h $(MAP_XML) 334 $(CC) $(GIET_INCLUDE) $(CFLAGS) -c -o $@ $< 335 336 build/kernel/%.o: giet_kernel/%.s giet_config.h $(MAP_XML) 345 build/kernel/%.o: giet_kernel/%.c \ 346 hard_config.h \ 347 giet_config.h 348 $(CC) $(GIET_INCLUDE) $(CFLAGS) -c -o $@ $< 349 350 build/kernel/%.o: giet_kernel/%.s \ 351 hard_config.h \ 352 giet_config.h 337 353 $(CC) $(GIET_INCLUDE) $(CFLAGS) -c -o $@ $< 338 354 … … 343 359 build/libs/stdio.o: giet_libs/stdio.c \ 344 360 giet_libs/stdio.h \ 361 hard_config.h \ 345 362 giet_config.h 346 363 $(CC) $(CFLAGS) $(USER_INCLUDE) -c -o $@ $< … … 348 365 build/libs/mwmr_channel.o: giet_libs/mwmr_channel.c \ 349 366 giet_libs/mwmr_channel.h \ 367 hard_config.h \ 350 368 giet_config.h 351 369 $(CC) $(CFLAGS) $(USER_INCLUDE) -c -o $@ $< … … 354 372 giet_libs/malloc.h \ 355 373 giet_libs/malloc_private.h \ 374 hard_config.h \ 356 375 giet_config.h 357 376 $(CC) $(CFLAGS) $(USER_INCLUDE) -c -o $@ $< … … 359 378 build/libs/barrier.o: giet_libs/barrier.c \ 360 379 giet_libs/barrier.h \ 380 hard_config.h \ 361 381 giet_config.h 362 382 $(CC) $(CFLAGS) $(USER_INCLUDE) -c -o $@ $< … … 364 384 build/libs/stdlib.o: giet_libs/stdlib.c \ 365 385 giet_libs/stdlib.h \ 386 hard_config.h \ 366 387 giet_config.h 367 388 $(CC) $(CFLAGS) $(USER_INCLUDE) -c -o $@ $< … … 369 390 build/libs/string.o: giet_libs/string.c \ 370 391 giet_libs/string.h \ 392 hard_config.h \ 371 393 giet_config.h 372 394 $(CC) $(CFLAGS) $(USER_INCLUDE) -c -o $@ $< … … 374 396 build/libs/spin_lock.o: giet_libs/spin_lock.c \ 375 397 giet_libs/spin_lock.h \ 398 hard_config.h \ 376 399 giet_config.h 377 400 $(CC) $(CFLAGS) $(USER_INCLUDE) -c -o $@ $< … … 449 472 ### clean 450 473 clean: 451 rm -f *.o *.elf *.bin *.txt core giet_vsegs.ld hard_config.h map.bin*~452 $(MAKE) -s clean -C giet_xml474 rm -f *.o *.elf *.bin *.txt core 475 rm -f hard_config.h giet_vsegs.ld map.bin map.xml 453 476 rm -rf build/boot/* 454 477 rm -rf build/fat32/* … … 466 489 rm -rf build/sort/* 467 490 rm -rf build/transpose/* 468 rm -rf build/map.bin469 470 distclean: clean471 491 rm -rf hdd/virt_hdd.dmg -
soft/giet_vm/giet_python/mapping.py
r319 r326 1180 1180 s += '\n' 1181 1181 1182 s += '/* physical base addresses for identity mapped boot vsegs */\n' 1182 s += '/* physical base addresses for identity mapped vsegs */\n' 1183 s += '/* used by the GietVM OS */\n' 1183 1184 s += '\n' 1184 1185 s += '#define SEG_BOOT_MAPPING_BASE 0x%x\n' % boot_mapping_base
Note: See TracChangeset
for help on using the changeset viewer.