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
0b5bc630
Unverified
Commit
0b5bc630
authored
Jul 02, 2020
by
Igor Pečovnik
Committed by
GitHub
Jul 02, 2020
Browse files
Fix kernel switching. (#105)
* Fixing some issues * More
parent
d84d4143
Changes
1
Show whitespace changes
Inline
Side-by-side
debian-config-functions
View file @
0b5bc630
...
@@ -374,16 +374,14 @@ function reload_bsp(){
...
@@ -374,16 +374,14 @@ function reload_bsp(){
PACKAGE_PURGE
=
"linux-image* linux-dtb*"
PACKAGE_PURGE
=
"linux-image* linux-dtb*"
# create install and remove logic
# create install and remove logic
command
=
$(
apt-get
--download-only
--simulate
--allow-downgrades
-y
--no-install-recommends
install
linux-
${
DISTROID
}
-root-
${
BRANCH
}
-
${
BOARD
}
2>/dev/null |
grep
"not possible"
)
command
=
$(
apt-get
--download-only
--simulate
--allow-downgrades
-y
--no-install-recommends
install
linux-
${
DISTROID
}
-root-
${
BRANCH
}
-
${
BOARD
}
2>/dev/null
)
errcode
=
$?
if
[[
$?
-eq
0
]]
;
then
if
[[
$errcode
-ne
0
]]
;
then
PACKAGE_INSTALL+
=
" linux-
${
DISTROID
}
-root-
${
BRANCH
}
-
${
BOARD
}
"
PACKAGE_INSTALL+
=
" linux-
${
DISTROID
}
-root-
${
BRANCH
}
-
${
BOARD
}
"
PACKAGE_PURGE+
=
" linux-
${
DISTROID
}
-root*"
PACKAGE_PURGE+
=
" linux-
${
DISTROID
}
-root*"
fi
fi
command
=
$(
apt-get
--download-only
--simulate
--reinstall
--allow-downgrades
-y
--no-install-recommends
install
linux-u-boot-
${
BOARD
}
-
${
BRANCH
}
2>/dev/null |
grep
"not possible"
)
command
=
$(
apt-get
--download-only
--simulate
--reinstall
--allow-downgrades
-y
--no-install-recommends
install
linux-u-boot-
${
BOARD
}
-
${
BRANCH
}
2>/dev/null
)
errcode
=
$?
if
[[
$?
-eq
0
]]
;
then
if
[[
$errcode
-ne
0
]]
;
then
PACKAGE_INSTALL+
=
" linux-u-boot-
${
BOARD
}
-
${
BRANCH
}
"
PACKAGE_INSTALL+
=
" linux-u-boot-
${
BOARD
}
-
${
BRANCH
}
"
PACKAGE_PURGE+
=
" linux-u-boot-
${
BOARD
}
-*"
PACKAGE_PURGE+
=
" linux-u-boot-
${
BOARD
}
-*"
fi
fi
...
@@ -397,6 +395,7 @@ function reload_bsp(){
...
@@ -397,6 +395,7 @@ function reload_bsp(){
PACKAGE_INSTALL+
=
" linux-headers-
${
BRANCH
}
-
${
FAMILY
}
"
PACKAGE_INSTALL+
=
" linux-headers-
${
BRANCH
}
-
${
FAMILY
}
"
PACKAGE_PURGE+
=
" linux-headers*"
PACKAGE_PURGE+
=
" linux-headers*"
fi
fi
debconf-apt-progress
--
apt
--download-only
--allow-downgrades
-y
--no-install-recommends
install
$PACKAGE_INSTALL
debconf-apt-progress
--
apt
--download-only
--allow-downgrades
-y
--no-install-recommends
install
$PACKAGE_INSTALL
# if download is ok, remove old packages
# if download is ok, remove old packages
...
...
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