blob: 517b9a5f283e3c51cd17bb53021f1f8f41e1bcf6 [file] [log] [blame]
Brad Bishop1a4b7ee2018-12-16 17:11:34 -08001From 3bba45890985b877b823836e78a1c8ac3c878856 Mon Sep 17 00:00:00 2001
2From: Hongxu Jia <hongxu.jia@windriver.com>
3Date: Tue, 31 Jul 2018 15:04:29 +0800
Brad Bishop6e60e8b2018-02-01 10:27:11 -05004Subject: [PATCH 4/4] tweak MODPROBE_CMD for cross compile
5
6Lvm uses variable MODPROBE_CMD at runtime, so build time detection of modprobe
7is incorrect.
8------
9|lvm lvcreate --thinpool wrl/pool00 --size 5556m --config devices
10{ preferred_names=["^/dev/mapper/", "^/dev/md/", "^/dev/sd"]
11filter=["r|/loop1$|","r|/loop2$|","r|/loop3$|","r|/loop4$|","r|/loop5$|","r|/loop6$|","r|/loop7$|"] }
12|tmp/sysroots/x86_64-linux/usr/bin/modprobe: execvp failed: No such file or directory
13|tmp/sysroots/x86_64-linux/usr/bin/modprobe failed: 2
14------
15
16Upstream-Status: Inappropriate [oe specific]
17
18Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Brad Bishop6e60e8b2018-02-01 10:27:11 -050019---
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080020 configure.ac | 2 --
21 1 file changed, 2 deletions(-)
Brad Bishop6e60e8b2018-02-01 10:27:11 -050022
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080023diff --git a/configure.ac b/configure.ac
24index e427708..aa374ea 100644
25--- a/configure.ac
26+++ b/configure.ac
27@@ -1791,8 +1791,6 @@ if test "$BUILD_DMFILEMAPD" = yes; then
Brad Bishop6e60e8b2018-02-01 10:27:11 -050028 fi
29
30 ################################################################################
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080031-AC_PATH_TOOL(MODPROBE_CMD, modprobe, [], [$PATH_SBIN])
32-
Brad Bishop6e60e8b2018-02-01 10:27:11 -050033 if test -n "$MODPROBE_CMD"; then
34 AC_DEFINE_UNQUOTED([MODPROBE_CMD], ["$MODPROBE_CMD"], [The path to 'modprobe', if available.])
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080035 fi
Brad Bishop6e60e8b2018-02-01 10:27:11 -050036--
Brad Bishop1a4b7ee2018-12-16 17:11:34 -0800372.7.4
Brad Bishop6e60e8b2018-02-01 10:27:11 -050038