FIX: regeneration auf Make.sources if .config changes

This commit is contained in:
Dominik Meyer 2014-02-08 21:56:14 +01:00
parent 52fdf426be
commit 1174eddcd3
3 changed files with 8 additions and 9 deletions

View File

@ -1,5 +1,3 @@
choice choice
prompt "board type" prompt "board type"
default BOARD_ML505 default BOARD_ML505

View File

@ -13,6 +13,7 @@ DEVICE_NR=$(subst ", , $(CONFIG_IMPACT_TARGET))
endif endif
TOP=top TOP=top
BIT=soc.bit
ifndef UCF ifndef UCF
UCF=$(subst ", , $(CONFIG_UCF_NAME)) UCF=$(subst ", , $(CONFIG_UCF_NAME))
@ -84,7 +85,7 @@ endif
.PHONY: clean all real_clean .PHONY: clean all real_clean
all: all: soc.bit
real_clean: real_clean:
git clean -x -f git clean -x -f
@ -93,7 +94,7 @@ clean: kconfig_clean
-@rm -rf Make.sources ${CLEAN_FILES} $(OBJ) -@rm -rf Make.sources ${CLEAN_FILES} $(OBJ)
Make.sources: Makefile.files Makefile.modules Make.sources: .config Makefile.files Makefile.modules
@clear @clear
@echo "****************************************************************************************" @echo "****************************************************************************************"
@echo "**** XILINX Synthesis, Map, Place, Route and Modelsim Makefile Version " $(VERSION) @echo "**** XILINX Synthesis, Map, Place, Route and Modelsim Makefile Version " $(VERSION)
@ -115,11 +116,11 @@ impact.script:
@echo "quit" >> $@ @echo "quit" >> $@
program: impact.script program: impact.script
echo "**** Programming FPGA ****" @echo "**** Programming FPGA ****"
[ -n "$(BIT)" ] || ( echo "**** Please give Bitfile on commandline with BIT=<FILE>" && exit 1) @[ -n "$(BIT)" ] || ( echo "**** Please give Bitfile on commandline with BIT=<FILE>" && exit 1)
cp $(BIT) flash.bit @cp $(BIT) flash.bit
$(XILINX_PATH)/impact -batch impact.script 1>/dev/null @$(XILINX_PATH)/impact -batch impact.script 1>/dev/null
rm impact.script @rm impact.script
include $(MAKEFILES_PATH)/Makefile.configure include $(MAKEFILES_PATH)/Makefile.configure