Skip to content
Snippets Groups Projects
Commit 24db5232 authored by Roberto Oliveira's avatar Roberto Oliveira Committed by Natanael Copa
Browse files

scripts: add support for ppc64le in vanilla configuration

To boot ppc64le we need to use grub with ieee1275 platform. Said that,
a new section to support grub ieee1275 was created.
Also needed to change xorrisofs command by grub-mkrescue, that is the one
used to create a bootable image for power and it is also a wrapper to xorriso.
parent e15e54d7
No related branches found
No related tags found
No related merge requests found
......@@ -190,6 +190,13 @@ build_grubefi_img() {
mcopy -s -i ${DESTDIR}/boot/grub/efiboot.img $_tmpdir/efi ::
}
section_grubieee1275() {
[ "$ARCH" = ppc64le ] || return 0
[ "$output_format" = "iso" ] || return 0
build_section grub_cfg boot/grub/grub.cfg $(grub_gen_config | checksum)
}
section_grubefi() {
[ -n "$grub_mod" ] || return 0
[ "$output_format" = "iso" ] || return 0
......@@ -249,18 +256,23 @@ create_image_iso() {
"
fi
fi
xorrisofs \
-quiet \
-output ${ISO} \
-full-iso9660-filenames \
-joliet \
-rock \
-volid "alpine-$PROFILE $RELEASE $ARCH" \
$_isolinux \
$_efiboot \
-follow-links \
${iso_opts} \
${DESTDIR}
if [ "$ARCH" = ppc64le ]; then
grub-mkrescue --output ${ISO} ${DESTDIR} -follow-links
else
xorrisofs \
-quiet \
-output ${ISO} \
-full-iso9660-filenames \
-joliet \
-rock \
-volid "alpine-$PROFILE $RELEASE $ARCH" \
$_isolinux \
$_efiboot \
-follow-links \
${iso_opts} \
${DESTDIR}
fi
}
create_image_targz() {
......
......@@ -10,6 +10,7 @@ profile_standard() {
profile_vanilla() {
profile_standard
#arch="$arch aarch64"
arch="$arch ppc64le"
kernel_flavors="vanilla"
kernel_addons=
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment