Enable using ubuntu-server-raspi, clean up handling of raspi setup.

raspi-server-seed
Łukasz 'sil2100' Zemczak 4 years ago
parent b9eb0aaee3
commit 52f3b69331

@ -812,15 +812,18 @@ case $PROJECT in
BINARY_REMOVE_LINUX=false BINARY_REMOVE_LINUX=false
OPTS="${OPTS:+$OPTS }--initramfs=none" OPTS="${OPTS:+$OPTS }--initramfs=none"
case $ARCH in case "$ARCH+${SUBARCH:-}" in
armhf) *+raspi)
add_task install ubuntu-server-raspi
;;
armhf*)
KERNEL_FLAVOURS=generic-lpae KERNEL_FLAVOURS=generic-lpae
add_package install flash-kernel add_package install flash-kernel
;; ;;
arm64) arm64*)
add_package install flash-kernel add_package install flash-kernel
;; ;;
riscv64) riscv64*)
if [ -n "$SUBARCH" ]; then if [ -n "$SUBARCH" ]; then
KERNEL_FLAVOURS=generic KERNEL_FLAVOURS=generic
fi fi
@ -938,18 +941,16 @@ case $PROJECT in
;; ;;
esac esac
case $ARCH in case "$ARCH+${SUBARCH:-}" in
armhf|arm64) arm*+raspi)
KERNEL_FLAVOURS="${SUBARCH:-$KERNEL_FLAVOURS}" # Common configuration for all Raspberry Pi image variants (server,
case $SUBARCH in # desktop etc.)
raspi) KERNEL_FLAVOURS="$SUBARCH"
# Generic Raspberry Pi images COMPONENTS='main restricted universe multiverse'
COMPONENTS='main restricted universe multiverse' # Most Pi-specific package installation is handled via the seeds in the
add_package install linux-firmware-raspi2 pi-bluetooth u-boot-rpi flash-kernel u-boot-tools wpasupplicant ubuntu-raspi-settings # per-project/subproject cases above
BINARY_REMOVE_LINUX=false add_package install linux-firmware-raspi2 pi-bluetooth u-boot-rpi u-boot-tool
;; BINARY_REMOVE_LINUX=false
esac
;; ;;
esac esac

Loading…
Cancel
Save