COMMONMODULES="nfs fat vfat cramfs loop floppy" FSMODS="msdos vfat ext3 reiserfs jfs" IDEMODS="ide-cd" SCSIMODS="sd_mod sg sr_mod st" LATEUSBMODS="mousedev usb-storage" SECSTAGE="md raid0 raid1 raid5 lvm-mod $FSMODS $IDEMODS $SCSIMODS $LATEUSBMODS" NETMODULES="sungem tg3 ne2k-pci 3c59x 8139too olympic de4x5 acenic pcnet32 tulip natsemi e100 e1000 airport" SCSIMODULES="$SCSIMODS advansys aic7xxx initio sym53c8xx" ISERIESMODULES="veth viodasd viocd" # images we only want on the CD (usually for space reasons) ISOMODULES="ehci-hcd ieee1394 ohci1394 sbp2" prepareBootImage() { mkdir -p $TOPDESTPATH/ppc/chrp mkdir -p $TOPDESTPATH/images } makeBootImages() { echo "Building boot images for kernel $kernelvers" FAKEARCH="" if [ "$KERNELARCH" = "ppc64pseries" ]; then echo "Building pSeries initrd" makeinitrd --initrdto $TOPDESTPATH/ppc/chrp/ramdisk.image.gz \ --initrdsize 8192 \ --loaderbin loader \ --modules "$COMMONMODULES $NETMODULES $SCSIMODULES $SCSIMODS $IDEMODS $ISOMODULES" mkdir -p $TOPDESTPATH/etc $TOPDESTPATH/ppc/chrp cp $KERNELROOT/boot/vmlinux-* $TOPDESTPATH/ppc/chrp/vmlinux cp $BOOTDISKDIR/yaboot.conf.pseries $TOPDESTPATH/etc/yaboot.conf cp $BOOTDISKDIR/bootinfo.txt $TOPDESTPATH/ppc/bootinfo.txt cp $IMGPATH/usr/lib/yaboot/yaboot $TOPDESTPATH/ppc/chrp $IMGPATH/usr/lib/yaboot/addnote $TOPDESTPATH/ppc/chrp/yaboot pushd $TOPDESTPATH/ppc/chrp cp $IMGPATH/usr/share/ppc64-utils/zImage.lds $TOPDESTPATH/ppc/chrp/zImage.lds $IMGPATH/usr/bin/mkzimage $KERNELROOT/boot/vmlinuz-partial* $TOPDESTPATH/images/pseries/netboot.img $TOPDESTPATH/ppc/chrp/ramdisk.image.gz rm -f $TOPDESTPATH/ppc/chrp/zImage.lds popd # we also want to make a boot.iso here mkdir -p $TOPDESTPATH/isopath/ppc/chrp $TOPDESTPATH/isopath/etc cp $TOPDESTPATH/etc/* $TOPDESTPATH/isopath/etc/ cp $TOPDESTPATH/ppc/chrp/* $TOPDESTPATH/isopath/ppc/chrp cp $TOPDESTPATH/ppc/bootinfo.txt $TOPDESTPATH/isopath/ppc/bootinfo.txt # FIXME: this assumes the file gets there by magic cp $TOPDESTPATH/boot_image $TOPDESTPATH/isopath/boot_image mkisofs -generic-boot $TOPDESTPATH/isopath/boot_image -A "$PRODUCT $VERSION" -V "PBOOT" -J -R -T -allow-multidot -l -o $TOPDESTPATH/images/pseries/boot.iso $TOPDESTPATH/isopath rm -rf $TOPDESTPATH/isopath/ cat > $TOPDESTPATH/images/pseries/README <