diff --git a/Makefile b/Makefile index 0a42915..011b7c7 100644 --- a/Makefile +++ b/Makefile @@ -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)) diff --git a/mk/board.mk b/mk/board.mk new file mode 100644 index 0000000..8c4e944 --- /dev/null +++ b/mk/board.mk @@ -0,0 +1,3 @@ +ifeq ($(BOARD),de10nano) + CFLAGS += -mcpu=cortex-a9 -mfloat-abi=softfp -mfpu=neon +endif