|
|
|
@ -863,7 +863,8 @@ if [ "$NUMFLAVOURS" = 1 ] && [ "$LB_LINUX_FLAVOURS" != "none" ]; then
|
|
|
|
|
fi
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
if [ "$SUBARCH" = "ac100" ]; then
|
|
|
|
|
case $SUBARCH in
|
|
|
|
|
ac100)
|
|
|
|
|
# create the md5sum and size files for which we are actually doing all this
|
|
|
|
|
md5sum $PREFIX.rootfs.tar.gz >chroot/installer.md5
|
|
|
|
|
wc -c $PREFIX.rootfs.tar.gz >chroot/installer.size
|
|
|
|
@ -891,8 +892,23 @@ if [ "$SUBARCH" = "ac100" ]; then
|
|
|
|
|
|
|
|
|
|
cp "chroot/boot/installer-${KVERS}.img" "$PREFIX.bootimg-$FLAVOUR"
|
|
|
|
|
ln -sf "$PREFIX.bootimg-$FLAVOUR" "$PREFIX.bootimg"
|
|
|
|
|
;;
|
|
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
raspi2|raspi3)
|
|
|
|
|
# copy the kernel and initrd to a predictable directory for
|
|
|
|
|
# ubuntu-image consumption. In some cases, like in pi2/3
|
|
|
|
|
# u-boot, the bootloader needs to contain the kernel and initrd,
|
|
|
|
|
# so during rootfs build we copy it over to a directory that
|
|
|
|
|
# ubuntu-image looks for and shoves into the bootloader
|
|
|
|
|
# partition.
|
|
|
|
|
UBOOT_BOOT="image/boot/uboot"
|
|
|
|
|
|
|
|
|
|
mkdir -p $UBOOT_BOOT
|
|
|
|
|
|
|
|
|
|
cp $PREFIX.initrd $UBOOT_BOOT/initrd.img || true
|
|
|
|
|
cp $PREFIX.kernel $UBOOT_BOOT/vmlinuz || true
|
|
|
|
|
;;
|
|
|
|
|
esac
|
|
|
|
|
|
|
|
|
|
if [ "$PROJECT" = "ubuntu-touch" ] || [ "$PROJECT" = "ubuntu-touch-custom" ]; then
|
|
|
|
|
sourceslist="chroot/etc/apt/sources.list"
|
|
|
|
|