Commit 98510b6f authored by Guido Gunther's avatar Guido Gunther
Browse files

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
Pipeline #3103 passed with stage
in 14 seconds
...@@ -175,6 +175,7 @@ sudo pureos_board="${pureos_board}" \ ...@@ -175,6 +175,7 @@ sudo pureos_board="${pureos_board}" \
build_tarball="${build_tarball}" \ build_tarball="${build_tarball}" \
apt_sources="${escaped_apt_sources}" \ apt_sources="${escaped_apt_sources}" \
ci_pkgs="${ci_pkgs}" \ ci_pkgs="${ci_pkgs}" \
kernel_deb="${kernel_deb}" \
vmdebootstrap \ vmdebootstrap \
--enable-dhcp \ --enable-dhcp \
--verbose --image "${bootimg}" --log "tmp/${bootimg}.log" --size 3600M \ --verbose --image "${bootimg}" --log "tmp/${bootimg}.log" --size 3600M \
......
...@@ -49,11 +49,16 @@ function setup_kernel() ...@@ -49,11 +49,16 @@ function setup_kernel()
cp data/update-zImage-link "${basedir}/etc/kernel/postinst.d/" cp data/update-zImage-link "${basedir}/etc/kernel/postinst.d/"
cp "${basedir}/boot/zImage" "tmp/" cp "${basedir}/boot/zImage" "tmp/"
;; ;;
ec-som|devkit|imx8) ec-som|imx8)
fdt_source="${basedir}"/usr/lib/linux-image-*/freescale/"${fdt_file}" fdt_source="${basedir}"/usr/lib/linux-image-*/freescale/"${fdt_file}"
cp "${basedir}/boot/${link}" "${basedir}/boot/Image.gz" cp "${basedir}/boot/${link}" "${basedir}/boot/Image.gz"
gunzip "${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 esac
cp ${fdt_source} "${basedir}/boot/dtbs/" cp ${fdt_source} "${basedir}/boot/dtbs/"
# Make sure we have the kernel available for tests # Make sure we have the kernel available for tests
......
Supports Markdown
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