@@ -82,11 +82,14 @@ rk35xx_kernel=("5.10.150")
82
82
auto_kernel=" true"
83
83
84
84
# Get the list of devices built by default
85
+ # 1.ID 2.MODEL 3.SOC 4.FDTFILE 5.UBOOT_OVERLOAD 6.MAINLINE_UBOOT 7.BOOTLOADER_IMG 8.KERNEL_BRANCH 9.PLATFORM 10.FAMILY 11.BOARD 12.BUILD
85
86
build_armbian=($( cat ${model_conf} | sed -e ' s/NA//g' -e ' s/NULL//g' -e ' s/[ ][ ]*//g' | grep -E " ^[^#].*:yes$" | awk -F' :' ' {print $11}' | sort | uniq | xargs) )
86
87
# Set the list of devices that must use the rk35xx kernel
87
88
must_kernel_rk35xx=(" rock5b" )
88
89
# Set the list of devices that must use the stable/6.x.y kernel
89
90
must_kernel_6xy=(" r66s" " r68s" " eaidk-610" )
91
+ # Set the list of devices that must use the /boot/extlinux/extlinux.conf file
92
+ must_extlinux=(" s905x-t95" " s912-t95z-plus" " s905lb-r3300l" )
90
93
91
94
# Set Armbian size (Unit: MiB, BOOT_MB >= 256, ROOT_MB >= 2048)
92
95
BOOT_MB=" 256"
@@ -619,12 +622,18 @@ refactor_files() {
619
622
sed -i " s|LABEL=ROOTFS|${uenv_rootdev} |g" ${boot_conf_file}
620
623
sed -i " s|meson.*.dtb|${FDTFILE} |g" ${boot_conf_file}
621
624
622
- # Add an alternate file (/boot/extlinux/extlinux.conf) for devices like T95Z. If needed, rename delete .bak
625
+ # Add an alternate file (/boot/extlinux/extlinux.conf)
623
626
boot_extlinux_file=" extlinux/extlinux.conf.bak"
624
- if [[ -f " ${boot_extlinux_file} " ]]; then
627
+ [[ -f " ${boot_extlinux_file} " ]] && {
625
628
sed -i " s|LABEL=ROOTFS|${uenv_rootdev} |g" ${boot_extlinux_file}
626
629
sed -i " s|meson.*.dtb|${FDTFILE} |g" ${boot_extlinux_file}
627
- fi
630
+ }
631
+
632
+ # If needed, such as t95z(s905x), rename delete .bak
633
+ rename_extlinux_file=" extlinux/extlinux.conf"
634
+ [[ -n " $( echo " ${must_extlinux[@]} " | grep -w " ${board} " ) " ]] && {
635
+ mv -f ${boot_extlinux_file} ${rename_extlinux_file}
636
+ }
628
637
}
629
638
630
639
# Process Rockchip series boot partition files
0 commit comments