From 3c9168fa8e9c30d55b3aa2fde74bd7da46df53f5 Mon Sep 17 00:00:00 2001 From: Hans Rosenfeld Date: Wed, 15 Oct 2014 17:53:08 +0200 Subject: 4053 Add NVME Driver Support to Illumos Reviewed by: Dan Fields Reviewed by: Josef 'Jeff' Sipek Reviewed by: Robert Mustacchi Approved by: Dan McDonald --- usr/src/uts/intel/Makefile.intel | 3 +- usr/src/uts/intel/nvme/Makefile | 73 ++++++++++++++++++++++++++++++++++++++++ 2 files changed, 75 insertions(+), 1 deletion(-) create mode 100644 usr/src/uts/intel/nvme/Makefile (limited to 'usr/src/uts/intel') diff --git a/usr/src/uts/intel/Makefile.intel b/usr/src/uts/intel/Makefile.intel index 3809a6c45e..3b3ee0723d 100644 --- a/usr/src/uts/intel/Makefile.intel +++ b/usr/src/uts/intel/Makefile.intel @@ -19,7 +19,7 @@ # # Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved. -# Copyright (c) 2014 Nexenta Systems, Inc. All rights reserved. +# Copyright (c) 2015 Nexenta Systems, Inc. All rights reserved. # Copyright (c) 2013 Andrew Stormont. All rights reserved. # @@ -286,6 +286,7 @@ DRV_KMODS += nca DRV_KMODS += nsmb DRV_KMODS += nulldriver DRV_KMODS += nv_sata +DRV_KMODS += nvme DRV_KMODS += nxge DRV_KMODS += oce DRV_KMODS += openeepr diff --git a/usr/src/uts/intel/nvme/Makefile b/usr/src/uts/intel/nvme/Makefile new file mode 100644 index 0000000000..529d4378a2 --- /dev/null +++ b/usr/src/uts/intel/nvme/Makefile @@ -0,0 +1,73 @@ +# +# CDDL HEADER START +# +# This file and its contents are supplied under the terms of the +# Common Development and Distribution License ("CDDL"), version 1.0. +# You may only use this file in accordance with the terms of version +# 1.0 of the CDDL. +# +# A full copy of the text of the CDDL should have accompanied this +# source. A copy of the CDDL is also available via the Internet at +# http://www.illumos.org/license/CDDL. +# +# CDDL HEADER END +# +# +# Copyright 2015 Nexenta Systems, Inc. All rights reserved. +# + +# +# Paths to the base of the uts directory trees +# +UTSBASE = ../.. + +# +# Define the module and object file sets. +# +MODULE = nvme +OBJECTS = $(NVME_OBJS:%=$(OBJS_DIR)/%) +LINTS = $(NVME_OBJS:%.o=$(LINTS_DIR)/%.ln) +ROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE) +CONF_SRCDIR = $(UTSBASE)/common/io/nvme +# +# Include common rules. +# +include $(UTSBASE)/intel/Makefile.intel + +# +# Define targets +# +ALL_TARGET = $(BINARY) +LINT_TARGET = $(MODULE).lint +INSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE) + +# +# Driver depends on blkdev +# +LDFLAGS += -dy -N drv/blkdev + +# +# Default build targets. +# +.KEEP_STATE: + +def: $(DEF_DEPS) + +all: $(ALL_DEPS) + +clean: $(CLEAN_DEPS) + +clobber: $(CLOBBER_DEPS) + +lint: $(LINT_DEPS) + +modlintlib: $(MODLINTLIB_DEPS) + +clean.lint: $(CLEAN_LINT_DEPS) + +install: $(INSTALL_DEPS) + +# +# Include common targets. +# +include $(UTSBASE)/intel/Makefile.targ -- cgit v1.2.3