diff options
author | Caio Marcelo de Oliveira Filho <caio.oliveira@intel.com> | 2018-02-08 15:08:22 -0800 |
---|---|---|
committer | Lucas De Marchi <lucas.demarchi@intel.com> | 2018-02-08 16:38:08 -0800 |
commit | a76f997f4db4fedccb453ca4204988219856653a (patch) | |
tree | 977f72dc079459a1551351e51e5f0a2eb1355def | |
parent | aca4eca103d6699543f7ed663335c28c2e9908bb (diff) | |
download | kmod-a76f997f4db4fedccb453ca4204988219856653a.tar.gz kmod-a76f997f4db4fedccb453ca4204988219856653a.tar.bz2 kmod-a76f997f4db4fedccb453ca4204988219856653a.zip |
testsuite: add Clear's mkosi configuration
Adapted the mkosi.build script to account for not building
test-modules in Clear. It doesn't have the headers available yet.
-rwxr-xr-x | testsuite/mkosi/mkosi.build | 9 | ||||
-rw-r--r-- | testsuite/mkosi/mkosi.clear | 19 |
2 files changed, 26 insertions, 2 deletions
diff --git a/testsuite/mkosi/mkosi.build b/testsuite/mkosi/mkosi.build index 53fc797..8ed54bb 100755 --- a/testsuite/mkosi/mkosi.build +++ b/testsuite/mkosi/mkosi.build @@ -29,8 +29,13 @@ rm -rf build mkdir build cd build -kdir=$(find_kdir) -IFS=/ read _ _ _ kver _ <<<"$kdir" +if grep clear-linux-os /usr/lib/os-release; then + # Clear Linux doesn't have the dependencies for those yet. + echo "--disable-test-modules" > ../../.config.args +else + kdir=$(find_kdir) + IFS=/ read _ _ _ kver _ <<<"$kdir" +fi ../autogen.sh c make -j diff --git a/testsuite/mkosi/mkosi.clear b/testsuite/mkosi/mkosi.clear new file mode 100644 index 0000000..6d87514 --- /dev/null +++ b/testsuite/mkosi/mkosi.clear @@ -0,0 +1,19 @@ +[Distribution] +Distribution=clear +Release=latest + +[Output] +Output = clear-image.raw + +[Packages] +Packages= + os-core-update +BuildPackages= + os-core-dev + +[Partitions] +RootSize = 5G + +[Host] +# This is where swupd-extract is usually installed. +ExtraSearchPaths=$SUDO_HOME/go/bin
\ No newline at end of file |