From: michael Date: Sun, 25 Feb 2007 11:25:33 +0000 (+0000) Subject: make load DRIVER=/home/michael/Raggedstone/usb-driver/libusb-driver.so X-Git-Url: http://cvs.zerfleddert.de/cgi-bin/gitweb.cgi/raggedstone/commitdiff_plain/bd0f9a9ab3480a1c19a41d02089d7a290cf5c8bf make load DRIVER=/home/michael/Raggedstone/usb-driver/libusb-driver.so works now --- diff --git a/common/Makefile.common b/common/Makefile.common index 52ea9db..e573c1e 100644 --- a/common/Makefile.common +++ b/common/Makefile.common @@ -3,10 +3,16 @@ PWD := $(shell pwd) #auto|lpt1|lpt2|lpt3|com1|com2|com3|com4|usb0|usb1|usb2|usb21|ttya|ttyb|tty00|tty01 CABLE ?= auto +#DRIVER = /home/michael/Raggedstone/usb-driver/libusb-driver.so + INTSTYLE := silent SOURCES = $(wildcard sources/*.v source/*.vhd) +ifdef DRIVER +PRELOAD = LD_PRELOAD=$(DRIVER) +endif + all: $(PROJECT).bit final log: @@ -55,12 +61,12 @@ burn: $(PROJECT).bit load: $(PROJECT).bit @sed -e "s|%CABLE%|$(CABLE)|g" -e "s|%PROJECT%|$(PROJECT)|g" ../common/xc3s1500.batch >xc3s1500.batch.tmp - impact -batch xc3s1500.batch.tmp + $(PRELOAD) impact -batch xc3s1500.batch.tmp @rm xc3s1500.batch.tmp flash: $(PROJECT)-xcf02s.mcs $(PROJECT)-xcf04s.mcs @sed -e "s|%CABLE%|$(CABLE)|g" -e "s|%PROJECT%|$(PROJECT)|g" ../common/xcf.batch >xcf.batch.tmp - impact -batch xcf.batch.tmp + $(PRELOAD) impact -batch xcf.batch.tmp @rm xcf.batch.tmp clean: