```sh git grep -l '^patch_args=-Np0' "srcpkgs/$1*/template" | while read template; do for p in ${template%/template}/patches/*; do sed -i ' \,^[+-][+-][+-] /dev/null,b /^[*-]\+ [0-9]\+\(,[0-9]\+\)\? [*-]\+$/b s,^[*][*][*] ,&a/, /^--- /{ s,\(^--- \)\(./\)*,\1a/, s,[.][Oo][Rr][Ii][Gg]\([ /]\),\1, s/[.][Oo][Rr][Ii][Gg]$// s/[.]patched[.]\([^.]\)/.\1/ h } /^+++ -/{ g s/^--- a/+++ b/ b } s,\(^+++ \)\(./\)*,\1b/, ' "$p" done sed -i '/^patch_args=/d' $template done ```
15 lines
575 B
Diff
15 lines
575 B
Diff
Use ELFv2 ABI for big endian.
|
|
|
|
--- a/purgatory/arch/ppc64/Makefile
|
|
+++ b/purgatory/arch/ppc64/Makefile
|
|
@@ -14,8 +14,8 @@ ppc64_PURGATORY_EXTRA_CFLAGS += -m64 -msoft-float \
|
|
ppc64_PURGATORY_EXTRA_ASFLAGS += -m64
|
|
ifeq ($(SUBARCH),BE)
|
|
ppc64_PURGATORY_EXTRA_LDFLAGS += -melf64ppc
|
|
- ppc64_PURGATORY_EXTRA_CFLAGS += -mcall-aixdesc
|
|
- ppc64_PURGATORY_EXTRA_ASFLAGS += -mcall-aixdesc
|
|
+ ppc64_PURGATORY_EXTRA_CFLAGS += -mabi=elfv2
|
|
+ ppc64_PURGATORY_EXTRA_ASFLAGS += -mabi=elfv2
|
|
else
|
|
ppc64_PURGATORY_EXTRA_LDFLAGS += -melf64lppc
|
|
ppc64_PURGATORY_EXTRA_CFLAGS += -mlittle-endian
|