Commit 82b0b2da authored by Guido Gunther's avatar Guido Gunther

setup_kernel: Only handle zImage on imx6

We're using an uncompressed kernel on arm64.
parent 6d64a037
......@@ -37,15 +37,17 @@ function setup_kernel()
{
local link
link=$(basename "${basedir}"/boot/vmlinuz-*)
rm -f "${basedir}/boot/zImage"
ln -s "${link}" "${basedir}/boot/zImage"
cp data/update-zImage-link "${basedir}/etc/kernel/postinst.d/"
mkdir -p tmp/
mkdir -p "${basedir}/boot/dtbs"
case "${pureos_board}" in
imx6)
fdt_source="${basedir}"/usr/lib/linux-image-*/"${fdt_file}"
link=$(basename "${basedir}"/boot/vmlinuz-*)
rm -f "${basedir}/boot/zImage"
ln -s "${link}" "${basedir}/boot/zImage"
cp data/update-zImage-link "${basedir}/etc/kernel/postinst.d/"
cp "${basedir}/boot/zImage" "tmp/"
;;
ec-som|devkit|imx8)
fdt_source="${basedir}"/usr/lib/linux-image-*/freescale/"${fdt_file}"
......@@ -55,8 +57,6 @@ function setup_kernel()
esac
cp ${fdt_source} "${basedir}/boot/dtbs/"
# Make sure we have the kernel available for tests
mkdir -p tmp/
cp "${basedir}/boot/zImage" "tmp/"
}
......
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