Commit 7131ca44 authored by Ian Campbell's avatar Ian Campbell

Filter out linux-image-*-dbg packages from kernel selection on ARM*

parent 8b94f001
......@@ -4,7 +4,14 @@ arch_get_kernel_flavour () {
}
arch_check_usable_kernel () {
return 0
case "$1" in
*-dbg)
return 1
;;
*)
return 0
;;
esac
}
arch_get_kernel () {
......
......@@ -15,9 +15,17 @@ arch_get_kernel_flavour () {
}
arch_check_usable_kernel () {
# Subarchitecture must match exactly
if echo "$1" | grep -Eq -- "-$2(-.*)?$"; then return 0; fi
return 1
case "$1" in
*-dbg)
return 1
;;
*-$2|*-$2-*)
return 0
;;
*)
return 1
;;
esac
}
arch_get_kernel () {
......
......@@ -34,6 +34,9 @@ arch_check_usable_kernel () {
while [ $# -ge 1 ]; do
TRY="$1"
case "$NAME" in
*-dbg)
return 1
;;
*-"$TRY"-lpae | *-"$TRY"-lpae-*)
# Allow any other hyphenated suffix
if test `arch_has_lpae` = y ; then
......
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