Linux-Modules Archive on lore.kernel.org
 help / Atom feed
* [PATCH] testsuite: add Clear's mkosi configuration
@ 2018-02-08 23:08 Caio Marcelo de Oliveira Filho
  0 siblings, 0 replies; 1+ messages in thread
From: Caio Marcelo de Oliveira Filho @ 2018-02-08 23:08 UTC (permalink / raw)
  To: linux-modules; +Cc: Caio Marcelo de Oliveira Filho

Adapted the mkosi.build script to account for not building
test-modules in Clear. It doesn't have the headers available yet.
---
 testsuite/mkosi/mkosi.build |  9 +++++++--
 testsuite/mkosi/mkosi.clear | 19 +++++++++++++++++++
 2 files changed, 26 insertions(+), 2 deletions(-)
 create mode 100644 testsuite/mkosi/mkosi.clear

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
-- 
2.16.1


^ permalink raw reply	[flat|nested] 1+ messages in thread

only message in thread, back to index

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-02-08 23:08 [PATCH] testsuite: add Clear's mkosi configuration Caio Marcelo de Oliveira Filho

Linux-Modules Archive on lore.kernel.org

Archives are clonable:
	git clone --mirror https://lore.kernel.org/linux-modules/0 linux-modules/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 linux-modules linux-modules/ https://lore.kernel.org/linux-modules \
		linux-modules@vger.kernel.org linux-modules@archiver.kernel.org
	public-inbox-index linux-modules


Newsgroup available over NNTP:
	nntp://nntp.lore.kernel.org/org.kernel.vger.linux-modules


AGPL code for this site: git clone https://public-inbox.org/ public-inbox