@ -376,6 +376,17 @@ if [ "$SUBARCH" = "ac100" ] || [ "$SUBARCH" = "nexus7" ]; then
# create boot.img
# create boot.img
Chroot chroot "abootimg --create /boot/installer-${KVERS}.img -f /boot/bootimg.cfg -r /boot/initrd.img-${KVERS} -k /boot/vmlinuz-${KVERS}"
Chroot chroot "abootimg --create /boot/installer-${KVERS}.img -f /boot/bootimg.cfg -r /boot/initrd.img-${KVERS} -k /boot/vmlinuz-${KVERS}"
if [ "$SUBARCH" = "nexus7" ]; then
# adjust the bootimg cmdline parameters
Chroot chroot 'abootimg -u /boot/installer-${KVERS}.img -c "cmdline=root=/dev/mmcblk0p9 ro console=tty1 fbcon=rotate:1 quiet splash"'
# roll the android rootfs images
mkdir userdata
cp $PREFIX.rootfs.tar.gz userdata/rootfs.tar.gz
make_ext4fs -l 6G -s $PREFIX.img-$FLAVOUR userdata/
ln -sf "$PREFIX.img-$FLAVOUR" "$PREFIX.img"
fi
# clean up
# clean up
lb chroot_devpts remove "$@"
lb chroot_devpts remove "$@"
lb chroot_sysfs remove "$@"
lb chroot_sysfs remove "$@"
@ -384,13 +395,6 @@ if [ "$SUBARCH" = "ac100" ] || [ "$SUBARCH" = "nexus7" ]; then
cp "chroot/boot/installer-${KVERS}.img" "$PREFIX.bootimg-$FLAVOUR"
cp "chroot/boot/installer-${KVERS}.img" "$PREFIX.bootimg-$FLAVOUR"
ln -sf "$PREFIX.bootimg-$FLAVOUR" "$PREFIX.bootimg"
ln -sf "$PREFIX.bootimg-$FLAVOUR" "$PREFIX.bootimg"
if [ "$SUBARCH" = "nexus7" ]; then
# roll the android rootfs images
mkdir userdata
cp $PREFIX.rootfs.tar.gz userdata/rootfs.tar.gz
make_ext4fs -l 6G -s $PREFIX.img-$FLAVOUR userdata/
ln -sf "$PREFIX.img-$FLAVOUR" "$PREFIX.img"
fi
fi
fi
# LTSP chroot building (only in 32bit and for Edubuntu (DVD))
# LTSP chroot building (only in 32bit and for Edubuntu (DVD))