90-loaderentry: support installing device trees
authorEmil Renner Berthing <systemd@esmil.dk>
Sat, 29 Jul 2023 20:26:54 +0000 (22:26 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 7 Aug 2023 12:54:23 +0000 (14:54 +0200)
commit2bca841137833edeaf3779542d6475f0dc3aa5a7
tree463ff3b720be3c96fea1fe6345829922a355e8e1
parentf3d1d7609d2008086f0f8369d9f842a5c09024b2
90-loaderentry: support installing device trees

Like the cmdline file we look for a devicetree file in
$KERNEL_INSTALL_CONF_ROOT, /etc/kernel and /usr/lib/kernel. If it is
present we look for the specified device tree that comes with the kernel
we're adding and install it into $ENTRY_DIR_ABS and add a devicetree
stanza to the loader entry.

Unfortunately it seems there is no common consensus on where to install
device tree blobs, so we have to look in a few different places for it.
src/kernel-install/90-loaderentry.install.in