forked from pool/kbuild
Accepting request 440038 from devel:tools:building
1 OBS-URL: https://build.opensuse.org/request/show/440038 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/kbuild?expand=0&rev=33
This commit is contained in:
45
aarch64.patch
Normal file
45
aarch64.patch
Normal 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__)
|
@@ -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
|
Thu Jul 21 23:23:07 UTC 2016 - luizluca@tre-sc.jus.br
|
||||||
|
|
||||||
|
@@ -42,6 +42,7 @@ Patch6: kbuild-timestamps.diff
|
|||||||
Patch7: kbuild-armv7l.diff
|
Patch7: kbuild-armv7l.diff
|
||||||
Patch8: kbuild-wrong-memset.patch
|
Patch8: kbuild-wrong-memset.patch
|
||||||
Patch9: ppc64le.patch
|
Patch9: ppc64le.patch
|
||||||
|
Patch10: aarch64.patch
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@@ -67,6 +68,7 @@ The goals of the kBuild framework:
|
|||||||
%patch7 -p1
|
%patch7 -p1
|
||||||
%patch8 -p1
|
%patch8 -p1
|
||||||
%patch9 -p1
|
%patch9 -p1
|
||||||
|
%patch10 -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
export CFLAGS="$RPM_OPT_FLAGS"
|
export CFLAGS="$RPM_OPT_FLAGS"
|
||||||
|
Reference in New Issue
Block a user