[PATCH 1/6] common: pe: fix use of undefined macro for ARMv7
Ahmad Fatoum
a.fatoum at pengutronix.de
Wed Aug 14 02:24:19 PDT 2024
IMAGE_FILE_MACHINE_ARMNT is not defined in barebox, unlike U-Boot.
The macro we have is IMAGE_FILE_MACHINE_ARMV7, which has the same value
of 0x01c4, so use that instead.
Signed-off-by: Ahmad Fatoum <a.fatoum at pengutronix.de>
---
common/pe.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/common/pe.c b/common/pe.c
index 5c33665dfa74..6164dd68b7ab 100644
--- a/common/pe.c
+++ b/common/pe.c
@@ -22,7 +22,7 @@ static int machines[] = {
#elif defined(__arm__)
IMAGE_FILE_MACHINE_ARM,
IMAGE_FILE_MACHINE_THUMB,
- IMAGE_FILE_MACHINE_ARMNT,
+ IMAGE_FILE_MACHINE_ARMV7,
#endif
#if defined(__x86_64__)
--
2.39.2
More information about the barebox
mailing list