Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
付燕斌
android-image-pack-tool
Commits
5f5f1f44
Commit
5f5f1f44
authored
Sep 13, 2024
by
fuyanbin
Browse files
fix: 获取rockchip 型号
parent
6e3cf028
Pipeline
#55408
passed with stages
in 8 seconds
Changes
1
Pipelines
3
Hide whitespace changes
Inline
Side-by-side
pack-ci.sh
View file @
5f5f1f44
...
@@ -362,9 +362,12 @@ __pack_super_img() {
...
@@ -362,9 +362,12 @@ __pack_super_img() {
__get_chip_from_parameter
()
{
__get_chip_from_parameter
()
{
local
parameter_file
local
parameter_file
local
chip
local
chip
local
arg
parameter_file
=
"
$1
"
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
^^
}
chip
=
${
chip
^^
}
case
$chip
in
case
$chip
in
PX30
|
RK3358
)
PX30
|
RK3358
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment