Commit dd60225f authored by Tomasz Wlostowski's avatar Tomasz Wlostowski

makefiles: install targets for gateware and tools

parent 7a8168fb
......@@ -7,3 +7,5 @@ DIRS = $(FMC_DRV) kernel tools
all clean modules install modules_install:
for d in $(DIRS); do $(MAKE) -C $$d $@ || exit 1; done
include scripts/gateware.mk
\ No newline at end of file
GW_GOLDEN = svec-golden-v2.0-20140306.bin
GW_URL = http://www.ohwr.org/attachments/download/2785/$(GW_GOLDEN)
FIRMWARE_PATH ?= /lib/firmware/fmc
gateware_install: bin/$(GW_GOLDEN)
install -D bin/$(GW_GOLDEN) $(FIRMWARE_PATH)/$(GW_GOLDEN)
ln -sf $(GW_GOLDEN) $(FIRMWARE_PATH)/svec-golden.bin
bin/$(GW_GOLDEN):
wget $(GW_URL) -P bin
all:
@echo "tools: nothing to build here, only python scripts..."
install:
install -d $(DESTDIR)/bin
install -D svec-config svec-wrc-loader $(DESTDIR)/bin
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment