mirror of
https://github.com/flatcar/scripts.git
synced 2025-12-23 02:01:34 +01:00
Having too many variables is confusing, so use the ones already provided by upstream. linux-info.eclass uses KERNEL_DIR (if set) as the kernel sources directory and sets KV_DIR to that for use elsewhere. If KERNEL_DIR is unset, it checks the /usr/src/linux symlink. While we could rely on the symlink, we want to be sure that coreos-modules and coreos-kernel are built against the matching kernel version. KV_OUT_DIR is the kernel output directory. It is automatically set by linux-info.eclass, and it will never leave it empty. Signed-off-by: James Le Cuirot <jlecuirot@microsoft.com>