Commit 98510b6f authored by Guido Günther's avatar Guido Günther

setup_kernel: Don't setup kernel on devkit manually

We handle this via librem5-devkit-base to make the installer more slime
and have less cruft in the image builder.

This way we already create an initramfs which can later on be used by
flash-kernel.

Closes: #23
parent 82b0b2da
......@@ -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 \
......
......@@ -49,11 +49,16 @@ function setup_kernel()
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
......
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