1From 1fe937835311a2d0afbc85ce4a4dbd3c9e0c912f Mon Sep 17 00:00:00 2001
2From: Changqing Li <changqing.li@windriver.com>
3Date: Mon, 26 Nov 2018 11:19:45 +0800
4Subject: [PATCH] Subject: [PATCH] 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
17Rebase to 0.7.7
18Signed-off-by: Changqing Li <changqing.li@windriver.com>
19
20Rebase to 0.7.9
21Signed-off-by: Changqing Li <changqing.li@windriver.com>
22---
23 kpartx/Makefile | 4 +---
24 1 file changed, 1 insertion(+), 3 deletions(-)
25
26diff --git a/kpartx/Makefile b/kpartx/Makefile
27index 7eb467e..c143321 100644
28--- a/kpartx/Makefile
29+++ b/kpartx/Makefile
30@@ -8,9 +8,7 @@ LDFLAGS += $(BIN_LDFLAGS)
31
32 LIBDEPS += -ldevmapper
33
34-ifneq ($(call check_func,dm_task_set_cookie,/usr/include/libdevmapper.h),0)
35-	CFLAGS += -DLIBDM_API_COOKIE
36-endif
37+CFLAGS += -DLIBDM_API_COOKIE
38
39 OBJS = bsd.o dos.o kpartx.o solaris.o unixware.o dasd.o sun.o \
40 	gpt.o mac.o ps3.o crc32.o lopart.o xstrncpy.o devmapper.o
41--
422.7.4
43
44