Skip to content

Commit

Permalink
Merge pull request #55 from wimrijnders/fixes-dev-after-dma
Browse files Browse the repository at this point in the history
Priority: Fixes to  development after DMA addition
  • Loading branch information
mn416 authored Jul 15, 2018
2 parents 92218a9 + 1f06aad commit 26eefe6
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
11 changes: 11 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,16 @@ endif

# QPU or emulation mode
ifeq ($(QPU), 1)

# Check platform before building. Can't be indented, otherwise make complains.
RET := $(shell Tools/detectPlatform.sh 1>/dev/null && echo "yes" || echo "no")
#$(info info: '$(RET)')
ifneq ($(RET), yes)
$(error QPU-mode specified on a non-Pi platform; aborting)
else
$(info Building on a Pi platform)
endif

CXX_FLAGS += -DQPU_MODE -I /opt/vc/include
OBJ_DIR := $(OBJ_DIR)-qpu
LIBS := -L /opt/vc/lib -l bcm_host
Expand Down Expand Up @@ -63,6 +73,7 @@ OBJ = \
Target/Emulator.o \
Target/Encode.o \
VideoCore/Mailbox.o \
VideoCore/RegisterMap.o \
VideoCore/Invoke.o \
VideoCore/VideoCore.o

Expand Down
3 changes: 1 addition & 2 deletions Tests/testMain.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,11 @@ using RegMap = QPULib::RegisterMap;
#define POSTFIX_QPU ""
#endif

const char *AUTOTEST_PATH = "obj" POSTFIX_DEBUG POSTFIX_QPU "/bin/AutoTest";


//
// This is a good place to put simple, global tests
//
const char *AUTOTEST_PATH = "obj" POSTFIX_DEBUG POSTFIX_QPU "/bin/AutoTest";


TEST_CASE("Check random specifications for interpreter and emulator2", "[specs]") {
Expand Down

0 comments on commit 26eefe6

Please sign in to comment.