From b8bd2acad87f577cd37dfd41ca416ec9394458c7 Mon Sep 17 00:00:00 2001 From: ligc Date: Thu, 7 Nov 2013 09:05:46 +0800 Subject: [PATCH] SLES12 ppc64le support: build ppc64le RPMs --- buildcore.sh | 2 +- xCAT/xCAT.spec | 2 +- xCATsn/xCATsn.spec | 6 ++++++ 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/buildcore.sh b/buildcore.sh index 41866121e..7edc5cad1 100755 --- a/buildcore.sh +++ b/buildcore.sh @@ -289,7 +289,7 @@ for rpmname in xCAT xCATsn xCAT-OpenStack xCAT-OpenStack-baremetal; do ./makerpm $rpmname "$EMBED" if [ $? -ne 0 ]; then FAILEDRPMS="$FAILEDRPMS $rpmname"; fi else - for arch in x86_64 ppc64 s390x; do + for arch in x86_64 ppc64 ppc64le s390x; do if [ "$rpmname" = "xCAT-OpenStack" -a "$arch" != "x86_64" ] || [ "$rpmname" = "xCAT-OpenStack-baremetal" -a "$arch" != "x86_64" ] ; then continue; fi # only bld openstack for x86_64 for now ./makerpm $rpmname $arch "$EMBED" if [ $? -ne 0 ]; then FAILEDRPMS="$FAILEDRPMS $rpmname-$arch"; fi diff --git a/xCAT/xCAT.spec b/xCAT/xCAT.spec index 4593a7bd4..54bea22d2 100644 --- a/xCAT/xCAT.spec +++ b/xCAT/xCAT.spec @@ -64,7 +64,7 @@ Requires: ipmitool-xcat >= 1.8.9 Requires: xnba-undi %endif %ifos linux -%ifarch ppc ppc64 +%ifarch ppc ppc64 ppc64le Requires: xCAT-genesis-scripts-ppc64 Requires: ipmitool-xcat >= 1.8.9 %endif diff --git a/xCATsn/xCATsn.spec b/xCATsn/xCATsn.spec index de0da70c6..df24475ab 100644 --- a/xCATsn/xCATsn.spec +++ b/xCATsn/xCATsn.spec @@ -58,6 +58,12 @@ Requires: syslinux xCAT-genesis-scripts-x86_64 elilo-xcat Requires: ipmitool-xcat >= 1.8.9 Requires: xnba-undi %endif +%ifos linux +%ifarch ppc ppc64 ppc64le +Requires: xCAT-genesis-scripts-ppc64 +Requires: ipmitool-xcat >= 1.8.9 +%endif +%endif %if %notpcm %ifarch i386 i586 i686 x86 x86_64