blob: 517b9a5f283e3c51cd17bb53021f1f8f41e1bcf6 [file] [log] [blame]
developer100f47c2023-02-15 13:25:01 +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
4Subject: [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>
19---
20 configure.ac | 2 --
21 1 file changed, 2 deletions(-)
22
23diff --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
28 fi
29
30 ################################################################################
31-AC_PATH_TOOL(MODPROBE_CMD, modprobe, [], [$PATH_SBIN])
32-
33 if test -n "$MODPROBE_CMD"; then
34 AC_DEFINE_UNQUOTED([MODPROBE_CMD], ["$MODPROBE_CMD"], [The path to 'modprobe', if available.])
35 fi
36--
372.7.4
38