diff options
Diffstat (limited to 'meta-oe/recipes-support/multipath-tools/files/always-use-libdevmapper.patch')
| -rw-r--r-- | meta-oe/recipes-support/multipath-tools/files/always-use-libdevmapper.patch | 53 |
1 files changed, 33 insertions, 20 deletions
diff --git a/meta-oe/recipes-support/multipath-tools/files/always-use-libdevmapper.patch b/meta-oe/recipes-support/multipath-tools/files/always-use-libdevmapper.patch index 89d2352dab..33834f6b80 100644 --- a/meta-oe/recipes-support/multipath-tools/files/always-use-libdevmapper.patch +++ b/meta-oe/recipes-support/multipath-tools/files/always-use-libdevmapper.patch | |||
| @@ -1,4 +1,7 @@ | |||
| 1 | Always use devmapper | 1 | From c4f0dba4e86bfa20252fcc8218398e7468ca9149 Mon Sep 17 00:00:00 2001 |
| 2 | From: Aws Ismail <aws.ismail@windriver.com> | ||
| 3 | Date: Mon, 22 Sep 2014 17:22:32 -0700 | ||
| 4 | Subject: [PATCH] Always use devmapper | ||
| 2 | 5 | ||
| 3 | Do not try to compute several _API_ make variables | 6 | Do not try to compute several _API_ make variables |
| 4 | from host information when cross-compiling. | 7 | from host information when cross-compiling. |
| @@ -7,38 +10,48 @@ Upstream-Status: Inappropriate [embedded specific] | |||
| 7 | 10 | ||
| 8 | Signed-off-by: Aws Ismail <aws.ismail@windriver.com> | 11 | Signed-off-by: Aws Ismail <aws.ismail@windriver.com> |
| 9 | Signed-off-by: Joe Slater <joe.slater@windriver.com> | 12 | Signed-off-by: Joe Slater <joe.slater@windriver.com> |
| 13 | --- | ||
| 14 | libmultipath/Makefile | 27 ++++----------------------- | ||
| 15 | 1 file changed, 4 insertions(+), 23 deletions(-) | ||
| 10 | 16 | ||
| 11 | diff --git a/libmultipath/Makefile b/libmultipath/Makefile | 17 | diff --git a/libmultipath/Makefile b/libmultipath/Makefile |
| 12 | index e5b06b3..efd6cf6 100644 | 18 | index 495cebe..9626e69 100644 |
| 13 | --- a/libmultipath/Makefile | 19 | --- a/libmultipath/Makefile |
| 14 | +++ b/libmultipath/Makefile | 20 | +++ b/libmultipath/Makefile |
| 15 | @@ -17,23 +17,18 @@ OBJS = memory.o parser.o vector.o devmapper.o \ | 21 | @@ -20,29 +20,10 @@ ifdef SYSTEMD |
| 16 | log.o configure.o structs_vec.o sysfs.o prio.o checkers.o \ | 22 | endif |
| 17 | lock.o waiter.o file.o wwids.o | 23 | endif |
| 18 | 24 | ||
| 19 | -LIBDM_API_FLUSH = $(shell grep -Ecs '^[a-z]*[[:space:]]+dm_task_no_flush' /usr/include/libdevmapper.h) | 25 | -LIBDM_API_FLUSH = $(shell grep -Ecs '^[a-z]*[[:space:]]+dm_task_no_flush' /usr/include/libdevmapper.h) |
| 20 | 26 | - | |
| 21 | -ifneq ($(strip $(LIBDM_API_FLUSH)),0) | 27 | -ifneq ($(strip $(LIBDM_API_FLUSH)),0) |
| 22 | +#ifneq ($(strip $(LIBDM_API_FLUSH)),0) | 28 | - CFLAGS += -DLIBDM_API_FLUSH -D_GNU_SOURCE |
| 23 | CFLAGS += -DLIBDM_API_FLUSH -D_GNU_SOURCE | ||
| 24 | -endif | 29 | -endif |
| 25 | +#endif | 30 | - |
| 26 | |||
| 27 | -LIBDM_API_COOKIE = $(shell grep -Ecs '^[a-z]*[[:space:]]+dm_task_set_cookie' /usr/include/libdevmapper.h) | 31 | -LIBDM_API_COOKIE = $(shell grep -Ecs '^[a-z]*[[:space:]]+dm_task_set_cookie' /usr/include/libdevmapper.h) |
| 28 | - | 32 | - |
| 29 | -ifneq ($(strip $(LIBDM_API_COOKIE)),0) | 33 | -ifneq ($(strip $(LIBDM_API_COOKIE)),0) |
| 30 | +#ifneq ($(strip $(LIBDM_API_COOKIE)),0) | 34 | - CFLAGS += -DLIBDM_API_COOKIE |
| 31 | CFLAGS += -DLIBDM_API_COOKIE | ||
| 32 | -endif | 35 | -endif |
| 33 | - | 36 | - |
| 34 | -LIBUDEV_API_RECVBUF = $(shell grep -Ecs '^[a-z]*[[:space:]]+udev_monitor_set_resolve_buffer_size' /usr/include/libudev.h) | 37 | -LIBUDEV_API_RECVBUF = $(shell grep -Ecs '^[a-z]*[[:space:]]+udev_monitor_set_receive_buffer_size' /usr/include/libudev.h) |
| 35 | +#endif | 38 | - |
| 36 | |||
| 37 | -ifneq ($(strip $(LIBUDEV_API_RECVBUF)),0) | 39 | -ifneq ($(strip $(LIBUDEV_API_RECVBUF)),0) |
| 38 | +#ifneq ($(strip $(LIBUDEV_API_RECVBUF)),0) | 40 | - CFLAGS += -DLIBUDEV_API_RECVBUF |
| 39 | CFLAGS += -DLIBUDEV_API_RECVBUF | ||
| 40 | -endif | 41 | -endif |
| 41 | +#endif | 42 | - |
| 42 | 43 | -LIBDM_API_DEFERRED = $(shell grep -Ecs '^[a-z]*[[:space:]]+dm_task_deferred_remove' /usr/include/libdevmapper.h) | |
| 44 | - | ||
| 45 | -ifneq ($(strip $(LIBDM_API_DEFERRED)),0) | ||
| 46 | - CFLAGS += -DLIBDM_API_DEFERRED | ||
| 47 | -endif | ||
| 48 | +CFLAGS += -DLIBDM_API_FLUSH -D_GNU_SOURCE | ||
| 49 | +CFLAGS += -DLIBDM_API_COOKIE | ||
| 50 | +CFLAGS += -DLIBUDEV_API_RECVBUF | ||
| 51 | +CFLAGS += -DLIBDM_API_DEFERRED | ||
| 43 | 52 | ||
| 44 | all: $(LIBS) | 53 | OBJS = memory.o parser.o vector.o devmapper.o callout.o \ |
| 54 | hwtable.o blacklist.o util.o dmparser.o config.o \ | ||
| 55 | -- | ||
| 56 | 2.11.0 | ||
| 57 | |||
