|
|
|
@ -393,14 +393,6 @@ deb file:/var/lib/preinstalled-pool/ $LB_DISTRIBUTION $LB_PARENT_ARCHIVE_AREAS
|
|
|
|
|
;;
|
|
|
|
|
esac
|
|
|
|
|
|
|
|
|
|
if [ "$PROJECT" = "ubuntu-touch" ] || [ "$PROJECT" = "ubuntu-touch-custom" ]; then
|
|
|
|
|
if [ "$ARCH" = "armhf" ]; then
|
|
|
|
|
INFO_DESC="$(lsb_release -d -s)"
|
|
|
|
|
echo "$INFO_DESC - $ARCH ($BUILDSTAMP)" >chroot/etc/media-info
|
|
|
|
|
mkdir -p chroot/var/log/installer
|
|
|
|
|
Chroot chroot "ln -s /etc/media-info /var/log/installer/media-info"
|
|
|
|
|
fi
|
|
|
|
|
fi
|
|
|
|
|
if [ "$PROJECT" = "ubuntu-cpc" ]; then
|
|
|
|
|
if [ "${SUBPROJECT:-}" = minimized ]; then
|
|
|
|
|
BUILD_NAME=minimal
|
|
|
|
@ -517,12 +509,6 @@ EOF
|
|
|
|
|
fi
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
if [ "$PROJECT" = "ubuntu-touch" ] || [ "$PROJECT" = "ubuntu-touch-custom" ]; then
|
|
|
|
|
(cd "binary/$INITFS/custom.dir/" && tar -c --sort=name --xattrs *) | \
|
|
|
|
|
gzip -9 --rsyncable > "$PREFIX.custom.tar.gz"
|
|
|
|
|
chmod 644 "$PREFIX.custom.tar.gz"
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
# '--initramfs none' produces different manifest names.
|
|
|
|
|
if [ -e "binary/$INITFS/filesystem.packages" ]; then
|
|
|
|
|
./config/snap-seed-parse "chroot/" "binary/${INITFS}/filesystem.packages"
|
|
|
|
@ -854,66 +840,6 @@ case $SUBARCH in
|
|
|
|
|
;;
|
|
|
|
|
esac
|
|
|
|
|
|
|
|
|
|
if [ "$PROJECT" = "ubuntu-touch" ] || [ "$PROJECT" = "ubuntu-touch-custom" ]; then
|
|
|
|
|
sourceslist="chroot/etc/apt/sources.list"
|
|
|
|
|
|
|
|
|
|
lb chroot_proc install "$@"
|
|
|
|
|
lb chroot_sysfs install "$@"
|
|
|
|
|
lb chroot_devpts install "$@"
|
|
|
|
|
|
|
|
|
|
if [ -e "$PREFIX.manifest" ]; then
|
|
|
|
|
Chroot chroot "click list" | while read line; do
|
|
|
|
|
echo "click:$line" >>"$PREFIX.manifest"
|
|
|
|
|
done
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
if [ -e chroot/etc/resolv.conf ]; then
|
|
|
|
|
mv chroot/etc/resolv.conf chroot/etc/resolv.conf.orig
|
|
|
|
|
fi
|
|
|
|
|
if [ -e /etc/resolv.conf ]; then
|
|
|
|
|
cp /etc/resolv.conf chroot/etc/resolv.conf
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
mv "${sourceslist}" "${sourceslist}.orig"
|
|
|
|
|
mv "${sourceslist}.d" "${sourceslist}.d.orig"
|
|
|
|
|
echo "deb $LB_PARENT_MIRROR_CHROOT ${LB_DISTRIBUTION} main universe multiverse restricted" >$sourceslist
|
|
|
|
|
Chroot chroot "apt-get -y update"
|
|
|
|
|
Chroot chroot "apt-get -y install android"
|
|
|
|
|
|
|
|
|
|
if [ "$ARCH" = "armhf" ]; then
|
|
|
|
|
touchsubarches="flo mako generic"
|
|
|
|
|
for subarch in $touchsubarches; do
|
|
|
|
|
cp -v chroot/usr/share/android/product/*-preinstalled-system-armel+${subarch}.img\
|
|
|
|
|
"${PREFIX}.system-armel+${subarch}.img"
|
|
|
|
|
cp -v chroot/usr/share/android/product/*-preinstalled-recovery-armel+${subarch}.img\
|
|
|
|
|
"${PREFIX}.recovery-armel+${subarch}.img"
|
|
|
|
|
cp -v chroot/usr/share/android/product/*-preinstalled-boot-armhf+${subarch}.img\
|
|
|
|
|
"${PREFIX}.boot-armhf+${subarch}.img"
|
|
|
|
|
# drop this following line once cdimage can handle -boot-*.img
|
|
|
|
|
cp -v "${PREFIX}.boot-armhf+${subarch}.img" "${PREFIX}.bootimg-${subarch}"
|
|
|
|
|
done
|
|
|
|
|
fi
|
|
|
|
|
if [ "$ARCH" = "i386" ]; then
|
|
|
|
|
touchsubarches="generic_x86"
|
|
|
|
|
for subarch in $touchsubarches; do
|
|
|
|
|
cp -v chroot/usr/share/android/product/*-preinstalled-system-i386+${subarch}.img\
|
|
|
|
|
"${PREFIX}.system-i386+${subarch}.img"
|
|
|
|
|
cp -v chroot/usr/share/android/product/*-preinstalled-recovery-i386+${subarch}.img\
|
|
|
|
|
"${PREFIX}.recovery-i386+${subarch}.img"
|
|
|
|
|
cp -v 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 -v "${PREFIX}.boot-i386+${subarch}.img" "${PREFIX}.bootimg-${subarch}"
|
|
|
|
|
done
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
lb chroot_devpts remove "$@"
|
|
|
|
|
lb chroot_sysfs remove "$@"
|
|
|
|
|
lb chroot_proc remove "$@"
|
|
|
|
|
|
|
|
|
|
rm -rf chroot/etc/init/*.override
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
# LTSP chroot building (only in 32bit and for Edubuntu (DVD))
|
|
|
|
|
case $PROJECT in
|
|
|
|
|
edubuntu-dvd)
|
|
|
|
|