LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File aarch64.patch of Package kbuild (Project home:bmwiedemann:reproducible:test)

--- a/kBuild/env.sh
+++ b/kBuild/env.sh
@@ -371,6 +371,9 @@
         alpha)
             KBUILD_HOST_ARCH='alpha'
             ;;
+        aarch64)
+            KBUILD_HOST_ARCH='aarch64'
+            ;;
 
         *)  echo "$0: unknown cpu/arch - $KBUILD_HOST_ARCH" 1>&${ERR_REDIR}
             sleep 1
--- a/kBuild/header.kmk
+++ b/kBuild/header.kmk
@@ -189,8 +189,8 @@
 # build types. (PORTME)
 #
 KBUILD_OSES      := darwin dos dragonfly freebsd haiku l4 linux netbsd nt openbsd os2 solaris win os-agnostic
-KBUILD_ARCHES    := x86 amd64 sparc32 sparc64 s390 s390x ppc32 ppc64 ppc64le mips32 mips64 ia64 hppa32 hppa64 arm alpha noarch
-KBUILD_ARCHES_64 := amd64 sparc64 s390x ppc64 ppc64le mips64 ia64 hppa64 alpha
+KBUILD_ARCHES    := x86 amd64 sparc32 sparc64 s390 s390x ppc32 ppc64 ppc64le mips32 mips64 ia64 hppa32 hppa64 arm aarch64 alpha noarch
+KBUILD_ARCHES_64 := amd64 sparc64 s390x ppc64 ppc64le mips64 ia64 hppa64 aarch64 alpha
 KBUILD_ARCHES_32 := x86 sparc32 s390 ppc32 mips32 hppa32 arm
 
 
--- a/src/lib/k/kDefs.h
+++ b/src/lib/k/kDefs.h
@@ -146,6 +146,8 @@
 #define K_ARCH_ARM_32           ( 7 | K_ARCH_BIT_32 | K_ARCH_END_BI)
 /** 64-bit ARM. */
 #define K_ARCH_ARM_64           ( 8 | K_ARCH_BIT_64 | K_ARCH_END_BI)
+/** 64-bit AARCH. */
+#define K_ARCH_AARCH_64           ( 8 | K_ARCH_BIT_64 | K_ARCH_END_LITTLE)
 /** 32-bit MIPS. */
 #define K_ARCH_MIPS_32          ( 9 | K_ARCH_BIT_32 | K_ARCH_END_BI)
 /** 64-bit MIPS. */
@@ -188,6 +190,8 @@
 #  define K_ARCH    K_ARCH_ALPHA
 # elif defined(__arm__) || defined(__arm32__)
 #  define K_ARCH    K_ARCH_ARM_32
+# elif defined(__aarch64__)
+#  define K_ARCH    K_ARCH_AARCH_64
 # elif defined(__hppa__) && defined(__LP64__)
 #  define K_ARCH    K_ARCH_PARISC_64
 # elif defined(__hppa__)