minor ppc.tmpl cleanups

This commit is contained in:
Will Woods 2011-08-08 21:11:28 -04:00
parent ec097a869e
commit f7010454a0

View File

@ -7,7 +7,6 @@ NETBOOTDIR="images/netboot"
WRAPPER="usr/sbin/wrapper" WRAPPER="usr/sbin/wrapper"
WRAPPER_DATA="usr/"+libdir+"/kernel-wrapper" WRAPPER_DATA="usr/"+libdir+"/kernel-wrapper"
MAPPING=configdir+"/mapping"
bitsizes = set() bitsizes = set()
prepboot = "" prepboot = ""
@ -16,11 +15,13 @@ prepboot = ""
mkdir images mkdir images
install ${runtime_img} images/install.img install ${runtime_img} images/install.img
mkdir ${BOOTDIR} ${BOOTDIR}/chrp etc ## basic ppc stuff
mkdir ${BOOTDIR}
install ${configdir}/bootinfo.txt ${BOOTDIR} install ${configdir}/bootinfo.txt ${BOOTDIR}
install boot/efika.forth ${BOOTDIR} install boot/efika.forth ${BOOTDIR}
## boot dir for CHRP systems
mkdir ${BOOTDIR}/chrp
install usr/lib/yaboot/yaboot ${BOOTDIR}/chrp install usr/lib/yaboot/yaboot ${BOOTDIR}/chrp
## boot dir for PowerMacs ## boot dir for PowerMacs
mkdir ${MACDIR} mkdir ${MACDIR}
install usr/lib/yaboot/yaboot ${MACDIR} install usr/lib/yaboot/yaboot ${MACDIR}
@ -60,6 +61,7 @@ install ${configdir}/ofboot.b ${MACDIR}
runcmd ${inroot}/usr/lib/yaboot/addnote ${outroot}/${BOOTDIR}/chrp/yaboot runcmd ${inroot}/usr/lib/yaboot/addnote ${outroot}/${BOOTDIR}/chrp/yaboot
## copy yaboot.conf into /etc ## copy yaboot.conf into /etc
mkdir etc
%if len(bitsizes) == 2: %if len(bitsizes) == 2:
## magic ppc biarch tree! we need magic ppc biarch config. ## magic ppc biarch tree! we need magic ppc biarch config.
install ${configdir}/yaboot.conf.3264 etc/yaboot.conf install ${configdir}/yaboot.conf.3264 etc/yaboot.conf
@ -75,7 +77,7 @@ runcmd mkisofs -o ${outroot}/images/boot.iso -chrp-boot -U \
-A "${product.name} ${product.version}" -sysid PPC -V PBOOT \ -A "${product.name} ${product.version}" -sysid PPC -V PBOOT \
-volset "${product.version}" -volset-size 1 -volset-seqno 1 \ -volset "${product.version}" -volset-size 1 -volset-seqno 1 \
-hfs-volid ${product.version} -hfs-bless ${outroot}/${MACDIR} \ -hfs-volid ${product.version} -hfs-bless ${outroot}/${MACDIR} \
-map ${inroot}/${MAPPING} \ -map ${inroot}/${configdir}/mapping \
-no-desktop -allow-multidot -graft-points \ -no-desktop -allow-multidot -graft-points \
etc=${outroot}/etc \ etc=${outroot}/etc \
${BOOTDIR}=${outroot}/${BOOTDIR} \ ${BOOTDIR}=${outroot}/${BOOTDIR} \