mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-13 05:54:23 +08:00
02941a530e
Implementation of the most basic OSD functionality and infrastructure. Mainly Format, Create/Remove Partition, Create/Remove Object, and read/write. - Add Makefile and Kbuild to compile libosd.ko - osd_initiator.c Implementation file for osd_initiator.h and osd_sec.h APIs - osd_debug.h - Some kprintf macro definitions Signed-off-by: Boaz Harrosh <bharrosh@panasas.com> Reviewed-by: Benny Halevy <bhalevy@panasas.com> Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
38 lines
1.0 KiB
Makefile
Executable File
38 lines
1.0 KiB
Makefile
Executable File
#
|
|
# Makefile for the OSD modules (out of tree)
|
|
#
|
|
# Copyright (C) 2008 Panasas Inc. All rights reserved.
|
|
#
|
|
# Authors:
|
|
# Boaz Harrosh <bharrosh@panasas.com>
|
|
# Benny Halevy <bhalevy@panasas.com>
|
|
#
|
|
# This program is free software; you can redistribute it and/or modify
|
|
# it under the terms of the GNU General Public License version 2
|
|
#
|
|
# This Makefile is used to call the kernel Makefile in case of an out-of-tree
|
|
# build.
|
|
# $KSRC should point to a Kernel source tree otherwise host's default is
|
|
# used. (eg. /lib/modules/`uname -r`/build)
|
|
|
|
# include path for out-of-tree Headers
|
|
OSD_INC ?= `pwd`/../../../include
|
|
|
|
# allow users to override these
|
|
# e.g. to compile for a kernel that you aren't currently running
|
|
KSRC ?= /lib/modules/$(shell uname -r)/build
|
|
KBUILD_OUTPUT ?=
|
|
ARCH ?=
|
|
V ?= 0
|
|
|
|
# this is the basic Kbuild out-of-tree invocation, with the M= option
|
|
KBUILD_BASE = +$(MAKE) -C $(KSRC) M=`pwd` KBUILD_OUTPUT=$(KBUILD_OUTPUT) ARCH=$(ARCH) V=$(V)
|
|
|
|
all: libosd
|
|
|
|
libosd: ;
|
|
$(KBUILD_BASE) OSD_INC=$(OSD_INC) modules
|
|
|
|
clean:
|
|
$(KBUILD_BASE) clean
|