Skip to content

Commit

Permalink
build: Add de10-nano board specific compiler flags
Browse files Browse the repository at this point in the history
-mcpu=cortex-a9:
The CPU of de10-nano board is Cortex-A9.
-mfloat-abi=softfp:
The NEON intrinsics are not available with the soft option.
Use softfp instead of soft.
-mfpu=neon:
neon equals to neon-vfpv3.
  • Loading branch information
marktwtn committed Jul 23, 2019
1 parent 13b9624 commit 2ec9079
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 -mfloat-abi=softfp -mfpu=neon
endif

0 comments on commit 2ec9079

Please sign in to comment.