-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.hdmi2usb
47 lines (35 loc) · 1.1 KB
/
Makefile.hdmi2usb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
help-hdmi2usb:
@echo " make lm32-firmware"
@echo " make load-lm32-firmware"
@echo " make fx2-firmware"
@echo " make load-fx2-firmware"
@echo " make view"
gateware-hdmi2usb: lm32-firmware
@true
firmware-hdmi2usb: lm32-firmware fx2-firmware
@true
load-hdmi2usb: load-lm32-firmware
@true
clean-hdmi2usb: clean-lm32-firmware clean-fx2-firmware
@true
# Firmware for the lm32 softcore
lm32-firmware:
cd $(MSCDIR) && $(CMD) build-headers
$(MAKE) -C firmware/lm32 all
load-lm32-firmware: lm32-firmware
$(FLTERM) --port $(SERIAL) --kernel=firmware/lm32/firmware.bin --kernel-adr=0x20000000 --speed 115200
clean-lm32-firmware:
$(MAKE) -C firmware/lm32 clean
# Firmware for the Cypress FX2
fx2-firmware:
$(MAKE) -C firmware/fx2
load-fx2-firmware: fx2-firmware
firmware/fx2/download.sh firmware/fx2/hdmi2usb.hex
clean-fx2-firmware:
$(MAKE) -C firmware/fx2 clean
# Utility functions
view:
./scripts/view.sh
.PHONY: help-hdmi2usb gateware-hdmi2usb firmware-hdmi2usb load-hdmi2usb clean-hdmi2usb
.PHONY: lm32-firmware load-lm32-firmware clean-lm32-firmware
.PHONY: fx2-firmware load-fx2-firmware clean-fx2-firmware