|
1 | 1 | diff --git a/scripts/build/binary_grub_cfg b/scripts/build/binary_grub_cfg
|
2 |
| -index c41a4fba4..f7c91b6f7 100755 |
| 2 | +index c41a4fba4..9d7fd0bdc 100755 |
3 | 3 | --- a/scripts/build/binary_grub_cfg
|
4 | 4 | +++ b/scripts/build/binary_grub_cfg
|
5 |
| -@@ -54,6 +54,30 @@ Grub_live_menu_entry() { |
| 5 | +@@ -54,6 +54,10 @@ Grub_live_menu_entry() { |
6 | 6 |
|
7 | 7 | cat >> "${LIVE_ENTRIES_TMP}" <<END
|
8 | 8 | menuentry "${LABEL}"${HOTKEY} {
|
9 |
| -+ smbios -t 1 -s 5 --set=productname |
10 |
| -+ if [ "\$productname" == "ROCK 5 Model B" ];then |
11 |
| -+ devicetree $(dirname $KERNEL)/dtb/rockchip/rk3588-rock-5b.dtb |
12 |
| -+ elif [ "\$productname" == "ROCK 5 Model A" ];then |
13 |
| -+ devicetree $(dirname $KERNEL)/dtb/rockchip/rk3588s-rock-5a.dtb |
14 |
| -+ elif [ "\$productname" == "Indiedroid Nova" ];then |
15 |
| -+ devicetree $(dirname $KERNEL)/dtb/rockchip/rk3588s-9tripod-linux.dtb |
16 |
| -+ elif [ "\$productname" == "NanoPC T6" ];then |
17 |
| -+ devicetree $(dirname $KERNEL)/dtb/rockchip/rk3588-nanopc-t6.dtb |
18 |
| -+ elif [ "\$productname" == "NanoPi R6S" ];then |
19 |
| -+ devicetree $(dirname $KERNEL)/dtb/rockchip/rk3588s-nanopi-r6s.dtb |
20 |
| -+ elif [ "\$productname" == "Edge2" ];then |
21 |
| -+ devicetree $(dirname $KERNEL)/dtb/rockchip/rk3588s-khadas-edge2.dtb |
22 |
| -+ elif [ "\$productname" == "R58 Mini" ];then |
23 |
| -+ devicetree $(dirname $KERNEL)/dtb/rockchip/rk3588-blueberry-minipc-linux.dtb |
24 |
| -+ elif [ "\$productname" == "R58X" ];then |
25 |
| -+ devicetree $(dirname $KERNEL)/dtb/rockchip/rk3588-blueberry-edge-v10-linux.dtb |
26 |
| -+ elif [ "\$productname" == "Orange Pi 5" ];then |
27 |
| -+ devicetree $(dirname $KERNEL)/dtb/rockchip/rk3588s-orangepi-5.dtb |
28 |
| -+ elif [ "\$productname" == "Orange Pi 5 Plus" ];then |
29 |
| -+ devicetree $(dirname $KERNEL)/dtb/rockchip/rk3588-orangepi-5-plus.dtb |
30 |
| -+ elif [ "\$productname" == "H88K" ];then |
31 |
| -+ devicetree $(dirname $KERNEL)/dtb/rockchip/rk3588-hinlink-h88k.dtb |
| 9 | ++ smbios -t 11 -s 4 --set=devicetreename |
| 10 | ++ if [ -f "\$devicetreename" ];then |
| 11 | ++ devicetree $(dirname $KERNEL)/dtb/rockchip/\$devicetreename |
32 | 12 | + fi
|
33 | 13 | linux $KERNEL $APPEND
|
34 | 14 | initrd $INITRD
|
35 | 15 | }
|
36 |
| -@@ -114,7 +138,7 @@ fi |
37 |
| - |
38 |
| - # Default entries |
39 |
| - DEFAULT_FLAVOUR="$(echo ${LB_LINUX_FLAVOURS} | awk '{ print $1 }')" |
40 |
| --DEFAULT_KERNEL="$(basename chroot/boot/vmlinuz-*${DEFAULT_FLAVOUR})" |
41 |
| -+DEFAULT_KERNEL="$(basename chroot/boot/vmlinuz-*)" |
42 |
| - DEFAULT_INITRD="initrd.img-$(echo ${DEFAULT_KERNEL} | sed -e 's|vmlinuz-||')" |
43 |
| - |
44 |
| - KERNEL_LIVE="/${INITFS}/${DEFAULT_KERNEL}" |
0 commit comments