summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2023-11-29 16:46:56 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2023-11-29 20:56:57 +0000
commit20337e206400b97b8361e8b726438f14c3a69cbf (patch)
tree3dccef49e5cd85a8c8bdf590065327e3edd40d02 /scripts
parent10def5ea92a89e94fddc22781e14a3fccb76a48d (diff)
downloadaports-20337e206400b97b8361e8b726438f14c3a69cbf.zip
scripts: only a single kernel flavor for all rpi models.
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/mkimg.arm.sh88
-rwxr-xr-xscripts/mkimg.netboot.sh6
2 files changed, 14 insertions, 80 deletions
diff --git a/scripts/mkimg.arm.sh b/scripts/mkimg.arm.sh
index dc3bbc41010..31dd966045f 100755
--- a/scripts/mkimg.arm.sh
+++ b/scripts/mkimg.arm.sh
@@ -9,81 +9,20 @@ rpi_gen_cmdline() {
}
rpi_gen_config() {
- cat <<-EOF
- # do not modify this file as it will be overwritten on upgrade.
- # create and/or modify usercfg.txt instead.
- # https://www.raspberrypi.com/documentation/computers/config_txt.html
- EOF
+ local arm_64bit=0
case "$ARCH" in
- armhf)
- cat <<-EOF
- [pi0]
- kernel=boot/vmlinuz-rpi
- initramfs boot/initramfs-rpi
- [pi0w]
- kernel=boot/vmlinuz-rpi
- initramfs boot/initramfs-rpi
- [pi1]
- kernel=boot/vmlinuz-rpi
- initramfs boot/initramfs-rpi
- [pi02]
- kernel=boot/vmlinuz-rpi2
- initramfs boot/initramfs-rpi2
- [pi2]
- kernel=boot/vmlinuz-rpi2
- initramfs boot/initramfs-rpi2
- [pi3]
- kernel=boot/vmlinuz-rpi2
- initramfs boot/initramfs-rpi2
- [pi3+]
- kernel=boot/vmlinuz-rpi2
- initramfs boot/initramfs-rpi2
- [all]
- include usercfg.txt
- EOF
- ;;
- armv7)
- cat <<-EOF
- [pi02]
- kernel=boot/vmlinuz-rpi2
- initramfs boot/initramfs-rpi2
- [pi2]
- kernel=boot/vmlinuz-rpi2
- initramfs boot/initramfs-rpi2
- [pi3]
- kernel=boot/vmlinuz-rpi2
- initramfs boot/initramfs-rpi2
- [pi3+]
- kernel=boot/vmlinuz-rpi2
- initramfs boot/initramfs-rpi2
- [pi4]
- kernel=boot/vmlinuz-rpi4
- initramfs boot/initramfs-rpi4
- [all]
- include usercfg.txt
- EOF
- ;;
- aarch64)
- cat <<-EOF
- [pi02]
- kernel=boot/vmlinuz-rpi
- initramfs boot/initramfs-rpi
- [pi3]
- kernel=boot/vmlinuz-rpi
- initramfs boot/initramfs-rpi
- [pi3+]
+ aarch64) arm_64bit=1;;
+ esac
+ cat <<-EOF
+ # do not modify this file as it will be overwritten on upgrade.
+ # create and/or modify usercfg.txt instead.
+ # https://www.raspberrypi.com/documentation/computers/config_txt.html
+
kernel=boot/vmlinuz-rpi
initramfs boot/initramfs-rpi
- [pi4]
- enable_gic=1
- kernel=boot/vmlinuz-rpi4
- initramfs boot/initramfs-rpi4
- [all]
- arm_64bit=1
+ arm_64bit=$arm_64bit
include usercfg.txt
- EOF
- ;;
- esac
+ EOF
}
build_rpi_config() {
@@ -101,16 +40,11 @@ profile_rpi() {
profile_base
title="Raspberry Pi"
desc="Includes Raspberry Pi kernel.
- Designed for RPI 1, 2, 3 and 4.
+ Designed for RPI 1, 2, 3, 4 and 5
And much more..."
image_ext="tar.gz"
arch="aarch64 armhf armv7"
kernel_flavors="rpi"
- case "$ARCH" in
- aarch64) kernel_flavors="rpi rpi4";;
- armhf) kernel_flavors="rpi rpi2";;
- armv7) kernel_flavors="rpi2 rpi4";;
- esac
kernel_cmdline="console=tty1"
initfs_features="base squashfs mmc usb kms dhcp https"
hostname="rpi"
diff --git a/scripts/mkimg.netboot.sh b/scripts/mkimg.netboot.sh
index a781c7c9995..783c4629088 100755
--- a/scripts/mkimg.netboot.sh
+++ b/scripts/mkimg.netboot.sh
@@ -14,9 +14,9 @@ profile_netboot() {
"
arch="aarch64 armhf armv7 ppc64le x86 x86_64 s390x"
case "$ARCH" in
- aarch64) kernel_flavors="lts rpi rpi4 virt";;
- armhf) kernel_flavors="rpi rpi2";;
- armv7) kernel_flavors="lts rpi rpi2";;
+ armhf) kernel_flavors="rpi";;
+ armv7) kernel_flavors="lts rpi";;
+ aarch64) kernel_flavors="lts virt rpi";;
x86_64) kernel_flavors="lts virt";;
*) kernel_flavors="lts";;
esac