Skip to content

Commit 1de7149

Browse files
committed
Remove <MODEL_NAME> label
1 parent 5acb717 commit 1de7149

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

build-armbian/armbian-files/common-files/usr/sbin/armbian-fix

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ sudo systemctl mask sleep.target suspend.target hibernate.target hybrid-sleep.ta
6363
# Get welcome banner value
6464
platform_name="$(cat ${ophub_release_file} | grep -E "^PLATFORM=" | cut -d"'" -f2)"
6565
soc_name="$(cat ${ophub_release_file} | grep -E "^SOC=" | cut -d"'" -f2 | sed -e "s|\b[a-z]|\U&|g")"
66-
model_name="$(cat ${ophub_release_file} | grep -E "^MODEL_NAME=" | cut -d"'" -f2 | sed -e "s|\b[a-z]|\U&|g")"
66+
board_name="$(cat ${ophub_release_file} | grep -E "^BOARD=" | cut -d"'" -f2 | sed -e "s|\b[a-z]|\U&|g")"
6767

6868
# Adjust parameter name(After 2022.12.03)
6969
[[ -n "$(cat ${ophub_release_file} | grep -E "^ANDROID_UBOOT=")" ]] && sed -i "s|ANDROID_UBOOT=|BOOTLOADER_IMG=|g" ${ophub_release_file} && echo "25. Adjust the ANDROID_UBOOT name"
@@ -76,7 +76,7 @@ sudo systemctl mask sleep.target suspend.target hibernate.target hybrid-sleep.ta
7676

7777
# Fix custom banner name
7878
[[ "${platform_name}" == "amlogic" ]] && bd_name="Aml ${soc_name}"
79-
[[ "${platform_name}" == "rockchip" ]] && bd_name="${model_name}"
79+
[[ "${platform_name}" == "rockchip" ]] && bd_name="${board_name}"
8080
[[ -f "${armbian_release_file}" && -n "${bd_name}" ]] && sed -i "s|BOARD_NAME=.*|BOARD_NAME=\"${bd_name}\"|g" ${armbian_release_file} && echo "28. Fix custom board name: ${bd_name}"
8181

8282
# Disable ttyFIQ0 (ttyS2)

rebuild

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -376,7 +376,6 @@ confirm_version() {
376376
[[ -n "${board_conf}" ]] || error_msg "[ ${board} ] config is missing!"
377377

378378
# 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
379-
MODEL_NAME="$(echo ${board_conf} | awk -F':' '{print $2}')"
380379
SOC="$(echo ${board_conf} | awk -F':' '{print $3}')"
381380
FDTFILE="$(echo ${board_conf} | awk -F':' '{print $4}')"
382381
UBOOT_OVERLOAD="$(echo ${board_conf} | awk -F':' '{print $5}')"
@@ -421,7 +420,7 @@ confirm_version() {
421420
# Define platform variables for Rockchip boxes
422421
[[ "${PLATFORM}" == "rockchip" ]] && {
423422
# Set up the welcome board
424-
bd_name="${MODEL_NAME}"
423+
bd_name="${board}"
425424
# Set Armbian image file parameters
426425
partition_table_type="gpt"
427426
bootfs_type="ext4"
@@ -704,7 +703,6 @@ refactor_files() {
704703
echo "VERSION_CODEID='${release_codeid}'" >>${ophub_release_file}
705704
echo "VERSION_CODENAME='${release_codename}'" >>${ophub_release_file}
706705
echo "SOC='${SOC}'" >>${ophub_release_file}
707-
echo "MODEL_NAME='${MODEL_NAME}'" >>${ophub_release_file}
708706
echo "FDTFILE='${FDTFILE}'" >>${ophub_release_file}
709707
echo "UBOOT_OVERLOAD='${UBOOT_OVERLOAD}'" >>${ophub_release_file}
710708
echo "MAINLINE_UBOOT='/usr/lib/u-boot/${MAINLINE_UBOOT}'" >>${ophub_release_file}

0 commit comments

Comments
 (0)