From 744adf39eea4e4ba095468075b2c49f41059d3fc Mon Sep 17 00:00:00 2001 From: Alexey Marchuk Date: Wed, 8 May 2019 10:54:28 +0000 Subject: [PATCH] build: Fix ARM compilation ARM system doesn't provide definition of PAGE_SIZE. The patch adds the definition of that symbol to the compiler flags for ARM system Signed-off-by: Alexey Marchuk Signed-off-by: Sasha Kotchubievsky Change-Id: Iae0a528569aedaea7df95d9f0d9256cb23b9798b Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/453657 Reviewed-by: Ben Walker Reviewed-by: Jim Harris Tested-by: SPDK CI Jenkins --- mk/spdk.common.mk | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mk/spdk.common.mk b/mk/spdk.common.mk index efdcc0e93..78e6bf5a8 100644 --- a/mk/spdk.common.mk +++ b/mk/spdk.common.mk @@ -3,6 +3,7 @@ # # Copyright (c) Intel Corporation. # Copyright (c) 2017, IBM Corporation. +# Copyright (c) 2019, Mellanox Corporation. # All rights reserved. # # Redistribution and use in source and binary forms, with or without @@ -83,6 +84,7 @@ COMMON_CFLAGS += -march=native endif ifeq ($(TARGET_MACHINE),aarch64) COMMON_CFLAGS += -march=armv8-a+crc +COMMON_CFLAGS += -DPAGE_SIZE=4096 endif ifeq ($(CONFIG_WERROR), y)