Skip to content

Commit

Permalink
external/common: Use file operation used on x86 for ARCH_UNKNOWN
Browse files Browse the repository at this point in the history
On arches where only file operation make sense such as x86 and others, use the same
code.

Signed-off-by: Frédéric Bonnard <frediz@debian.org>
Signed-off-by: Oliver O'Halloran <oohall@gmail.com>
  • Loading branch information
Frédéric Bonnard authored and oohal committed Sep 6, 2019
1 parent 9c9375f commit 470ffb5
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 8 deletions.
File renamed without changes.
File renamed without changes.
2 changes: 0 additions & 2 deletions external/common/get_arch.sh
Expand Up @@ -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
Expand Down
8 changes: 2 additions & 6 deletions external/common/rules.mk
Expand Up @@ -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

Expand Down

0 comments on commit 470ffb5

Please sign in to comment.