blob: 298f276cd6735cfa21acb46137b000d32195bd0d [file] [log] [blame]
Brad Bishop19323692019-04-05 15:28:33 -04001From a9166bf422da1001bac9cc819386bf39b7cd1b73 Mon Sep 17 00:00:00 2001
Patrick Williamsd8c66bc2016-06-20 12:57:21 -05002From: "Maxin B. John" <maxin.john@intel.com>
3Date: Tue, 9 Feb 2016 11:44:01 +0200
4Subject: [PATCH] Fix the path of corosync and dlm header files check
5
6Original Makefile will check headers on host instead of sysroot.
7Fix it.
8
9Upstream-Status: Inappropriate [Yocto specific]
10
11Signed-off-by: Maxin B. John <maxin.john@intel.com>
Brad Bishop6e60e8b2018-02-01 10:27:11 -050012
Brad Bishop6e60e8b2018-02-01 10:27:11 -050013---
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050014 Makefile | 4 ++--
15 1 file changed, 2 insertions(+), 2 deletions(-)
16
17diff --git a/Makefile b/Makefile
Brad Bishop19323692019-04-05 15:28:33 -040018index 2767ac6..46bf57b 100644
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050019--- a/Makefile
20+++ b/Makefile
Brad Bishop19323692019-04-05 15:28:33 -040021@@ -91,8 +91,8 @@ FAILED_SLOTS_DIR = $(RUN_DIR)/failed-slots
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050022 SYSTEMD_DIR=/lib/systemd/system
Brad Bishop19323692019-04-05 15:28:33 -040023 LIB_DIR=/usr/libexec/mdadm
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050024
25-COROSYNC:=$(shell [ -d /usr/include/corosync ] || echo -DNO_COROSYNC)
26-DLM:=$(shell [ -f /usr/include/libdlm.h ] || echo -DNO_DLM)
Brad Bishop6e60e8b2018-02-01 10:27:11 -050027+COROSYNC:=$(shell [ -f $(SYSROOT)/usr/include/corosync/cmap.h ] || echo -DNO_COROSYNC)
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050028+DLM:=$(shell [ -f $(SYSROOT)/usr/include/libdlm.h ] || echo -DNO_DLM)
29
30 DIRFLAGS = -DMAP_DIR=\"$(MAP_DIR)\" -DMAP_FILE=\"$(MAP_FILE)\"
31 DIRFLAGS += -DMDMON_DIR=\"$(MDMON_DIR)\"