[Skiboot] [PATCH] Add support for aarch64

Eddie James eajames at linux.ibm.com
Thu Dec 12 03:13:25 AEDT 2024


Update the external archictecture checker script and Makefile
for aarch64.

Signed-off-by: Eddie James <eajames at linux.ibm.com>
---
 external/common/get_arch.sh | 2 ++
 external/shared/Makefile    | 2 ++
 2 files changed, 4 insertions(+)

diff --git a/external/common/get_arch.sh b/external/common/get_arch.sh
index 682710fcb..3f3f8e863 100755
--- a/external/common/get_arch.sh
+++ b/external/common/get_arch.sh
@@ -5,6 +5,8 @@ echo "#if defined(__powerpc__)
 echo -n ARCH_POWERPC
 #elif defined(__arm__)
 echo -n ARCH_ARM
+#elif defined(__aarch64__)
+echo -n ARCH_AARCH64
 #else
 echo -n ARCH_UNKNOWN
 #endif" | $1cpp | /bin/sh
diff --git a/external/shared/Makefile b/external/shared/Makefile
index 9ea4adc51..cc993b5c7 100644
--- a/external/shared/Makefile
+++ b/external/shared/Makefile
@@ -9,8 +9,10 @@ LIBDIR := $(PREFIX)/lib
 INCDIR := $(PREFIX)/include/libflash
 
 ifneq ($(ARCH), ARCH_ARM)
+ifneq ($(ARCH), ARCH_AARCH64)
 CFLAGS += -m64
 endif
+endif
 CFLAGS += -Werror -Wall -g2 -ggdb -I. -fPIC
 
 LIBFLASH_OBJS := libflash-file.o libflash-libflash.o libflash-libffs.o \
-- 
2.43.5



More information about the Skiboot mailing list