Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 1 | From 7f5869cd32a7b3f717d9544b35562d9d01ca6510 Mon Sep 17 00:00:00 2001 |
| 2 | From: Hongxu Jia <hongxu.jia@windriver.com> |
| 3 | Date: Wed, 5 Jul 2017 03:03:16 -0400 |
| 4 | Subject: [PATCH 14/14] 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 | kpartx/Makefile | 4 +--- |
| 18 | 1 file changed, 1 insertion(+), 3 deletions(-) |
| 19 | |
| 20 | diff --git a/kpartx/Makefile b/kpartx/Makefile |
| 21 | index 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 | -- |
| 36 | 2.8.1 |
| 37 | |