Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Merge pull request #48 from timvideos/makefile-fixes
Makefile refactoring
- Loading branch information
Showing
5 changed files
with
135 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
help-base: | ||
@true | ||
|
||
gateware-base: | ||
@true | ||
|
||
firmware-base: | ||
cd $(MSCDIR) && $(CMD) build-headers | ||
|
||
load-base: | ||
@true | ||
|
||
clean-base: | ||
@true | ||
|
||
.PHONY: help-base gateware-base firmware-base load-base clean-base |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
help-hdmi2ethernet: | ||
@echo " make lm32-firmware" | ||
@echo " make load-lm32-firmware" | ||
|
||
gateware-hdmi2ethernet: lm32-firmware | ||
@true | ||
|
||
firmware-hdmi2ethernet: lm32-firmware | ||
@true | ||
|
||
load-hdmi2ethernet: load-lm32-firmware | ||
@true | ||
|
||
clean-hdmi2ethernet: clean-lm32-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 | ||
|
||
# Utility functions | ||
|
||
.PHONY: help-hdmi2ethernet gateware-hdmi2ethernet firmware-hdmi2ethernet load-hdmi2ethernet clean-hdmi2ethernet | ||
.PHONY: lm32-firmware load-lm32-firmware clean-lm32-firmware |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,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 |