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:
parent
e92ea26206
commit
364ce363f7
@ -50,7 +50,7 @@ Requires: hfsplus-tools
|
|||||||
Requires: syslinux >= 6.02-4
|
Requires: syslinux >= 6.02-4
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%ifarch ppc ppc64
|
%ifarch ppc ppc64 ppc64le
|
||||||
Requires: kernel-bootwrapper
|
Requires: kernel-bootwrapper
|
||||||
Requires: grub2
|
Requires: grub2
|
||||||
Requires: grub2-tools
|
Requires: grub2-tools
|
||||||
|
@ -51,12 +51,12 @@ install ${configdir}/mapping ${BOOTDIR}
|
|||||||
install ${configdir}/magic ${BOOTDIR}
|
install ${configdir}/magic ${BOOTDIR}
|
||||||
|
|
||||||
## NOTE: PPC is kind of funky. There's three possible "arch" setups here:
|
## 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)
|
## Install kernel and bootloader config (in separate places for each arch)
|
||||||
%for kernel in kernels:
|
%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
|
## separate dirs/images for each arch
|
||||||
KERNELDIR=BOOTDIR+"/ppc%s" % bits
|
KERNELDIR=BOOTDIR+"/ppc%s" % bits
|
||||||
NETIMG=NETBOOTDIR+"/ppc%s.img" % bits
|
NETIMG=NETBOOTDIR+"/ppc%s.img" % bits
|
||||||
|
@ -54,12 +54,12 @@ install ${configdir}/mapping ${BOOTDIR}
|
|||||||
install ${configdir}/magic ${BOOTDIR}
|
install ${configdir}/magic ${BOOTDIR}
|
||||||
|
|
||||||
## NOTE: PPC is kind of funky. There's three possible "arch" setups here:
|
## 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)
|
## Install kernel and bootloader config (in separate places for each arch)
|
||||||
%for kernel in kernels:
|
%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
|
## separate dirs/images for each arch
|
||||||
KERNELDIR=BOOTDIR+"/ppc%s" % bits
|
KERNELDIR=BOOTDIR+"/ppc%s" % bits
|
||||||
NETIMG=NETBOOTDIR+"/ppc%s.img" % bits
|
NETIMG=NETBOOTDIR+"/ppc%s.img" % bits
|
||||||
|
@ -54,7 +54,7 @@ REMOVE_PPC64_MODULES = "drm plymouth"
|
|||||||
class ArchData(DataHolder):
|
class ArchData(DataHolder):
|
||||||
lib64_arches = ("x86_64", "ppc64", "ppc64le", "s390x", "ia64", "aarch64")
|
lib64_arches = ("x86_64", "ppc64", "ppc64le", "s390x", "ia64", "aarch64")
|
||||||
bcj_arch = dict(i386="x86", x86_64="x86",
|
bcj_arch = dict(i386="x86", x86_64="x86",
|
||||||
ppc="powerpc", ppc64="powerpc",
|
ppc="powerpc", ppc64="powerpc", ppc64le="powerpc",
|
||||||
arm="arm", armhfp="arm")
|
arm="arm", armhfp="arm")
|
||||||
|
|
||||||
def __init__(self, buildarch):
|
def __init__(self, buildarch):
|
||||||
@ -314,7 +314,7 @@ class Lorax(BaseLoraxClass):
|
|||||||
dracut_args = ["--xz", "--install", "/.buildstamp"]
|
dracut_args = ["--xz", "--install", "/.buildstamp"]
|
||||||
|
|
||||||
# ppc64 cannot boot an initrd > 32MiB so remove some drivers
|
# 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-drivers", REMOVE_PPC64_DRIVERS])
|
||||||
dracut_args.extend(["--omit", REMOVE_PPC64_MODULES])
|
dracut_args.extend(["--omit", REMOVE_PPC64_MODULES])
|
||||||
|
|
||||||
|
@ -227,7 +227,7 @@ class TreeBuilder(object):
|
|||||||
runcmd(cmd, root=self.vars.inroot)
|
runcmd(cmd, root=self.vars.inroot)
|
||||||
|
|
||||||
# ppc64 cannot boot images > 32MiB, check size and warn
|
# 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)
|
st = os.stat(outfile)
|
||||||
if st.st_size > 32 * 1024 * 1024:
|
if st.st_size > 32 * 1024 * 1024:
|
||||||
logging.warning("ppc64 initrd %s is > 32MiB", outfile)
|
logging.warning("ppc64 initrd %s is > 32MiB", outfile)
|
||||||
|
Loading…
Reference in New Issue
Block a user