Add ppc64le arch (#1136490)

basearch is ppc64le so we needs to check for that in addition to ppc64.

Resolves:rhbz#1136490
This commit is contained in:
Brian C. Lane 2014-09-02 10:58:48 -07:00
parent e92ea26206
commit 364ce363f7
5 changed files with 8 additions and 8 deletions

View File

@ -50,7 +50,7 @@ Requires: hfsplus-tools
Requires: syslinux >= 6.02-4
%endif
%ifarch ppc ppc64
%ifarch ppc ppc64 ppc64le
Requires: kernel-bootwrapper
Requires: grub2
Requires: grub2-tools

View File

@ -51,12 +51,12 @@ install ${configdir}/mapping ${BOOTDIR}
install ${configdir}/magic ${BOOTDIR}
## NOTE: PPC is kind of funky. There's three possible "arch" setups here:
## ppc, ppc64, and 'hybrid' (ppc userspace, both ppc & ppc64 kernels).
## ppc, ppc64, ppc64le and 'hybrid' (ppc userspace, both ppc & ppc64 kernels).
## Install kernel and bootloader config (in separate places for each arch)
%for kernel in kernels:
<%
bits = 64 if kernel.arch == "ppc64" else 32
bits = 64 if kernel.arch in ("ppc64", "ppc64le") else 32
## separate dirs/images for each arch
KERNELDIR=BOOTDIR+"/ppc%s" % bits
NETIMG=NETBOOTDIR+"/ppc%s.img" % bits

View File

@ -54,12 +54,12 @@ install ${configdir}/mapping ${BOOTDIR}
install ${configdir}/magic ${BOOTDIR}
## NOTE: PPC is kind of funky. There's three possible "arch" setups here:
## ppc, ppc64, and 'hybrid' (ppc userspace, both ppc & ppc64 kernels).
## ppc, ppc64, ppc64le, and 'hybrid' (ppc userspace, both ppc & ppc64 kernels).
## Install kernel and bootloader config (in separate places for each arch)
%for kernel in kernels:
<%
bits = 64 if kernel.arch == "ppc64" else 32
bits = 64 if kernel.arch in ("ppc64", "ppc64le") else 32
## separate dirs/images for each arch
KERNELDIR=BOOTDIR+"/ppc%s" % bits
NETIMG=NETBOOTDIR+"/ppc%s.img" % bits

View File

@ -54,7 +54,7 @@ REMOVE_PPC64_MODULES = "drm plymouth"
class ArchData(DataHolder):
lib64_arches = ("x86_64", "ppc64", "ppc64le", "s390x", "ia64", "aarch64")
bcj_arch = dict(i386="x86", x86_64="x86",
ppc="powerpc", ppc64="powerpc",
ppc="powerpc", ppc64="powerpc", ppc64le="powerpc",
arm="arm", armhfp="arm")
def __init__(self, buildarch):
@ -314,7 +314,7 @@ class Lorax(BaseLoraxClass):
dracut_args = ["--xz", "--install", "/.buildstamp"]
# ppc64 cannot boot an initrd > 32MiB so remove some drivers
if self.arch.basearch == "ppc64":
if self.arch.basearch in ("ppc64", "ppc64le"):
dracut_args.extend(["--omit-drivers", REMOVE_PPC64_DRIVERS])
dracut_args.extend(["--omit", REMOVE_PPC64_MODULES])

View File

@ -227,7 +227,7 @@ class TreeBuilder(object):
runcmd(cmd, root=self.vars.inroot)
# ppc64 cannot boot images > 32MiB, check size and warn
if self.vars.arch.basearch == "ppc64" and os.path.exists(outfile):
if self.vars.arch.basearch in ("ppc64", "ppc64le") and os.path.exists(outfile):
st = os.stat(outfile)
if st.st_size > 32 * 1024 * 1024:
logging.warning("ppc64 initrd %s is > 32MiB", outfile)