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
adam.huang
Config
Commits
28e2a34f
Unverified
Commit
28e2a34f
authored
May 24, 2021
by
Igor Pečovnik
Committed by
GitHub
May 24, 2021
Browse files
Fix problem when switch to edge branch (#145)
u-boot is left out even installed previously
parent
2cd59b4f
Changes
1
Hide whitespace changes
Inline
Side-by-side
debian-config-functions
View file @
28e2a34f
...
...
@@ -493,7 +493,7 @@ function other_kernel_version ()
[[
$TARGET_VERSION
==
*
next
*
]]
&&
UPGRADE_ROOT
=
"-next"
&&
UPGRADE_UBOOT
=
"next"
[[
$TARGET_VERSION
==
*
current
*
]]
&&
UPGRADE_ROOT
=
"-current"
&&
UPGRADE_UBOOT
=
"current"
[[
$TARGET_VERSION
==
*
dev
*
]]
&&
UPGRADE_ROOT
=
"-dev"
&&
UPGRADE_UBOOT
=
"dev"
[[
$TARGET_VERSION
==
*
edge
*
]]
&&
UPGRADE_ROOT
=
"-edge"
&&
UPGRADE_UBOOT
=
"
dev
"
[[
$TARGET_VERSION
==
*
edge
*
]]
&&
UPGRADE_ROOT
=
"-edge"
&&
UPGRADE_UBOOT
=
"
edge
"
# install packages
...
...
@@ -501,10 +501,10 @@ function other_kernel_version ()
TARGET_VERSION_DTB
=
${
TARGET_VERSION
/image/dtb
}
TARGET_VERSION_PRE
=
$(
echo
$TARGET_VERSION_DTB
|
cut
-f1
-d
"="
)
TARGET_VERSION_SUB
=
$(
echo
$TARGET_VERSION_DTB
|
cut
-f2
-d
"="
)
[[
-n
$(
apt-cache madison
"
$TARGET_VERSION_PRE
"
|
grep
$TARGET_VERSION_SUB
)
]]
&&
\
# installs u-boot only if exits
apt-cache s
how
linux-u-boot-
${
BOARD
}
-
${
UPGRADE_UBOOT
}
2> /dev/null
[[
$?
-eq
0
]]
&&
PACKAGE_LIST
=
$PACKAGE_LIST
" linux-u-boot-
${
BOARD
}
-
${
UPGRADE_UBOOT
}
"
if
[[
-n
$(
apt-cache madison
"
$TARGET_VERSION_PRE
"
|
grep
$TARGET_VERSION_SUB
)
]]
;
then
# installs u-boot only if exits
[[
-n
$(
apt-cache s
earch
--names-only
linux-u-boot-
${
BOARD
}
-
${
UPGRADE_UBOOT
}
)
]]
&&
PACKAGE_LIST
=
$PACKAGE_LIST
" linux-u-boot-
${
BOARD
}
-
${
UPGRADE_UBOOT
}
"
fi
PACKAGE_LIST
=
$PACKAGE_LIST
"
$TARGET_VERSION_DTB
"
echo
$PACKAGE_LIST
>
/tmp/switch_kernel.log 2>&1
...
...
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