Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: timvideos/HDMI2USB-litex-firmware
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 9e9da3b7b71a
Choose a base ref
...
head repository: timvideos/HDMI2USB-litex-firmware
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: bac3cf5a3e23
Choose a head ref
  • 2 commits
  • 2 files changed
  • 1 contributor

Commits on Sep 27, 2015

  1. Makefile: fix build on Windows

    We should keep the possibility to at build the gateware on a Windows machine, this is sometime useful.
    enjoy-digital committed Sep 27, 2015
    Copy the full SHA
    dcfeb7d View commit details
  2. add Makefile.edid_debug to be able to build atlys_edid_debug target (…

    …we should maybe replace Makefiles by a python script?)
    enjoy-digital committed Sep 27, 2015
    Copy the full SHA
    bac3cf5 View commit details
Showing with 54 additions and 1 deletion.
  1. +7 −1 Makefile
  2. +47 −0 Makefile.edid_debug
8 changes: 7 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@

ifneq ($(OS),Windows_NT)
ifneq "$(HDMI2USB_ENV)" "1"
$(error "Please 'source scripts/setup-env.sh'")
endif
endif

BOARD ?= atlys
MSCDIR ?= build/misoc
@@ -56,11 +58,15 @@ clean: clean-$(TARGET)
load: load-gateware load-$(TARGET)

# Gateware targets
gateware: gateware-$(TARGET)
gateware:
cd $(MSCDIR) && $(CMD) --csr_csv $(HDMI2USBDIR)/test/csr.csv clean
cp hdl/encoder/vhdl/header.hex $(MSCDIR)/build/header.hex
ifneq ($(OS),Windows_NT)
cd $(MSCDIR) && $(CMD) --csr_csv $(HDMI2USBDIR)/test/csr.csv build-csr-csv build-bitstream \
| $(FILTER) $(PWD)/build/output.$(DATE).log; (exit $${PIPESTATUS[0]})
else
cd $(MSCDIR) && $(CMD) --csr_csv $(HDMI2USBDIR)/test/csr.csv build-csr-csv build-bitstream
endif

load-gateware:
cd $(MSCDIR) && $(CMD) load-bitstream
47 changes: 47 additions & 0 deletions Makefile.edid_debug
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
help-edid_debug:
@echo " make lm32-firmware"
@echo " make load-lm32-firmware"
@echo " make fx2-firmware"
@echo " make load-fx2-firmware"
@echo " make view"

gateware-edid_debug: lm32-firmware
@true

firmware-edid_debug: lm32-firmware fx2-firmware
@true

load-edid_debug: load-lm32-firmware
@true

clean-edid_debug: 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-edid_debug gateware-edid_debug firmware-edid_debug load-edid_debug clean-hdmi2usb
.PHONY: lm32-firmware load-lm32-firmware clean-lm32-firmware
.PHONY: fx2-firmware load-fx2-firmware clean-fx2-firmware