Bug 1477747

Summary: Add support for building openbios on s390x
Product: [Fedora] Fedora EPEL Reporter: Neale Ferguson <neale>
Component: qemuAssignee: Lubomir Rintel <lkundrak>
Status: NEW --- QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: unspecified    
Version: epel7CC: dwmw2, lkundrak, pbonzini, virt-maint
Target Milestone: ---   
Target Release: ---   
Hardware: s390x   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Patch to enable building on s390x none

Description Neale Ferguson 2017-08-02 19:40:57 UTC
Created attachment 1308446 [details]
Patch to enable building on s390x

Description of problem:
switch-arch script is missing logic for building package under s390x (64-bit big endian)


Version-Release number of selected component (if applicable):
20170311-1.gitf233c3f


How reproducible:
Build on s390x system


Steps to Reproduce:
1. rpmbuild -bb openbios.spec
2.
3.

Actual results:
Segment exception running forthstrap


Expected results:
Clean build


Additional info:
switch arch doesn't recognize s390x so it defaults to big-endian 32-bit. This causes problems in the definition of cell2pointer etc.