mirror of
https://git.launchpad.net/livecd-rootfs
synced 2025-05-08 01:11:31 +00:00
Remove unneeded code and code duplication, add comments.
This commit is contained in:
parent
6ac3384f34
commit
2e3c7d050c
@ -573,7 +573,7 @@ case $PROJECT:${SUBPROJECT:-} in
|
|||||||
if [ "$PROJECT:$SUBPROJECT" = "ubuntu-core:system-image" ]; then
|
if [ "$PROJECT:$SUBPROJECT" = "ubuntu-core:system-image" ]; then
|
||||||
case $ARCH in
|
case $ARCH in
|
||||||
armhf)
|
armhf)
|
||||||
subarches="generic raspi2 raspi3"
|
subarches="generic raspi2"
|
||||||
;;
|
;;
|
||||||
arm64)
|
arm64)
|
||||||
subarches="generic dragonboard"
|
subarches="generic dragonboard"
|
||||||
@ -609,9 +609,7 @@ case $PROJECT:${SUBPROJECT:-} in
|
|||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
armhf)
|
armhf)
|
||||||
if [ "$devarch" = "raspi2" ]; then
|
if [ "$devarch" = "raspi2" ] || [ "$devarch" = "raspi3" ]; then
|
||||||
linux_package="linux-image-raspi2"
|
|
||||||
elif [ "$devarch" = "raspi3" ]; then
|
|
||||||
linux_package="linux-image-raspi2"
|
linux_package="linux-image-raspi2"
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
@ -903,6 +901,12 @@ case $SUBARCH in
|
|||||||
;;
|
;;
|
||||||
|
|
||||||
raspi2|raspi3)
|
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"
|
UBOOT_BOOT="image/boot/uboot"
|
||||||
|
|
||||||
mkdir -p $UBOOT_BOOT
|
mkdir -p $UBOOT_BOOT
|
||||||
|
@ -801,17 +801,11 @@ case $ARCH in
|
|||||||
add_package live ac100-tarball-installer
|
add_package live ac100-tarball-installer
|
||||||
BINARY_REMOVE_LINUX=false
|
BINARY_REMOVE_LINUX=false
|
||||||
;;
|
;;
|
||||||
raspi2)
|
raspi2|raspi3)
|
||||||
COMPONENTS='main restricted universe multiverse'
|
COMPONENTS='main restricted universe multiverse'
|
||||||
add_package install linux-firmware-raspi2 u-boot-rpi flash-kernel u-boot-tools
|
add_package install linux-firmware-raspi2 u-boot-rpi flash-kernel u-boot-tools
|
||||||
BINARY_REMOVE_LINUX=false
|
BINARY_REMOVE_LINUX=false
|
||||||
;;
|
;;
|
||||||
raspi3)
|
|
||||||
COMPONENTS='main restricted universe multiverse'
|
|
||||||
KERNEL_FLAVOURS=raspi2
|
|
||||||
add_package install linux-firmware-raspi2 u-boot-rpi flash-kernel u-boot-tools
|
|
||||||
BINARY_REMOVE_LINUX=false
|
|
||||||
;;
|
|
||||||
esac
|
esac
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
Loading…
x
Reference in New Issue
Block a user