SHA256
1
0
forked from pool/kbuild

Accepting request 440027 from home:oertel:branches:devel:tools:building

- add aarch64.patch

OBS-URL: https://build.opensuse.org/request/show/440027
OBS-URL: https://build.opensuse.org/package/show/devel:tools:building/kbuild?expand=0&rev=30
This commit is contained in:
Martin Pluskal 2016-11-12 14:46:15 +00:00 committed by Git OBS Bridge
parent b2befc8186
commit afd905f84e
3 changed files with 52 additions and 0 deletions

45
aarch64.patch Normal file
View File

@ -0,0 +1,45 @@
--- 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__)

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Sat Nov 12 13:58:15 CET 2016 - ro@suse.de
- add aarch64.patch
-------------------------------------------------------------------
Thu Jul 21 23:23:07 UTC 2016 - luizluca@tre-sc.jus.br

View File

@ -42,6 +42,7 @@ Patch6: kbuild-timestamps.diff
Patch7: kbuild-armv7l.diff
Patch8: kbuild-wrong-memset.patch
Patch9: ppc64le.patch
Patch10: aarch64.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
@ -67,6 +68,7 @@ The goals of the kBuild framework:
%patch7 -p1
%patch8 -p1
%patch9 -p1
%patch10 -p1
%build
export CFLAGS="$RPM_OPT_FLAGS"