Created Makefile to build entire project and moved microblaze code back into the repo
This commit is contained in:
28
Makefile
Normal file
28
Makefile
Normal file
@@ -0,0 +1,28 @@
|
||||
all: syn/main.bin
|
||||
|
||||
syn/main.bin: syn/main.ncd mb/Graphics/Release/Graphics.elf
|
||||
@cd syn && bitgen -intstyle ise -f main.ut main.ncd
|
||||
|
||||
syn/main.ncd: syn/main.prj syn/main.xst src/*.v ipcore_dir/*.v syn/xst/projnav.tmp/
|
||||
@cd syn && xst -intstyle ise -ifn "main.xst" -ofn "main.syr"
|
||||
@cd syn && ngdbuild -intstyle ise -dd _ngo -sd ../ipcore_dir -nt timestamp -i -p xc6slx9-tqg144-2 main.ngc main.ngd -bm "../ipcore_dir/microblaze_mcs.bmm"
|
||||
@cd syn && map -intstyle ise -p xc6slx9-tqg144-2 -w -logic_opt off -ol high -t 1 -xt 0 -register_duplication off -r 4 -global_opt off -mt off -ir off -pr off -lc off -power off -o main_map.ncd main.ngd main.pcf
|
||||
@cd syn && par -w -intstyle ise -ol high -mt off main_map.ncd main.ncd main.pcf
|
||||
@cd syn && trce -intstyle ise -v 3 -s 2 -n 3 -fastpaths -xml main.twx main.ncd -o main.twr main.pcf
|
||||
|
||||
syn/xst/projnav.tmp/:
|
||||
@mkdir -p syn/xst/projnav.tmp
|
||||
|
||||
mb/Graphics/Release/Graphics.elf: mb
|
||||
@echo
|
||||
|
||||
.PHONY: mb
|
||||
mb:
|
||||
@$(MAKE) -C mb/Graphics_bsp all
|
||||
@$(MAKE) -C mb/Graphics/Release all
|
||||
|
||||
.PHONY: clean
|
||||
clean:
|
||||
@cd syn && find . ! -name 'main.prj' ! -name 'main.ut' ! -name 'main.xst' ! -name 'Makefile' ! -name '.' -exec rm -rf {} +
|
||||
@$(MAKE) -C mb/Graphics_bsp clean
|
||||
@$(MAKE) -C mb/Graphics/Release clean
|
||||
Reference in New Issue
Block a user