add support for armv6 kernels
This commit is contained in:
parent
2e5996b568
commit
05c1d4007b
@ -511,6 +511,8 @@ _kernel_src_compile() {
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
K_NASKERNEL_DTB="none"
|
K_NASKERNEL_DTB="none"
|
||||||
|
|
||||||
|
#################################### ARM V5 ######################################
|
||||||
# Buffalo anounced a new box named Pro Live (video transcode streaming)
|
# Buffalo anounced a new box named Pro Live (video transcode streaming)
|
||||||
# so the old ls_pro_live has to be split to ls_pro ls_live
|
# so the old ls_pro_live has to be split to ls_pro ls_live
|
||||||
# for now let it stay but a move schould be done to ls_pro
|
# for now let it stay but a move schould be done to ls_pro
|
||||||
@ -591,6 +593,31 @@ _kernel_src_compile() {
|
|||||||
K_NASKERNEL_DEVICE="Buffalo Linkstation LS-XHL"
|
K_NASKERNEL_DEVICE="Buffalo Linkstation LS-XHL"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
#################################### ARM V6 ######################################
|
||||||
|
# oxnas
|
||||||
|
if [ "${K_NASKERNEL_NAME}" = "medion_stg212" ]; then
|
||||||
|
K_NASKERNEL_TYPE="default"
|
||||||
|
K_NASKERNEL_DEVICE="Oxford NAS"
|
||||||
|
K_GENKERNEL_ARGS+=" --kernel-target=uImage --kernel-binary=arch/arm/boot/uImage"
|
||||||
|
fi
|
||||||
|
if [ "${K_NASKERNEL_NAME}" = "pogoplug_pro" ]; then
|
||||||
|
K_NASKERNEL_TYPE="default"
|
||||||
|
K_NASKERNEL_DEVICE="Oxford NAS"
|
||||||
|
K_GENKERNEL_ARGS+=" --kernel-target=uImage --kernel-binary=arch/arm/boot/uImage"
|
||||||
|
fi
|
||||||
|
if [ "${K_NASKERNEL_NAME}" = "pogoplug_pro_pci" ]; then
|
||||||
|
K_NASKERNEL_TYPE="default"
|
||||||
|
K_NASKERNEL_DEVICE="Oxford NAS"
|
||||||
|
K_GENKERNEL_ARGS+=" --kernel-target=uImage --kernel-binary=arch/arm/boot/uImage"
|
||||||
|
fi
|
||||||
|
if [ "${K_NASKERNEL_NAME}" = "iomega_hmnd_ce" ]; then
|
||||||
|
K_NASKERNEL_TYPE="default"
|
||||||
|
K_NASKERNEL_DEVICE="Oxford NAS"
|
||||||
|
K_GENKERNEL_ARGS+=" --kernel-target=uImage --kernel-binary=arch/arm/boot/uImage"
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
#################################### ARM V7 ######################################
|
||||||
# Freescale
|
# Freescale
|
||||||
if [ "${K_NASKERNEL_NAME}" = "freescale_mx53_loco" ]; then
|
if [ "${K_NASKERNEL_NAME}" = "freescale_mx53_loco" ]; then
|
||||||
K_NASKERNEL_TYPE="default"
|
K_NASKERNEL_TYPE="default"
|
||||||
@ -649,6 +676,15 @@ _kernel_src_compile() {
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ "${K_NASKERNEL_TYPE}" = "default" ]; then
|
||||||
|
einfo "Rename Kernel Image for consistency"
|
||||||
|
mv "${WORKDIR}"/boot/kernel-genkernel-${ARCH}-${KV_FULL} "${WORKDIR}"/boot/uImage-genkernel-${ARCH}-${KV_FULL}
|
||||||
|
einfo "Create uInitrd with correct start address"
|
||||||
|
mkimage -A arm -O linux -T ramdisk -C none -a 0x00000000 -e 0x00000000 -n initrd-${KV_FULL} \
|
||||||
|
-d "${WORKDIR}"/boot/initramfs-genkernel-${ARCH}-${KV_FULL} "${WORKDIR}"/boot/uInitramfs-genkernel-${ARCH}-${KV_FULL}
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
# cleanup
|
# cleanup
|
||||||
rm -rf foo zImage.new ${K_NASKERNEL_DTB}
|
rm -rf foo zImage.new ${K_NASKERNEL_DTB}
|
||||||
rm "${WORKDIR}"/boot/kernel-genkernel-${ARCH}-${KV_FULL} "${WORKDIR}"/boot/initramfs-genkernel-${ARCH}-${KV_FULL}
|
rm "${WORKDIR}"/boot/kernel-genkernel-${ARCH}-${KV_FULL} "${WORKDIR}"/boot/initramfs-genkernel-${ARCH}-${KV_FULL}
|
||||||
|
Loading…
Reference in New Issue
Block a user