]> git.ipfire.org Git - thirdparty/kmod.git/commit - testsuite/mkosi/mkosi.arch
testsuite: generalize mkosi support for other distros
authorLucas De Marchi <lucas.demarchi@intel.com>
Wed, 3 Jan 2018 19:19:02 +0000 (11:19 -0800)
committerLucas De Marchi <lucas.demarchi@intel.com>
Wed, 3 Jan 2018 22:22:05 +0000 (14:22 -0800)
commit7bc6b67dc6e0394153974234722eaa35dcd445aa
tree7e3a1164ffc8a14da25663e6c1adad78a3f5e4bd
parent8d9c7e37c95da12bcff0e1ba21a45d3efb8b9041
testsuite: generalize mkosi support for other distros

Instead of using the mkosi.default symlink, use an env var passed from
the build system. We would need to pass the --default switch nonetheless
or change the symlink, making the git tree dirty.

Also, search for installed kernel headers in a way that's compatible
with more distros. On Fedora, for example, the
/usr/lib/modules/<kver>/build symlink is only available if there's a
kernel installed. We don't care about a kernel installed since we don't
need to boot it on a real machine: the only thing we need is the
kernel-devel package.
Makefile.am
testsuite/mkosi/.gitignore
testsuite/mkosi/mkosi.arch
testsuite/mkosi/mkosi.build
testsuite/mkosi/mkosi.default [deleted symlink]