diff options
author | Vicente Bergas <vicencb@gmail.com> | 2016-08-08 13:31:43 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2016-08-15 11:16:23 +0200 |
commit | 2fb0ef2053e26e6bc42466bbe2d91069da079b45 (patch) | |
tree | a28eb55d241588dc66f788d4ac111edc20b030cc | |
parent | 20eabbf251a207845955abf43c02bf612a9255fd (diff) | |
download | barebox-2fb0ef2053e26e6bc42466bbe2d91069da079b45.tar.gz barebox-2fb0ef2053e26e6bc42466bbe2d91069da079b45.tar.xz |
fix ARMv8 interference with ARMv7
CONFIG_CPU_V8 is checked against 'y' and 'n', but the case when the
variable is unset is not considered.
This patch only checks the variable against a single value 'y' so the
logic is always coherent even when the variable is unset.
Signed-off-by: Vicente Bergas <vicencb@gmail.com>
Tested-by: Vicente Bergas <vicencb@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
-rw-r--r-- | arch/arm/Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/Makefile b/arch/arm/Makefile index 768c50379f..55f72484c9 100644 --- a/arch/arm/Makefile +++ b/arch/arm/Makefile @@ -21,7 +21,7 @@ endif # at least some of the code would be executed with MMU off, lets be # conservative and instruct the compiler not to generate any unaligned # accesses -ifeq ($(CONFIG_CPU_V8),n) +ifneq ($(CONFIG_CPU_V8),y) CFLAGS += -mno-unaligned-access endif |