Commit 5f5f1f44 authored by fuyanbin's avatar fuyanbin
Browse files

fix: 获取rockchip 型号

parent 6e3cf028
Pipeline #55408 passed with stages
in 8 seconds
......@@ -362,9 +362,12 @@ __pack_super_img() {
__get_chip_from_parameter() {
local parameter_file
local chip
local arg
parameter_file="$1"
chip=$(grep "MACHINE:" "$parameter_file" | grep -P -o "rk\d+")
chip=$(grep "MACHINE:" "$parameter_file" | grep -i -P -o "rk\d+")
if [[ -z "$chip" ]]
then
chip=$(grep "MACHINE_MODEL:" "$parameter_file" | grep -i -P -o "rk\d+")
fi
chip=${chip^^}
case $chip in
PX30 | RK3358)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment