1
arch_get_kernel_flavour () {
3
4kc-malta|5kc-malta|loongson-2e|loongson-2f|r3k-kn02|r4k-kn04|sb1-bcm91250a|sb1a-bcm91480b)
13
warning "Unknown $ARCH subarchitecture '$SUBARCH'."
18
arch_check_usable_kernel () {
19
# Subarchitecture must match exactly
20
if echo "$1" | grep -Eq -- "-$2(-.*)?$"; then return 0; fi
21
# The 4kc-malta kernel will do for 5kc-malta as well
22
if [ "$2" = 5kc-malta ] && \
23
echo "$1" | grep -Eq -- "-4kc-malta(-.*)?$"; then
30
case "$KERNEL_MAJOR" in
34
echo "linux-image-$KERNEL_MAJOR-$1"
38
echo "linux-image-$KERNEL_MAJOR-$1"
41
warning "Unsupported kernel major '$KERNEL_MAJOR'."