Accepting request 209446 from devel:tools:building
fix ppc64le build, please forward to factory (forwarded request 209421 from adrianSuSE) OBS-URL: https://build.opensuse.org/request/show/209446 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/kbuild?expand=0&rev=27
This commit is contained in:
commit
b7841919b5
@ -1,3 +1,10 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Dec 2 19:44:57 UTC 2013 - dvaleev@suse.com
|
||||||
|
|
||||||
|
- added patches:
|
||||||
|
* ppc64le.patch
|
||||||
|
- Make ppc64le architecture known
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Fri Apr 26 08:17:17 UTC 2013 - mmeister@suse.com
|
Fri Apr 26 08:17:17 UTC 2013 - mmeister@suse.com
|
||||||
|
|
||||||
|
@ -42,6 +42,7 @@ Patch5: kbuild-pthread.diff
|
|||||||
Patch6: kbuild-timestamps.diff
|
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
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@ -71,6 +72,7 @@ Authors:
|
|||||||
%patch6 -p1
|
%patch6 -p1
|
||||||
%patch7 -p1
|
%patch7 -p1
|
||||||
%patch8 -p1
|
%patch8 -p1
|
||||||
|
%patch9 -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
export CFLAGS="$RPM_OPT_FLAGS"
|
export CFLAGS="$RPM_OPT_FLAGS"
|
||||||
|
51
ppc64le.patch
Normal file
51
ppc64le.patch
Normal file
@ -0,0 +1,51 @@
|
|||||||
|
Index: kbuild-0.1.9998svn2577/kBuild/env.sh
|
||||||
|
===================================================================
|
||||||
|
--- kbuild-0.1.9998svn2577.orig/kBuild/env.sh
|
||||||
|
+++ kbuild-0.1.9998svn2577/kBuild/env.sh
|
||||||
|
@@ -347,6 +347,9 @@ if test -z "$KBUILD_HOST_ARCH"; then
|
||||||
|
ppc64|powerpc64)
|
||||||
|
KBUILD_HOST_ARCH='ppc64'
|
||||||
|
;;
|
||||||
|
+ ppc64le|powerpc64le)
|
||||||
|
+ KBUILD_HOST_ARCH='ppc64le'
|
||||||
|
+ ;;
|
||||||
|
mips32|mips)
|
||||||
|
KBUILD_HOST_ARCH='mips32'
|
||||||
|
;;
|
||||||
|
Index: kbuild-0.1.9998svn2577/kBuild/header.kmk
|
||||||
|
===================================================================
|
||||||
|
--- kbuild-0.1.9998svn2577.orig/kBuild/header.kmk
|
||||||
|
+++ kbuild-0.1.9998svn2577/kBuild/header.kmk
|
||||||
|
@@ -189,8 +189,8 @@ KBUILD_BLD_TYPES := release profile debu
|
||||||
|
# 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 mips32 mips64 ia64 hppa32 hppa64 arm alpha
|
||||||
|
-KBUILD_ARCHES_64 := amd64 sparc64 s390x ppc64 mips64 ia64 hppa64 alpha
|
||||||
|
+KBUILD_ARCHES := x86 amd64 sparc32 sparc64 s390 s390x ppc32 ppc64 ppc64le mips32 mips64 ia64 hppa32 hppa64 arm alpha
|
||||||
|
+KBUILD_ARCHES_64 := amd64 sparc64 s390x ppc64 ppc64le mips64 ia64 hppa64 alpha
|
||||||
|
KBUILD_ARCHES_32 := x86 sparc32 s390 ppc32 mips32 hppa32 arm
|
||||||
|
|
||||||
|
|
||||||
|
@@ -475,7 +475,7 @@ KBUILD_DEVTOOLS = $(if $(PATH_DEVTO
|
||||||
|
KBUILD_DEVTOOLS_TRG = $(KBUILD_DEVTOOLS)/$(KBUILD_TARGET).$(KBUILD_TARGET_ARCH)
|
||||||
|
KBUILD_DEVTOOLS_HST = $(KBUILD_DEVTOOLS)/$(KBUILD_HOST).$(KBUILD_HOST_ARCH)
|
||||||
|
|
||||||
|
-if1of ($(KBUILD_TARGET_ARCH), amd64 hppa64 mips64 ppc64 s390x sparc64)
|
||||||
|
+if1of ($(KBUILD_TARGET_ARCH), amd64 hppa64 mips64 ppc64 ppc64le s390x sparc64)
|
||||||
|
ifeq ($(KBUILD_TARGET_ARCH),amd64)
|
||||||
|
KBUILD_DEVTOOLS_TRG_ALT = $(PATH_DEVTOOLS)/$(KBUILD_TARGET).x86
|
||||||
|
else ifeq ($(KBUILD_TARGET_ARCH),hppa64)
|
||||||
|
Index: kbuild-0.1.9998svn2577/src/lib/k/kDefs.h
|
||||||
|
===================================================================
|
||||||
|
--- kbuild-0.1.9998svn2577.orig/src/lib/k/kDefs.h
|
||||||
|
+++ kbuild-0.1.9998svn2577/src/lib/k/kDefs.h
|
||||||
|
@@ -196,6 +196,8 @@
|
||||||
|
# define K_ARCH K_ARCH_MIPS_32
|
||||||
|
# elif defined(__powerpc64__) || defined(__ppc64__) || defined(__PPC64__)
|
||||||
|
# define K_ARCH K_ARCH_POWERPC_64
|
||||||
|
+# elif defined(__powerpc64le__) || defined(__ppc64le__) || defined(__PPC64LE__)
|
||||||
|
+# define K_ARCH K_ARCH_POWERPC_64LE
|
||||||
|
# elif defined(__powerpc__) || defined(__ppc__) || defined(__PPC__)
|
||||||
|
# define K_ARCH K_ARCH_POWERPC_32
|
||||||
|
# elif defined(__sparcv9__) || defined(__sparcv9)
|
Loading…
x
Reference in New Issue
Block a user