buildroot/boot/shim
Fabrice Fontaine 315a591532 boot/shim: force arm mode instead of Thumb mode
Use OPTIMIZATIONS parameter to pass -marm to fix the following build
failure in Thumb mode:

/tmp/ccEjPM4h.s:941: Error: selected processor does not support `mrc p15,0,r2,c9,c13,0' in Thumb mode

CFLAGS can't be overridden as it is defined as:
CFLAGS		= $(FEATUREFLAGS) \
		  $(OPTIMIZATIONS) \
		  $(WARNFLAGS) \
		  $(if $(findstring clang,$(CC)),$(CLANG_WARNINGS)) \
		  $(ARCH_CFLAGS) \
		  $(WERRFLAGS) \
		  $(INCLUDES) \
		  $(DEFINES)

Fixes:
 - http://autobuild.buildroot.org/results/580156f89cfd72122fef07aa2fe37b4fdd4c316b
 - http://autobuild.buildroot.org/results/8980c0f422516c7263d8d0c9cc6123f30c4b7ee4

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
(cherry picked from commit 66a202325a)
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
2024-03-18 14:26:23 +01:00
..
Config.in boot/shim: big endian arm/aarch64 variants are not supported 2022-05-12 10:40:16 +02:00
shim.hash boot/shim: security bump to version 15.8 2024-03-16 23:31:03 +01:00
shim.mk boot/shim: force arm mode instead of Thumb mode 2024-03-18 14:26:23 +01:00