public inbox for gentoo-catalyst@lists.gentoo.org
 help / color / mirror / Atom feed
From: Leno Hou <lenohou@gmail.com>
To: gentoo-catalyst@lists.gentoo.org
Cc: blueness@gentoo.org, Kevin Zhao <kevin.zhaoshuai@gmail.com>,
	Mike Frysinger <vapier@gentoo.org>, Leno Hou <lenohou@gmail.com>
Subject: [gentoo-catalyst][PATCH V3   2/3] create-iso: modify the mkisofs parameter of ppc64 little-endian.
Date: Thu, 21 Apr 2016 00:42:46 -0400	[thread overview]
Message-ID: <1461213767-32257-2-git-send-email-lenohou@gmail.com> (raw)
In-Reply-To: <1461213767-32257-1-git-send-email-lenohou@gmail.com>

From: Kevin Zhao <kevin.zhaoshuai@gmail.com>

ppc64 little-endian has different archtecture and new
boot parameters.Don't need the hfs and mapping files
as it in Big-endian.Also tweak the code of Big-endian.

Signed-off-by: Kevin Zhao <kevin.zhaoshuai@gmail.com>
CC: Mike Frysinger <vapier@gentoo.org>
CC: Leno Hou <lenohou@gmail.com>
---
 targets/support/create-iso.sh | 16 +++++++++++++++-
 1 file changed, 15 insertions(+), 1 deletion(-)

diff --git a/targets/support/create-iso.sh b/targets/support/create-iso.sh
index b4077c3..f45dd7d 100755
--- a/targets/support/create-iso.sh
+++ b/targets/support/create-iso.sh
@@ -211,8 +211,22 @@ case ${clst_hostarch} in
 			"${clst_target_path}/ppc/bootinfo.txt"
 		fi
 
+		flags=( -r -U -chrp-boot )
 		echo ">> Running mkisofs to create iso image...."
-		run_mkisofs -r -U -chrp-boot -netatalk -hfs -probe -map "${clst_target_path}"/boot/map.hfs -part -no-desktop -hfs-volid "${clst_iso_volume_id}" -hfs-bless "${clst_target_path}"/boot -hide-hfs "zisofs" -hide-hfs "stages" -hide-hfs "distfiles" -hide-hfs "snapshots" -J ${mkisofs_zisofs_opts} -V "${clst_iso_volume_id}" -o "${1}" "${clst_target_path}"/
+		if [[ ${clst_subarch} == *le ]]
+		then
+			flags+=(
+				-v -T -l -cache-inodes
+			)
+		else
+			flags+=(
+				-netatalk -hfs -probe -map "${clst_target_path}"/boot/map.hfs
+				-part -no-desktop -hfs-volid "${clst_iso_volume_id}" -hfs-bless "${clst_target_path}"/boot -hide-hfs
+				"zisofs" -hide-hfs "stages" -hide-hfs "distfiles" -hide-hfs "snapshots" -J ${mkisofs_zisofs_opts}
+			)
+		fi
+		run_mkisofs "${flags[@]}" \
+			-V "${clst_iso_volume_id}" -o "${1}" "${clst_target_path}"
 	;;
 	sparc*)
 		# Old silo (<=1.2.6) requires a specially built mkisofs
-- 
2.1.4



  reply	other threads:[~2016-04-21  4:43 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-04-21  4:42 [gentoo-catalyst][PATCH V3 1/3] catalyst/arch/powerpc.py: add subarch ppc64le platform Leno Hou
2016-04-21  4:42 ` Leno Hou [this message]
2016-04-21  5:39   ` [gentoo-catalyst][PATCH V3 2/3] create-iso: modify the mkisofs parameter of ppc64 little-endian Mike Frysinger
2016-04-21  4:42 ` [gentoo-catalyst][PATCH V3 3/3] livecd/cdtar:add bootloader file grub 2.00 and bootinfo.txt for ppc64le Leno Hou
2016-04-21  5:37 ` [gentoo-catalyst][PATCH V3 1/3] catalyst/arch/powerpc.py: add subarch ppc64le platform Mike Frysinger

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1461213767-32257-2-git-send-email-lenohou@gmail.com \
    --to=lenohou@gmail.com \
    --cc=blueness@gentoo.org \
    --cc=gentoo-catalyst@lists.gentoo.org \
    --cc=kevin.zhaoshuai@gmail.com \
    --cc=vapier@gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox