Add initial support for ppc64el
This commit is contained in:
parent
adad6af07d
commit
77387b5419
|
@ -40,7 +40,7 @@ if [ -z "$IMAGETARGET" ] ; then
|
|||
IMAGETARGET="official_images"
|
||||
fi
|
||||
|
||||
for ARCHES in i386 amd64 armel armhf arm64 mips mipsel powerpc s390x kfreebsd-amd64 kfreebsd-i386 source
|
||||
for ARCHES in i386 amd64 armel armhf arm64 mips mipsel powerpc ppc64el s390x kfreebsd-amd64 kfreebsd-i386 source
|
||||
do
|
||||
export ARCHES
|
||||
echo "Now we're going to build CD for $ARCHES !"
|
||||
|
|
|
@ -20,6 +20,9 @@ debian-cd (3.1.16) UNRELEASED; urgency=medium
|
|||
[ Joey Hess ]
|
||||
* adapt desktop handling for tasksel/d-i changes. Closes: #762487
|
||||
|
||||
[ Aurelien Jarno ]
|
||||
* Add initial support for ppc64el
|
||||
|
||||
-- Steve McIntyre <93sam@debian.org> Thu, 07 Aug 2014 01:45:01 +0100
|
||||
|
||||
debian-cd (3.1.15) unstable; urgency=medium
|
||||
|
|
|
@ -0,0 +1,65 @@
|
|||
#!/bin/bash
|
||||
#
|
||||
# Do install stuff for ppc64el, including making bootable CDs
|
||||
# Works with debian-installer
|
||||
#
|
||||
# $1 is the CD number
|
||||
# $2 is the temporary CD build dir
|
||||
|
||||
. $BASEDIR/tools/boot/$DI_CODENAME/common.sh
|
||||
|
||||
set -e
|
||||
#set -x
|
||||
|
||||
N=$1
|
||||
CDDIR=$2
|
||||
INSTALLDIR=$CDDIR/install
|
||||
if [ "$DI_WWW_HOME" = "default" ];then
|
||||
DI_WWW_HOME="http://d-i.debian.org/daily-images/ppc64el/daily"
|
||||
try_di_image_cache
|
||||
fi
|
||||
|
||||
# Common mkisofs options when creating CDs
|
||||
add_mkisofs_opt $CDDIR/../$N.mkisofs_opts "-J -joliet-long"
|
||||
add_mkisofs_opt $CDDIR/../$N.mkisofs_opts "-cache-inodes"
|
||||
|
||||
# Only disc 1 bootable
|
||||
if [ $N != 1 ] ; then exit 0; fi
|
||||
|
||||
cd $CDDIR/..
|
||||
|
||||
BOOT_IMAGES="cdrom/initrd.gz cdrom/vmlinux cdrom/debian-cd_info.tar.gz"
|
||||
|
||||
# Download boot images.
|
||||
for image in $BOOT_IMAGES; do
|
||||
if [ ! -e "$image" ]; then
|
||||
dir=$(dirname $image)
|
||||
mkdir -p $dir
|
||||
if [ -n "$LOCAL" -a -f "${LOCALDEBS:-$MIRROR}/dists/$DI_DIST/local/installer-$ARCH/current/images/$image" ]; then
|
||||
cp "${LOCALDEBS:-$MIRROR}/dists/$DI_DIST/local/installer-$ARCH/current/images/$image" "$image"
|
||||
elif [ ! "$DI_WWW_HOME" ];then
|
||||
if [ ! "$DI_DIR" ];then
|
||||
DI_DIR="$MIRROR/dists/$DI_DIST/main/installer-$ARCH/current/images"
|
||||
fi
|
||||
cp "$DI_DIR/$image" "$image"
|
||||
else
|
||||
wget "$DI_WWW_HOME/$image" -O "$image"
|
||||
fi
|
||||
fi
|
||||
done
|
||||
|
||||
# Boot setup including config and help files comes from d-i.
|
||||
mkdir -pv $PWD/CD$N
|
||||
cat cdrom/debian-cd_info.tar.gz | (cd CD$N/; tar zx)
|
||||
|
||||
# Copy kernel and initrd
|
||||
mkdir -p $INSTALLDIR
|
||||
cp -lf cdrom/vmlinux $INSTALLDIR/
|
||||
cp -lf cdrom/initrd.gz $INSTALLDIR/
|
||||
|
||||
# Add CHRP boot header
|
||||
if [ -d CD$N/ppc/bootinfo.txt ] ; then
|
||||
add_mkisofs_opt $CDDIR/../$N.mkisofs_opts "-chrp-boot"
|
||||
fi
|
||||
|
||||
exit 0
|
|
@ -232,6 +232,15 @@ linux-image-powerpc64
|
|||
linux-image-prep
|
||||
#endif
|
||||
|
||||
#ifdef ARCH_ppc64el
|
||||
initramfs-tools
|
||||
grub-ieee1275
|
||||
busybox
|
||||
powerpc-utils
|
||||
powerpc-ibm-utils
|
||||
linux-image-powerpc64el
|
||||
#endif
|
||||
|
||||
#ifdef ARCH_alpha
|
||||
aboot
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue