switch touch builds to use the packaged android img files (pending cdimage changes to publish these from the livefs builder)

ubuntu/trusty
Oliver Grawert 12 years ago
parent f06dcf375a
commit 74ce6409a4

7
debian/changelog vendored

@ -1,3 +1,10 @@
livecd-rootfs (2.169) UNRELEASED; urgency=low
* switch touch builds to use the packaged android img files (pending cdimage
changes to publish these from the livefs builder)
-- Oliver Grawert <ogra@ubuntu.com> Wed, 07 Aug 2013 16:05:45 +0200
livecd-rootfs (2.168) saucy; urgency=low livecd-rootfs (2.168) saucy; urgency=low
* drop unity-next PPA from ubuntu-touch builds, unity8 is in the archive now * drop unity-next PPA from ubuntu-touch builds, unity8 is in the archive now

@ -414,8 +414,6 @@ if [ "$PROJECT" = "ubuntu-touch" ] && [ "$ARCH" = "armhf" ]; then
sourceslist="chroot/etc/apt/sources.list" sourceslist="chroot/etc/apt/sources.list"
export FLASH_KERNEL_SKIP=True
lb chroot_proc install "$@" lb chroot_proc install "$@"
lb chroot_sysfs install "$@" lb chroot_sysfs install "$@"
lb chroot_devpts install "$@" lb chroot_devpts install "$@"
@ -429,20 +427,22 @@ if [ "$PROJECT" = "ubuntu-touch" ] && [ "$ARCH" = "armhf" ]; then
mv "${sourceslist}" "${sourceslist}.orig" mv "${sourceslist}" "${sourceslist}.orig"
mv "${sourceslist}.d" "${sourceslist}.d.orig" mv "${sourceslist}.d" "${sourceslist}.d.orig"
echo "deb http://ftpmaster.internal/ubuntu/ saucy main universe" >$sourceslist echo "deb ${MIRROR} saucy main universe multiverse restricted" >$sourceslist
Chroot chroot "apt-get -y update" Chroot chroot "apt-get -y update"
Chroot chroot "apt-get -y install ubuntu-touch-generic-initrd" Chroot chroot "apt-get -y install android"
REL="$LB_DISTRIBUTION"
for subarch in $touchsubarches; do for subarch in $touchsubarches; do
kpkg="$(Chroot chroot apt-cache depends linux-image-$subarch|awk '/Depends: linux-image/ {print $2}')" cp "chroot/usr/share/android/product/${REL}-preinstalled-system-armel+${subarch}.img"\
kver=${kpkg#linux-image-} "${PREFIX}.system-armel+${subarch}.img"
Chroot chroot "apt-get -y install $kpkg" cp "chroot/usr/share/android/product/${REL}-preinstalled-recovery-armel+${subarch}.img"\
"${PREFIX}.recovery-armel+${subarch}.img"
bootimgcfg="/usr/share/initramfs-tools-ubuntu-touch/bootimg.cfg-${subarch}" cp "chroot/usr/share/android/product/${REL}-preinstalled-boot-armhf+${subarch}.img"\
initrdimg="/usr/lib/ubuntu-touch-generic-initrd/initrd.img-touch" "${PREFIX}.boot-armhf+${subarch}.img"
# drop this following line once cdimage can handle -boot-*.img
Chroot chroot "abootimg --create /boot/bootimg-${subarch}.img -f ${bootimgcfg} -r ${initrdimg} -k /boot/vmlinuz-${kver}" ln -s "${PREFIX}.boot-armhf+${subarch}.img" "${PREFIX}.bootimg-${subarch}"
cp "chroot/boot/bootimg-${subarch}.img" "$PREFIX.bootimg-${subarch}" cp "chroot/usr/share/android/product/${REL}-preinstalled-touch-armel+${subarch}.zip"\
"${PREFIX}.armel+${subarch}.zip"
done done
lb chroot_devpts remove "$@" lb chroot_devpts remove "$@"

Loading…
Cancel
Save