add support for older kernels

This commit is contained in:
Mario Fetka 2012-10-27 10:56:41 +02:00
parent 75cae710d5
commit 8d19bb772f

View File

@ -491,9 +491,12 @@ _kernel_src_compile() {
K_NASKERNEL_DEVICE="Buffalo Linkstation LiveV3 (LS-CHL)"
fi
if [ "${K_NASKERNEL_NAME}" = "buffalo_ls_chl2" ]; then
#devio > foo 'wl 0xe3a01c0a,4' 'wl 0xe3811067,4' # Linkstation XHL/CHLv2 (2.6.30)
# new Device tree no need for devio
K_NASKERNEL_DTB="kirkwood-lschlv2.dtb"
if [[ "${KV_MAJOR}${KV_MINOR}" -ge 36 ]]; then
# new Device tree no need for devio
K_NASKERNEL_DTB="kirkwood-lschlv2.dtb"
else
devio > foo 'wl 0xe3a01c0a,4' 'wl 0xe3811067,4' # Linkstation XHL/CHLv2 (2.6.30)
fi
K_NASKERNEL_TYPE="buffalo"
K_NASKERNEL_DEVICE="Buffalo LS-XHL Series"
fi
@ -539,9 +542,12 @@ _kernel_src_compile() {
K_NASKERNEL_DEVICE="Buffalo Linkstation Pro/Live"
fi
if [ "${K_NASKERNEL_NAME}" = "buffalo_ls_xhl" ]; then
#devio > foo 'wl 0xe3a01c0a,4' 'wl 0xe3811067,4' # Linkstation XHL/CHLv2 (2.6.30)
# new Device tree no need for devio
K_NASKERNEL_DTB="kirkwood-lsxhl.dtb"
if [[ "${KV_MAJOR}${KV_MINOR}" -ge 36 ]]; then
# new Device tree no need for devio
K_NASKERNEL_DTB="kirkwood-lsxhl.dtb"
else
devio > foo 'wl 0xe3a01c0a,4' 'wl 0xe3811067,4' # Linkstation XHL/CHLv2 (2.6.30)
fi
K_NASKERNEL_TYPE="buffalo"
K_NASKERNEL_DEVICE="Buffalo LS-XHL Series"
fi