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