Make.default: use correct flags to disable unaligned access for 32 bit ARM

The GCC flag to disable unaligned access on 32bit ARM is
-mno-unaligned-access, not -mstrict-align (which is used on aarch64):

https://lkml.org/lkml/2018/8/3/294

Otherwise build dies with:
arm-linux-gnueabihf-gcc: error: unrecognized command line option
   ‘-mstrict-align’; did you mean ‘-Wstrict-aliasing’?

Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Upstream-commit-id: 41b93358e8c
This commit is contained in:
Peter Korsgaard 2019-01-10 23:34:11 +01:00 committed by Peter Jones
parent 8544018093
commit 7f080b30f3

View File

@ -72,7 +72,7 @@ ifeq ($(ARCH),aarch64)
ARCH_CFLAGS ?=
endif
ifeq ($(ARCH),arm)
ARCH_CFLAGS ?= -DMDE_CPU_ARM -DPAGE_SIZE=4096 -mstrict-align
ARCH_CFLAGS ?= -DMDE_CPU_ARM -DPAGE_SIZE=4096 -mno-unaligned-access
LIBDIR ?= $(prefix)/lib
ARCH_SUFFIX ?= arm
ARCH_SUFFIX_UPPER ?= ARM