@@ -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
new file mode 100644
@@ -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