From ce32cc1fe6163916916f362c96955a523a5e4f83 Mon Sep 17 00:00:00 2001 From: Oliver Grawert Date: Mon, 27 May 2013 14:37:30 +0200 Subject: [PATCH] add live-build script for subarch specific Ubuntu Touch initrd and boot image creation --- debian/changelog | 7 ++++++- live-build/auto/build | 27 +++++++++++++++++++++++++++ 2 files changed, 33 insertions(+), 1 deletion(-) diff --git a/debian/changelog b/debian/changelog index 98421f82..bd9c69fe 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,9 +1,14 @@ livecd-rootfs (2.135) UNRELEASED; urgency=low + [ Colin Watson ] * BuildLiveCD: Time out lockfile after 12 hours, which should be enough for even the longest build queue to clear. - -- Colin Watson Wed, 22 May 2013 17:32:23 +0100 + [ Oliver Grawert ] + * add live-build script for subarch specific Ubuntu Touch initrd + and boot image creation + + -- Oliver Grawert Mon, 27 May 2013 14:34:17 +0200 livecd-rootfs (2.134) saucy; urgency=low diff --git a/live-build/auto/build b/live-build/auto/build index c6a068ba..ef730b2d 100755 --- a/live-build/auto/build +++ b/live-build/auto/build @@ -403,6 +403,33 @@ if [ "$SUBARCH" = "ac100" ] || [ "$SUBARCH" = "nexus7" ]; then fi +if [ "$PROJECT" = "ubuntu-touch" ] && [ "$ARCH" = "armhf" ]; then + for subarch in maguro manta grouper mako; do + + lb chroot_proc install "$@" + lb chroot_sysfs install "$@" + lb chroot_devpts install "$@" + + kpkg="$(apt-cache depends linux-image-$subarch|grep Depends|sed -e 's/ Depends: //')" + kver=${kpkg#linux-image-} + Chroot chroot "apt-get -y install $kpkg" + + bootimgcfg="/usr/share/initramfs-tools-ubuntu-touch/bootimg.cfg-${subarch}" + Chroot chroot "env FLASH_KERNEL_SKIP=1 update-initramfs -k $kver -t -u -v" + Chroot chroot "abootimg --create /boot/bootimg-${subarch}.img -f $bootimgcfg -r /boot/initrd.img-${kver} -k /boot/vmlinuz-${kver}" + + Chroot chroot "apt-get -y purge $kpkg" + + lb chroot_devpts remove "$@" + lb chroot_sysfs remove "$@" + lb chroot_proc remove "$@" + + cp "chroot/boot/bootimg-${subarch}.img" "$PREFIX-${subarch}-boot.img" + rm "chroot/boot/bootimg-${subarch}.img" "/chroot/boot/initrd.img-"* "/chroot/boot/vmlinuz-"* + done + Chroot chroot "apt-get -y purge crda wireless-regdb" +fi + # LTSP chroot building (only in 32bit and for Edubuntu (DVD)) case $PROJECT in edubuntu-dvd)