Skip to content

Commit

Permalink
Merge pull request #174 from marktwtn/de10-nano-compile-flags
Browse files Browse the repository at this point in the history
build: Add de10-nano board specific compiler flags
  • Loading branch information
jserv authored Aug 4, 2019
2 parents 9aca981 + 453b11a commit 46d6b4a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ include mk/cpu-features.mk
# Handle git submodule
include mk/submodule.mk

# Board specific compiler flags
include mk/board.mk

# Assign the hardware to CPU if no hardware is specified
PLATFORMS := $(BUILD_AVX) $(BUILD_SSE) $(BUILD_GENERIC) $(BUILD_GPU) $(BUILD_FPGA_ACCEL)
ENABLE_PLATFORMS := $(findstring 1,$(PLATFORMS))
Expand Down
3 changes: 3 additions & 0 deletions mk/board.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
ifeq ($(BOARD),de10nano)
CFLAGS += -mcpu=cortex-a9 -mtune=cortex-a9 -mfloat-abi=hard -mfpu=neon
endif

0 comments on commit 46d6b4a

Please sign in to comment.