add live-build script for subarch specific Ubuntu Touch initrd and boot image creation

ubuntu/trusty
Oliver Grawert 12 years ago
parent 80b0abec4e
commit ce32cc1fe6

7
debian/changelog vendored

@ -1,9 +1,14 @@
livecd-rootfs (2.135) UNRELEASED; urgency=low livecd-rootfs (2.135) UNRELEASED; urgency=low
[ Colin Watson ]
* BuildLiveCD: Time out lockfile after 12 hours, which should be enough * BuildLiveCD: Time out lockfile after 12 hours, which should be enough
for even the longest build queue to clear. for even the longest build queue to clear.
-- Colin Watson <cjwatson@ubuntu.com> 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 <ogra@ubuntu.com> Mon, 27 May 2013 14:34:17 +0200
livecd-rootfs (2.134) saucy; urgency=low livecd-rootfs (2.134) saucy; urgency=low

@ -403,6 +403,33 @@ if [ "$SUBARCH" = "ac100" ] || [ "$SUBARCH" = "nexus7" ]; then
fi 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)) # LTSP chroot building (only in 32bit and for Edubuntu (DVD))
case $PROJECT in case $PROJECT in
edubuntu-dvd) edubuntu-dvd)

Loading…
Cancel
Save