[Skiboot] [PATCH] Use file operation used on x86 for ARCH_UNKNOWN

Frédéric Bonnard frederic at fr.ibm.com
Thu Aug 22 22:32:38 AEST 2019


On arches where only file operation make sense such as x86 and others, use the same
code.
---
 .../common/{arch_flash_x86.c => arch_flash_unknown.c}     | 0
 .../{arch_flash_x86_io.h => arch_flash_unknown_io.h}      | 0
 external/common/get_arch.sh                               | 2 --
 external/common/rules.mk                                  | 8 ++------
 4 files changed, 2 insertions(+), 8 deletions(-)
 rename external/common/{arch_flash_x86.c => arch_flash_unknown.c} (100%)
 rename external/common/{arch_flash_x86_io.h => arch_flash_unknown_io.h} (100%)

diff --git a/external/common/arch_flash_x86.c b/external/common/arch_flash_unknown.c
similarity index 100%
rename from external/common/arch_flash_x86.c
rename to external/common/arch_flash_unknown.c
diff --git a/external/common/arch_flash_x86_io.h b/external/common/arch_flash_unknown_io.h
similarity index 100%
rename from external/common/arch_flash_x86_io.h
rename to external/common/arch_flash_unknown_io.h
diff --git a/external/common/get_arch.sh b/external/common/get_arch.sh
index b5e0867e..1e2d375e 100755
--- a/external/common/get_arch.sh
+++ b/external/common/get_arch.sh
@@ -3,8 +3,6 @@
 
 echo "#if defined(__powerpc__)
 echo -n ARCH_POWERPC
-#elif defined(__x86_64__) || defined(__i386__)
-echo -n ARCH_X86
 #elif defined(__arm__)
 echo -n ARCH_ARM
 #else
diff --git a/external/common/rules.mk b/external/common/rules.mk
index 05eb755f..7190813b 100644
--- a/external/common/rules.mk
+++ b/external/common/rules.mk
@@ -12,12 +12,8 @@ ifeq ($(ARCH),ARCH_POWERPC)
 arch := powerpc
 ARCH_FILES := arch_flash_common.c arch_flash_powerpc.c
 else
-ifeq ($(ARCH),ARCH_X86)
-arch := x86
-ARCH_FILES := arch_flash_common.c arch_flash_x86.c
-else
-$(error Unsupported architecture $(ARCH))
-endif
+arch := unknown
+ARCH_FILES := arch_flash_common.c arch_flash_unknown.c
 endif
 endif
 
-- 
2.20.1

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://lists.ozlabs.org/pipermail/skiboot/attachments/20190822/c801af8d/attachment-0001.sig>


More information about the Skiboot mailing list