Skip to content

Commit 41e7cd5

Browse files
committedSep 27, 2015
Merge pull request #76 from timvideos/minor-fixes
Small fixes to the Makefile
2 parents 03275a5 + b3f0b8f commit 41e7cd5

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed
 

Diff for: ‎Makefile

+7-2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
2+
ifneq "$(HDMI2USB_ENV)" "1"
3+
$(error "Please 'source scripts/setup-env.sh'")
4+
endif
5+
16
BOARD ?= atlys
27
MSCDIR ?= build/misoc
38
PROG ?= impact
@@ -26,8 +31,6 @@ else
2631
FLTERM = $(MSCDIR)/tools/flterm
2732
endif
2833

29-
include Makefile.$(TARGET)
30-
3134
help:
3235
@echo "Environment:"
3336
@echo " BOARD=atlys OR opsis (current: $(BOARD))"
@@ -45,6 +48,8 @@ help:
4548
@echo " make clean"
4649
@echo " make all"
4750

51+
include Makefile.$(TARGET)
52+
4853
clean: clean-$(TARGET)
4954
cd $(MSCDIR) && $(CMD) clean
5055

Diff for: ‎scripts/setup-env.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -75,4 +75,4 @@ python3 -c "import fl" || (echo "libfpgalink broken"; return)
7575

7676
alias python=python3
7777

78-
HDMI2USB_ENV=1
78+
export HDMI2USB_ENV=1

0 commit comments

Comments
 (0)
Please sign in to comment.