From patchwork Wed Oct 10 20:50:16 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lucas De Marchi X-Patchwork-Id: 10635259 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id D263417E1 for ; Wed, 10 Oct 2018 20:50:32 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 90A072ACA9 for ; Wed, 10 Oct 2018 20:50:32 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 84E172ACB7; Wed, 10 Oct 2018 20:50:32 +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=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI 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 2EE002ACA9 for ; Wed, 10 Oct 2018 20:50:32 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725845AbeJKEOY (ORCPT ); Thu, 11 Oct 2018 00:14:24 -0400 Received: from mga07.intel.com ([134.134.136.100]:58460 "EHLO mga07.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725841AbeJKEOX (ORCPT ); Thu, 11 Oct 2018 00:14:23 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga007.jf.intel.com ([10.7.209.58]) by orsmga105.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 10 Oct 2018 13:50:31 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.54,365,1534834800"; d="scan'208";a="80184023" Received: from bsstone-mobl.amr.corp.intel.com (HELO ldmartin-desk.jf.intel.com) ([10.254.68.222]) by orsmga007.jf.intel.com with ESMTP; 10 Oct 2018 13:50:30 -0700 From: Lucas De Marchi To: linux-modules@vger.kernel.org Cc: Caio Marcelo de Oliveira Filho Subject: [PATCH] mkosi: allow Clear to use test modules Date: Wed, 10 Oct 2018 13:50:16 -0700 Message-Id: <20181010205016.3462-1-lucas.demarchi@intel.com> X-Mailer: git-send-email 2.19.1.1.g8c3cf03f71 MIME-Version: 1.0 Sender: owner-linux-modules@vger.kernel.org Precedence: bulk List-ID: X-Virus-Scanned: ClamAV using ClamSMTP Now Clear has a bundle for the kernel headers, let's use it. --- testsuite/mkosi/mkosi.build | 9 ++------- testsuite/mkosi/mkosi.clear | 1 + 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/testsuite/mkosi/mkosi.build b/testsuite/mkosi/mkosi.build index 8ed54bb..53fc797 100755 --- a/testsuite/mkosi/mkosi.build +++ b/testsuite/mkosi/mkosi.build @@ -29,13 +29,8 @@ rm -rf build mkdir build cd build -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 +kdir=$(find_kdir) +IFS=/ read _ _ _ kver _ <<<"$kdir" ../autogen.sh c make -j diff --git a/testsuite/mkosi/mkosi.clear b/testsuite/mkosi/mkosi.clear index 6d87514..03ba2f0 100644 --- a/testsuite/mkosi/mkosi.clear +++ b/testsuite/mkosi/mkosi.clear @@ -10,6 +10,7 @@ Packages= os-core-update BuildPackages= os-core-dev + linux-dev [Partitions] RootSize = 5G