blob: 2d043c399103b461276746a54772fd7e173dbd78 [file] [log] [blame]
Andrew Geissler517393d2023-01-13 08:55:19 -06001From 820d2ef3596189041da43d1139da8689336bb918 Mon Sep 17 00:00:00 2001
Brad Bishop1a4b7ee2018-12-16 17:11:34 -08002From: Changqing Li <changqing.li@windriver.com>
Brad Bishop19323692019-04-05 15:28:33 -04003Date: Mon, 26 Nov 2018 11:19:45 +0800
4Subject: [PATCH] Subject: [PATCH] Always use devmapper for kpartx
Brad Bishop1a4b7ee2018-12-16 17:11:34 -08005
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>
Brad Bishop19323692019-04-05 15:28:33 -040019
20Rebase to 0.7.9
21Signed-off-by: Changqing Li <changqing.li@windriver.com>
Andrew Geissler517393d2023-01-13 08:55:19 -060022[OP: Rebase to 0.9.3]
23Signed-off-by: Ovidiu Panait <ovidiu.panait@windriver.com>
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080024---
25 kpartx/Makefile | 4 +---
26 1 file changed, 1 insertion(+), 3 deletions(-)
27
28diff --git a/kpartx/Makefile b/kpartx/Makefile
Andrew Geissler517393d2023-01-13 08:55:19 -060029index 742d3bcd..d886483d 100644
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080030--- a/kpartx/Makefile
31+++ b/kpartx/Makefile
Andrew Geissler517393d2023-01-13 08:55:19 -060032@@ -9,9 +9,7 @@ LDFLAGS += $(BIN_LDFLAGS)
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080033
34 LIBDEPS += -ldevmapper
35
Andrew Geissler517393d2023-01-13 08:55:19 -060036-ifneq ($(call check_func,dm_task_set_cookie,$(DEVMAPPER_INCDIR)/libdevmapper.h),0)
37- CPPFLAGS += -DLIBDM_API_COOKIE
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080038-endif
Andrew Geissler517393d2023-01-13 08:55:19 -060039+CPPFLAGS += -DLIBDM_API_COOKIE
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080040
41 OBJS = bsd.o dos.o kpartx.o solaris.o unixware.o dasd.o sun.o \
42 gpt.o mac.o ps3.o crc32.o lopart.o xstrncpy.o devmapper.o
43--
Andrew Geissler517393d2023-01-13 08:55:19 -0600442.38.1
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080045