All of lore.kernel.org
 help / color / mirror / Atom feed
From: Lucas De Marchi <lucas.demarchi@intel.com>
To: linux-modules@vger.kernel.org
Cc: Yauheni Kaliuta <yauheni.kaliuta@redhat.com>
Subject: [PATCH 2/6] build: use tool from configure
Date: Wed,  3 Jan 2018 14:29:20 -0800	[thread overview]
Message-ID: <20180103222924.26347-3-lucas.demarchi@intel.com> (raw)
In-Reply-To: <20180103222924.26347-1-lucas.demarchi@intel.com>

This way we make sure the tool will be the one we actually configured
before going through sudo.
---
 Makefile.am  | 4 ++--
 configure.ac | 1 +
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/Makefile.am b/Makefile.am
index b7ee6b1..3ea4274 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -504,5 +504,5 @@ tar-sync: kmod-$(VERSION).tar.xz kmod-$(VERSION).tar.sign
 # ------------------------------------------------------------------------------
 
 mkosi:
-	-mkdir $(top_srcdir)/testsuite/mkosi/mkosi.cache
-	mkosi -C $(top_srcdir)/testsuite/mkosi --build-sources ../../ -fi
+	-$(MKDIR_P) $(top_srcdir)/testsuite/mkosi/mkosi.cache
+	$(MKOSI) -C $(top_srcdir)/testsuite/mkosi --build-sources ../../ -fi
diff --git a/configure.ac b/configure.ac
index ca94bf8..932e87d 100644
--- a/configure.ac
+++ b/configure.ac
@@ -31,6 +31,7 @@ AC_PROG_MKDIR_P
 AC_PROG_LN_S
 PKG_PROG_PKG_CONFIG
 AC_PATH_PROG([XSLTPROC], [xsltproc])
+AC_PATH_PROG([MKOSI], [mkosi])
 
 AC_PROG_CC_C99
 
-- 
2.14.3


  parent reply	other threads:[~2018-01-03 22:29 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-01-03 22:29 [PATCH 0/6] prepare for release Lucas De Marchi
2018-01-03 22:29 ` [PATCH 1/6] build: add mkosi hooks Lucas De Marchi
2018-01-03 22:29 ` Lucas De Marchi [this message]
2018-01-03 22:29 ` [PATCH 3/6] testsuite: generalize mkosi support for other distros Lucas De Marchi
2018-01-03 22:29 ` [PATCH 4/6] testsuite: add Fedora's mkosi configuration Lucas De Marchi
2018-01-03 22:29 ` [PATCH 5/6] testsuite: add missing error handling Lucas De Marchi
2018-01-03 22:29 ` [PATCH 6/6] testsuite: explain why overriding function may fail Lucas De Marchi
2018-01-08 21:33 ` [PATCH 0/6] prepare for release Lucas De Marchi

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20180103222924.26347-3-lucas.demarchi@intel.com \
    --to=lucas.demarchi@intel.com \
    --cc=linux-modules@vger.kernel.org \
    --cc=yauheni.kaliuta@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.