Commit d5a5f448 authored by Dorota Czaplejewicz's avatar Dorota Czaplejewicz

Merge branch 'setup-kernel' into 'master'

Fix kernel setup on devkit

Closes #23

See merge request !62
parents eb7f6303 98510b6f
Pipeline #3134 passed with stage
in 18 seconds
......@@ -175,6 +175,7 @@ sudo pureos_board="${pureos_board}" \
build_tarball="${build_tarball}" \
apt_sources="${escaped_apt_sources}" \
ci_pkgs="${ci_pkgs}" \
kernel_deb="${kernel_deb}" \
vmdebootstrap \
--enable-dhcp \
--verbose --image "${bootimg}" --log "tmp/${bootimg}.log" --size 3600M \
......
......@@ -37,26 +37,31 @@ 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)
ec-som|imx8)
fdt_source="${basedir}"/usr/lib/linux-image-*/freescale/"${fdt_file}"
cp "${basedir}/boot/${link}" "${basedir}/boot/Image.gz"
gunzip "${basedir}/boot/Image.gz"
;;
devkit*)
fdt_source="${basedir}"/usr/lib/linux-image-*/freescale/"${fdt_file}"
# Reconfigure kernel package to trigger kernel hooks
chroot "${basedir}" dpkg-reconfigure $(basename ${kernel_deb%%_*})
;;
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