From 373c99715bb27f7f35c51e313bc94a4234a0e168 Mon Sep 17 00:00:00 2001 From: Vladislav Bolkhovitin Date: Thu, 21 Apr 2016 01:28:08 +0000 Subject: [PATCH] Merged revisions 6860-6861 via svnmerge from svn+ssh://svn.code.sf.net/p/scst/svn/trunk ........ r6860 | vlnb | 2016-04-19 19:48:28 -0700 (Tue, 19 Apr 2016) | 3 lines Cleanup ........ r6861 | vlnb | 2016-04-19 20:17:16 -0700 (Tue, 19 Apr 2016) | 7 lines iscsi-scst: fix 2 minor main Makefile issues 1. Fix build of progs and mods targets, if iscsi_scst_itf_ver.h does not exist 2. Fix small race for parallel build of "all" target, when iscsi_scst_itf_ver.h not yet built, when progs or mods target need it ........ git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/3.1.x@6871 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- iscsi-scst/Makefile | 6 +++--- usr/fileio/Makefile | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/iscsi-scst/Makefile b/iscsi-scst/Makefile index d1969de05..745cad781 100644 --- a/iscsi-scst/Makefile +++ b/iscsi-scst/Makefile @@ -50,7 +50,7 @@ endif INSTALL_DIR := $(INSTALL_MOD_PATH)/lib/modules/$(KVER)/extra INFINIBAND_ENABLED := $(shell if grep -q '^CONFIG_INFINIBAND=[my]$$' $(KDIR)/.config; then echo true; else echo false; fi) -all: include/iscsi_scst_itf_ver.h progs mods +all: progs mods ISER_SYMVERS:=$(KMOD)/Module.symvers OFED_CFLAGS:= @@ -103,7 +103,7 @@ endif CREATE_CQ_FLAG = $(shell $(MAKE) -C $(KDIR) SUBDIRS=$(shell pwd)/conftest/create_cq PRE_CFLAGS="$(OFED_CFLAGS) -Werror" >/dev/null 2>&1 && echo -DIB_CREATE_CQ_HAS_INIT_ATTR) PRE_CFLAGS=$(OFED_CFLAGS) $(CREATE_CQ_FLAG) -DOFED_FLAVOR=$(OFED_FLAVOR) -mods: Modules.symvers Module.symvers +mods: include/iscsi_scst_itf_ver.h Modules.symvers Module.symvers $(MAKE) -C $(KDIR) SCST_INC_DIR=$(SCST_INC_DIR) SUBDIRS=$(KMOD) modules if $(INFINIBAND_ENABLED); then \ echo " Building against $(OFED_FLAVOR) InfiniBand kernel headers."; \ @@ -112,7 +112,7 @@ mods: Modules.symvers Module.symvers KBUILD_EXTRA_SYMBOLS=$(ISER_SYMVERS) modules; \ fi -progs: +progs: include/iscsi_scst_itf_ver.h $(MAKE) -C usr SCST_INC_DIR=$(SCST_INC_DIR) include/iscsi_scst_itf_ver.h: include/iscsi_scst.h diff --git a/usr/fileio/Makefile b/usr/fileio/Makefile index 5daa63b10..2e8c74237 100644 --- a/usr/fileio/Makefile +++ b/usr/fileio/Makefile @@ -1,5 +1,5 @@ # -# SCSI target mid-level makefile +# Fileio_tgt user space dev handler make file # # Copyright (C) 2007 - 2015 Vladislav Bolkhovitin # Copyright (C) 2007 - 2015 SanDisk Corporation