]> git.baikalelectronics.ru Git - arm-tf.git/commitdiff
build(bl2): only set BL2_CPPFLAGS for armv8
authorDiego Sueiro <diego.sueiro@arm.com>
Thu, 3 Nov 2022 17:01:39 +0000 (17:01 +0000)
committerDiego Sueiro <diego.sueiro@arm.com>
Mon, 7 Nov 2022 11:32:24 +0000 (11:32 +0000)
If ARM_ARCH_MAJOR is 9 and ARM_ARCH_MINOR is 0 we don't want need to
have "-march=armv8-a+crc" in BL2_CPPFLAGS.

Change-Id: I9ac11522fde00953da40b95eebf82ff8ab2559ba
Signed-off-by: Diego Sueiro <diego.sueiro@arm.com>
plat/arm/common/arm_common.mk

index 682a278bbdf6b43436159ac76879c092b24ad91d..7162ce984f4d911ebd5b39f53b05e54aac60df05 100644 (file)
@@ -195,8 +195,10 @@ endif
 # Enable CRC instructions via extension for ARMv8-A CPUs.
 # For ARMv8.1-A, and onwards CRC instructions are default enabled.
 # Enable HW computed CRC support unconditionally in BL2 component.
-ifeq (${ARM_ARCH_MINOR},0)
-  BL2_CPPFLAGS += -march=armv8-a+crc
+ifeq (${ARM_ARCH_MAJOR},8)
+    ifeq (${ARM_ARCH_MINOR},0)
+        BL2_CPPFLAGS += -march=armv8-a+crc
+    endif
 endif
 
 ifeq ($(PSA_FWU_SUPPORT),1)