blob: f951213c1819bf495bff9595aeb310d996b2c3bc [file] [log] [blame]
Brad Bishopd7bf8c12018-02-25 22:55:05 -05001From 7f5869cd32a7b3f717d9544b35562d9d01ca6510 Mon Sep 17 00:00:00 2001
2From: Hongxu Jia <hongxu.jia@windriver.com>
3Date: Wed, 5 Jul 2017 03:03:16 -0400
4Subject: [PATCH 14/14] Always use devmapper for kpartx
5
6Do not try to compute the LIBDM_API_COOKIE make variable
7from host information when cross-compiling.
8
9Upstream-Status: Inappropriate [embedded specific]
10
11Signed-off-by: Aws Ismail <aws.ismail@windriver.com>
12Signed-off-by: Joe Slater <joe.slater@windriver.com>
13
14Rebase to 0.7.1
15Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
16---
17 kpartx/Makefile | 4 +---
18 1 file changed, 1 insertion(+), 3 deletions(-)
19
20diff --git a/kpartx/Makefile b/kpartx/Makefile
21index bfa6fe8..be87124 100644
22--- a/kpartx/Makefile
23+++ b/kpartx/Makefile
24@@ -8,9 +8,7 @@ LDFLAGS += $(BIN_LDFLAGS)
25
26 LIBDEPS += -ldevmapper
27
28-ifneq ($(call check_func,dm_task_set_cookie,/usr/include/libdevmapper.h),0)
29- CFLAGS += -DLIBDM_API_COOKIE
30-endif
31+CFLAGS += -DLIBDM_API_COOKIE
32
33 OBJS = bsd.o dos.o kpartx.o solaris.o unixware.o dasd.o sun.o \
34 gpt.o mac.o ps3.o crc32.o lopart.o xstrncpy.o devmapper.o
35--
362.8.1
37