libgpg-error 1.17: simplify tupple handling and add armv8b support

Message ID 1421235149-13079-1-git-send-email-koen.kooi@linaro.org
State New
Headers show

Commit Message

Koen Kooi Jan. 14, 2015, 11:32 a.m.
Add a default option to the case statement and remove the duplicates. Also add support for armv8b architectures.

Signed-off-by: Koen Kooi <koen.kooi@linaro.org>
---
 meta/recipes-support/libgpg-error/libgpg-error_1.17.bb | 8 ++------
 1 file changed, 2 insertions(+), 6 deletions(-)

Patch

diff --git a/meta/recipes-support/libgpg-error/libgpg-error_1.17.bb b/meta/recipes-support/libgpg-error/libgpg-error_1.17.bb
index c905bd1..843b9ae 100644
--- a/meta/recipes-support/libgpg-error/libgpg-error_1.17.bb
+++ b/meta/recipes-support/libgpg-error/libgpg-error_1.17.bb
@@ -28,18 +28,14 @@  do_compile_prepend() {
 	fi
 
 	case ${TARGET_ARCH} in
-	  aarch64)    TUPLE=aarch64-unknown-linux-gnu ;;
+	  aarch64_be) TUPLE=aarch64-unknown-linux-gnu ;;
 	  arm)	      TUPLE=arm-unknown-linux-gnueabi ;;
 	  armeb)      TUPLE=arm-unknown-linux-gnueabi ;;
 	  i586)       TUPLE=i486-pc-linux-gnu ;;
-	  mipsel)     TUPLE=mipsel-unknown-linux-gnu ;;
 	  mips64el)   TUPLE=mipsel-unknown-linux-gnu ;;
 	  mips64)     TUPLE=mips-unknown-linux-gnu ;;
-	  mips)       TUPLE=mips-unknown-linux-gnu ;;
-	  powerpc64)  TUPLE=powerpc64-unknown-linux-gnu ;;
-	  powerpc)    TUPLE=powerpc-unknown-linux-gnu ;;
-	  sh4)	      TUPLE=sh4-unknown-linux-gnu ;;
 	  x86_64)     TUPLE=x86_64-pc-linux-gnu ;;
+	  *)          TUPLE=${TARGET_ARCH}-unknown-linux-gnu ;; 
 	esac
 
 	cp ${S}/src/syscfg/lock-obj-pub.$TUPLE.h \