From patchwork Thu Feb 8 23:08:22 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Caio Marcelo de Oliveira Filho X-Patchwork-Id: 10208121 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id F0A0760327 for ; Thu, 8 Feb 2018 23:08:35 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E66B1296AF for ; Thu, 8 Feb 2018 23:08:35 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id DA528296DA; Thu, 8 Feb 2018 23:08:35 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.1 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, T_DKIM_INVALID, URIBL_BLACK autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id CF042296AF for ; Thu, 8 Feb 2018 23:08:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752013AbeBHXIe (ORCPT ); Thu, 8 Feb 2018 18:08:34 -0500 Received: from mail-it0-f66.google.com ([209.85.214.66]:36756 "EHLO mail-it0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751544AbeBHXId (ORCPT ); Thu, 8 Feb 2018 18:08:33 -0500 Received: by mail-it0-f66.google.com with SMTP id n206so8471078itg.1 for ; Thu, 08 Feb 2018 15:08:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=GUkPPO5PWczqGwFoX0YsvIsMuSEissWFAo/hq00xxvo=; b=ClAv8vmMlmEV3xEWZpiGqRJFWMowxdFWO4MEInR2tRm2ViWNV0ZCfBb3bA2ef3IORg hnY4cRKRutBdP11W02cdRrHiso0hmBern9pcq/6Lh/yX8PTM4Ha18Qc8927dakdDs/do 6Bz1Wq4abIMfJM76BU1viSYRhV0j3EdxpZoYjFXycHmFTcFq6MUdW98TrH3nQCYUE/pw VonDlSmHwq89X4iEfWr4y1bx/8YdYwiMQz8f2lXmb7bl0jEd89+e7OX5ENqFFjQC2wrq O3p+JtvTJy9ewhovtSP/7nOp/0/s78qDGkEQuq+oLR7n5mg9I2J+FrS8OH54KeqPQ3wR Pw/w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=GUkPPO5PWczqGwFoX0YsvIsMuSEissWFAo/hq00xxvo=; b=fyJXZTdO/y36bHrDTE1C9OW2bfyXKNvBfvEY2OSC6k2yfGK41pIfcCsHy8Y4zpWoA9 xrAST41XJeyjTs46EG01XgFAWEtWLh7qaJcSofZTwRhKJnQe+AhLPpzOL5xiCAc4Inve JeD8RhsVx8f8Z4Gj51wKCddQ2CsUyRaWAHmfJZO+PmC/O4le7MwcXMmPXist8Dq9uxjA 9Wd9aP7lgs8pSXKoVCNHoW34CslUpJsr0/sBp85V2akd5hiBhY9fsQ6hGNd5MS8v1wYV C2LnG9c9yOg11gy6WmO6p3ZqzYiWT5z8Y3R4SjuhZk1gcOjEA0Ah7qwkJ+mTW+DrnAnM Sg8Q== X-Gm-Message-State: APf1xPBp+kKFhVQY5DXaCYiA8lYcvvIiaPfzv3JxgsCKJyhUpCYHzt7a FCtrYPGFbAOpgmOjMkEweKVaZQ== X-Google-Smtp-Source: AH8x225jsa6BxEo8Ycn1kHaVWdqxbU5LdhI4lzKI1ZiX3Yz9J+YV/mmKVEas/EJpujCpJL6Wu2Z0Eg== X-Received: by 10.36.116.131 with SMTP id o125mr1157376itc.76.1518131312733; Thu, 08 Feb 2018 15:08:32 -0800 (PST) Received: from localhost.localdomain ([2601:1c0:6901:9a13::2d17]) by smtp.gmail.com with ESMTPSA id l64sm858619itb.25.2018.02.08.15.08.31 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 08 Feb 2018 15:08:32 -0800 (PST) From: Caio Marcelo de Oliveira Filho X-Google-Original-From: Caio Marcelo de Oliveira Filho To: linux-modules@vger.kernel.org Cc: Caio Marcelo de Oliveira Filho Subject: [PATCH] testsuite: add Clear's mkosi configuration Date: Thu, 8 Feb 2018 15:08:22 -0800 Message-Id: <20180208230822.10475-1-caio.oliveira@intel.com> X-Mailer: git-send-email 2.16.1 Sender: owner-linux-modules@vger.kernel.org Precedence: bulk List-ID: X-Virus-Scanned: ClamAV using ClamSMTP 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