Gentoo Archives: gentoo-catalyst

From: Leno Hou <lenohou@×××××.com>
To: gentoo-catalyst@l.g.o
Cc: blueness@g.o, Kevin Zhao <kevin.zhaoshuai@×××××.com>, Mike Frysinger <vapier@g.o>, Leno Hou <lenohou@×××××.com>
Subject: [gentoo-catalyst][PATCH V3 2/3] create-iso: modify the mkisofs parameter of ppc64 little-endian.
Date: Thu, 21 Apr 2016 04:43:15
Message-Id: 1461213767-32257-2-git-send-email-lenohou@gmail.com
In Reply to: [gentoo-catalyst][PATCH V3 1/3] catalyst/arch/powerpc.py: add subarch ppc64le platform by Leno Hou
1 From: Kevin Zhao <kevin.zhaoshuai@×××××.com>
2
3 ppc64 little-endian has different archtecture and new
4 boot parameters.Don't need the hfs and mapping files
5 as it in Big-endian.Also tweak the code of Big-endian.
6
7 Signed-off-by: Kevin Zhao <kevin.zhaoshuai@×××××.com>
8 CC: Mike Frysinger <vapier@g.o>
9 CC: Leno Hou <lenohou@×××××.com>
10 ---
11 targets/support/create-iso.sh | 16 +++++++++++++++-
12 1 file changed, 15 insertions(+), 1 deletion(-)
13
14 diff --git a/targets/support/create-iso.sh b/targets/support/create-iso.sh
15 index b4077c3..f45dd7d 100755
16 --- a/targets/support/create-iso.sh
17 +++ b/targets/support/create-iso.sh
18 @@ -211,8 +211,22 @@ case ${clst_hostarch} in
19 "${clst_target_path}/ppc/bootinfo.txt"
20 fi
21
22 + flags=( -r -U -chrp-boot )
23 echo ">> Running mkisofs to create iso image...."
24 - 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}"/
25 + if [[ ${clst_subarch} == *le ]]
26 + then
27 + flags+=(
28 + -v -T -l -cache-inodes
29 + )
30 + else
31 + flags+=(
32 + -netatalk -hfs -probe -map "${clst_target_path}"/boot/map.hfs
33 + -part -no-desktop -hfs-volid "${clst_iso_volume_id}" -hfs-bless "${clst_target_path}"/boot -hide-hfs
34 + "zisofs" -hide-hfs "stages" -hide-hfs "distfiles" -hide-hfs "snapshots" -J ${mkisofs_zisofs_opts}
35 + )
36 + fi
37 + run_mkisofs "${flags[@]}" \
38 + -V "${clst_iso_volume_id}" -o "${1}" "${clst_target_path}"
39 ;;
40 sparc*)
41 # Old silo (<=1.2.6) requires a specially built mkisofs
42 --
43 2.1.4

Replies