Michael Schröder
751b391772
- Add support for ppc64le (ppc64le.diff) those are upstream commits: ef1497b1f81966fed56f008bc8ee8ba42102efd6 cf07feda05822377d62b973adc4010c0d7f9eaa0 OBS-URL: https://build.opensuse.org/request/show/206011 OBS-URL: https://build.opensuse.org/package/show/Base:System/rpm?expand=0&rev=303
94 lines
2.6 KiB
Diff
94 lines
2.6 KiB
Diff
diff -Nur installplatform.old installplatform
|
|
--- installplatform.old 2013-11-06 19:34:36.446381950 +0100
|
|
+++ installplatform 2013-11-06 19:38:24.617417000 +0100
|
|
@@ -54,12 +54,18 @@
|
|
CANONARCH=s390x
|
|
CANONCOLOR=3
|
|
;;
|
|
- ppc64*)
|
|
+ ppc64|ppc64p7)
|
|
ISANAME=ppc
|
|
ISABITS=64
|
|
CANONARCH=ppc64
|
|
CANONCOLOR=3
|
|
;;
|
|
+ ppc64le)
|
|
+ ISANAME=ppc
|
|
+ ISABITS=64
|
|
+ CANONARCH=ppc64le
|
|
+ CANONCOLOR=3
|
|
+ ;;
|
|
ppc*)
|
|
ISANAME=ppc
|
|
ISABITS=32
|
|
diff -Nur lib/rpmrc.c.orig lib/rpmrc.c
|
|
--- lib/rpmrc.c.orig 2013-11-06 19:34:36.426381894 +0100
|
|
+++ lib/rpmrc.c 2013-11-06 19:38:32.713558000 +0100
|
|
@@ -1119,6 +1119,7 @@
|
|
# endif /* sparc*-linux */
|
|
|
|
# if defined(__linux__) && defined(__powerpc__)
|
|
+# if __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__
|
|
{
|
|
int powerlvl;
|
|
if (!rstreq(un.machine, "ppc") &&
|
|
@@ -1127,6 +1128,7 @@
|
|
strcpy(un.machine, "ppc64p7");
|
|
}
|
|
}
|
|
+# endif /* __ORDER_BIG_ENDIAN__ */
|
|
# endif /* ppc64*-linux */
|
|
|
|
# if defined(__GNUC__) && defined(__alpha__)
|
|
diff -Nurrpmrc.in.orig rpmrc.in
|
|
--- rpmrc.in 2013-11-06 19:34:36.446381950 +0100
|
|
+++ rpmrc.in 2013-11-06 19:41:21.698505000 +0100
|
|
@@ -48,6 +48,7 @@
|
|
optflags: ppciseries -O2 -g -m32
|
|
optflags: ppcpseries -O2 -g -m32
|
|
optflags: ppc64 -O2 -g -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables
|
|
+optflags: ppc64le -O2 -g -fsigned-char
|
|
optflags: ppc64p7 -O3 -mtune=power7 -mcpu=power7 -g -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables
|
|
|
|
optflags: parisc -O2 -g -mpa-risc-1-0
|
|
@@ -99,6 +100,7 @@
|
|
archcolor: sparcv9 2
|
|
archcolor: ppc 1
|
|
archcolor: ppc64 2
|
|
+archcolor: ppc64le 2
|
|
|
|
archcolor: armv3l 1
|
|
archcolor: armv4b 1
|
|
@@ -201,6 +203,7 @@
|
|
arch_canon: s390x: s390x 15
|
|
|
|
arch_canon: ppc64: ppc64 16
|
|
+arch_canon: ppc64le: ppc64le 16
|
|
arch_canon: ppc64pseries: ppc64pseries 16
|
|
arch_canon: ppc64iseries: ppc64iseries 16
|
|
arch_canon: ppc64p7: ppc64p7 16
|
|
@@ -288,6 +291,7 @@
|
|
buildarchtranslate: ppc64iseries: ppc64
|
|
buildarchtranslate: ppc64pseries: ppc64
|
|
buildarchtranslate: ppc64p7: ppc64
|
|
+buildarchtranslate: ppc64le: ppc64le
|
|
buildarchtranslate: powerpc64: ppc64
|
|
|
|
buildarchtranslate: armv3l: armv3l
|
|
@@ -373,6 +377,7 @@
|
|
arch_compat: ppc64pseries: ppc64
|
|
arch_compat: ppc64iseries: ppc64
|
|
arch_compat: ppc64p7: ppc64
|
|
+arch_compat: ppc64le: noarch fat
|
|
|
|
arch_compat: sun4c: sparc
|
|
arch_compat: sun4d: sparc
|
|
@@ -507,6 +512,7 @@
|
|
buildarch_compat: ppc64pseries: ppc64
|
|
buildarch_compat: ppc64iseries: ppc64
|
|
buildarch_compat: ppc64p7: ppc64
|
|
+buildarch_compat: ppc64le: noarch fat
|
|
|
|
buildarch_compat: mips: noarch
|
|
buildarch_compat: mipsel: noarch
|