|
|
@ -409,9 +409,7 @@ if [ "$SUBARCH" = "ac100" ] || [ "$SUBARCH" = "nexus7" ]; then
|
|
|
|
|
|
|
|
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
if [ "$PROJECT" = "ubuntu-touch" ] && [ "$ARCH" = "armhf" ]; then
|
|
|
|
if [ "$PROJECT" = "ubuntu-touch" ]; then
|
|
|
|
touchsubarches="flo manta grouper mako generic"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
sourceslist="chroot/etc/apt/sources.list"
|
|
|
|
sourceslist="chroot/etc/apt/sources.list"
|
|
|
|
|
|
|
|
|
|
|
|
lb chroot_proc install "$@"
|
|
|
|
lb chroot_proc install "$@"
|
|
|
@ -437,20 +435,36 @@ if [ "$PROJECT" = "ubuntu-touch" ] && [ "$ARCH" = "armhf" ]; then
|
|
|
|
Chroot chroot "apt-get -y update"
|
|
|
|
Chroot chroot "apt-get -y update"
|
|
|
|
Chroot chroot "apt-get -y install android"
|
|
|
|
Chroot chroot "apt-get -y install android"
|
|
|
|
|
|
|
|
|
|
|
|
for subarch in $touchsubarches; do
|
|
|
|
if [ "$ARCH" = "armhf" ]; then
|
|
|
|
cp chroot/usr/share/android/product/*-preinstalled-system-armel+${subarch}.img\
|
|
|
|
touchsubarches="flo manta grouper mako generic"
|
|
|
|
"${PREFIX}.system-armel+${subarch}.img"
|
|
|
|
for subarch in $touchsubarches; do
|
|
|
|
cp chroot/usr/share/android/product/*-preinstalled-recovery-armel+${subarch}.img\
|
|
|
|
cp chroot/usr/share/android/product/*-preinstalled-system-armel+${subarch}.img\
|
|
|
|
"${PREFIX}.recovery-armel+${subarch}.img"
|
|
|
|
"${PREFIX}.system-armel+${subarch}.img"
|
|
|
|
cp chroot/usr/share/android/product/*-preinstalled-boot-armhf+${subarch}.img\
|
|
|
|
cp chroot/usr/share/android/product/*-preinstalled-recovery-armel+${subarch}.img\
|
|
|
|
"${PREFIX}.boot-armhf+${subarch}.img"
|
|
|
|
"${PREFIX}.recovery-armel+${subarch}.img"
|
|
|
|
# drop this following line once cdimage can handle -boot-*.img
|
|
|
|
cp chroot/usr/share/android/product/*-preinstalled-boot-armhf+${subarch}.img\
|
|
|
|
cp "${PREFIX}.boot-armhf+${subarch}.img" "${PREFIX}.bootimg-${subarch}"
|
|
|
|
"${PREFIX}.boot-armhf+${subarch}.img"
|
|
|
|
|
|
|
|
# drop this following line once cdimage can handle -boot-*.img
|
|
|
|
# goldfish does not ship a .zip file, do not fail if it does not exist
|
|
|
|
cp "${PREFIX}.boot-armhf+${subarch}.img" "${PREFIX}.bootimg-${subarch}"
|
|
|
|
cp chroot/usr/share/android/product/*-preinstalled-touch-armel+${subarch}.zip\
|
|
|
|
|
|
|
|
"${PREFIX}.armel+${subarch}.zip" || true
|
|
|
|
# Android 4.4.2 based images don't ship a .zip file, do not fail if it does not exist
|
|
|
|
done
|
|
|
|
cp chroot/usr/share/android/product/*-preinstalled-touch-armel+${subarch}.zip\
|
|
|
|
|
|
|
|
"${PREFIX}.armel+${subarch}.zip" || true
|
|
|
|
|
|
|
|
done
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [ "$ARCH" = "i386" ]; then
|
|
|
|
|
|
|
|
touchsubarches="generic_x86"
|
|
|
|
|
|
|
|
for subarch in $touchsubarches; do
|
|
|
|
|
|
|
|
cp chroot/usr/share/android/product/*-preinstalled-system-i386+${subarch}.img\
|
|
|
|
|
|
|
|
"${PREFIX}.system-i386+${subarch}.img"
|
|
|
|
|
|
|
|
cp chroot/usr/share/android/product/*-preinstalled-recovery-i386+${subarch}.img\
|
|
|
|
|
|
|
|
"${PREFIX}.recovery-i386+${subarch}.img"
|
|
|
|
|
|
|
|
cp chroot/usr/share/android/product/*-preinstalled-boot-i386+${subarch}.img\
|
|
|
|
|
|
|
|
"${PREFIX}.boot-i386+${subarch}.img"
|
|
|
|
|
|
|
|
# drop this following line once cdimage can handle -boot-*.img
|
|
|
|
|
|
|
|
cp "${PREFIX}.boot-i386+${subarch}.img" "${PREFIX}.bootimg-${subarch}"
|
|
|
|
|
|
|
|
done
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
lb chroot_devpts remove "$@"
|
|
|
|
lb chroot_devpts remove "$@"
|
|
|
|
lb chroot_sysfs remove "$@"
|
|
|
|
lb chroot_sysfs remove "$@"
|
|
|
|