|
|
|
@ -429,6 +429,7 @@ if [ "$PROJECT" = "ubuntu-touch" ] && [ "$ARCH" = "armhf" ]; then
|
|
|
|
|
mv "${sourceslist}.d" "${sourceslist}.d.orig"
|
|
|
|
|
echo "deb http://ftpmaster.internal/ubuntu/ saucy main universe" >$sourceslist
|
|
|
|
|
Chroot chroot "apt-get -y update"
|
|
|
|
|
Chroot chroot "apt-get -y install ubuntu-touch-generic-initrd"
|
|
|
|
|
|
|
|
|
|
for subarch in $touchsubarches; do
|
|
|
|
|
kpkg="$(Chroot chroot apt-cache depends linux-image-$subarch|awk '/Depends: linux-image/ {print $2}')"
|
|
|
|
@ -436,13 +437,10 @@ if [ "$PROJECT" = "ubuntu-touch" ] && [ "$ARCH" = "armhf" ]; then
|
|
|
|
|
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} -c -v"
|
|
|
|
|
Chroot chroot "abootimg --create /boot/bootimg-${subarch}.img -f ${bootimgcfg} -r /boot/initrd.img-${kver} -k /boot/vmlinuz-${kver}"
|
|
|
|
|
initrdimg="/usr/lib/ubuntu-touch-generic-initrd/initrd.img-touch"
|
|
|
|
|
|
|
|
|
|
cp "chroot/boot/bootimg-${subarch}.img" "$PREFIX.bootimg-${subarch}"
|
|
|
|
|
|
|
|
|
|
Chroot chroot "apt-get -y purge $kpkg"
|
|
|
|
|
done
|
|
|
|
|
Chroot chroot "abootimg --create "$PREFIX.bootimg-${subarch}" -f ${bootimgcfg} -r ${initrdimg} -k /boot/vmlinuz-${kver}"
|
|
|
|
|
done`
|
|
|
|
|
|
|
|
|
|
lb chroot_devpts remove "$@"
|
|
|
|
|
lb chroot_sysfs remove "$@"
|
|
|
|
|