Commit 78020042 authored by Kamal Mostafa's avatar Kamal Mostafa

UBUNTU: SAUCE: hio: Makefile and Kconfig

BugLink: http://bugs.launchpad.net/bugs/1603483Signed-off-by: default avatarKamal Mostafa <kamal@canonical.com>
Acked-by: default avatarBrad Figg <brad.figg@canonical.com>
Acked-by: default avatarTim Gardner <tim.gardner@canonical.com>
Signed-off-by: default avatarKamal Mostafa <kamal@canonical.com>
parent 7bb249b5
......@@ -18,6 +18,10 @@ source "ubuntu/i915/Kconfig"
##
##
##
source "ubuntu/hio/Kconfig"
##
##
##
##
##
##
......
......@@ -29,6 +29,13 @@ obj-$(CONFIG_DRM_I915_BPO) += i915/
##
##
##
obj-$(CONFIG_HIO) += hio/
##
##
##
##
##
##
# This is a stupid trick to get kbuild to create ubuntu/built-in.o
obj- += foo.o
config HIO
tristate "ES3000 V2 High-Performance PCIe SSD"
---help---
Driver for ES3000 V2 High-Performance PCIe SSD.
ifneq ($(KERNELRELEASE),)
# hio-y := hio_main.o
# obj-$(CONFIG_HIO_DRIVER) += hio.o
obj-m += hio.o
else
KVER=
ifeq ($(KVER),)
KVER=$(shell uname -r)
endif
PDIR=
ifeq ($(PDIR),)
PDIR=extra
endif
PREFIX=
MODDIR=/lib/modules/$(KVER)/$(PDIR)/hio/
MOD=hio.ko
ifeq ($(KVER),2.6.32-300.3.1.el6uek.x86_64)
FLAGS += -DSSD_QUEUE_PBIO
endif
ifeq ($(KVER),2.6.32-220.el6.x86_64)
FLAGS += -DSSD_QUEUE_PBIO
endif
ifeq ($(KVER),2.6.32-358.el6.x86_64)
FLAGS += -DSSD_QUEUE_PBIO
endif
ifeq ($(KVER),2.6.32-358.23.2.el6.x86_64)
FLAGS += -DSSD_QUEUE_PBIO
endif
ifeq ($(KVER),3.0.58-0.6.6-xen)
FLAGS += -DSSD_QUEUE_PBIO
endif
ifeq ($(KVER),3.2.0-4-amd64)
FLAGS += -DSSD_BIOVEC_PHYS_MERGEABLE_FIXED
endif
ifeq ($(KVER),2.6.39-400.209.1.el5uek) #Oracle Linux Server release 5.10
FLAGS += -DSSD_BIOVEC_PHYS_MERGEABLE_FIXED
endif
ifeq ($(KVER),2.6.39-400.215.10.el5uek) #Oracle Linux Server release 5.11
FLAGS += -DSSD_BIOVEC_PHYS_MERGEABLE_FIXED
endif
ifeq ($(KVER),2.6.39-200.24.1.el6uek.x86_64) #Oracle Linux Server release 6.3
FLAGS += -DSSD_BIOVEC_PHYS_MERGEABLE_FIXED
endif
ifeq ($(KVER),2.6.39-400.17.1.el6uek.x86_64) #Oracle Linux Server release 6.4
FLAGS += -DSSD_BIOVEC_PHYS_MERGEABLE_FIXED
endif
KERNELDIR ?= /lib/modules/$(KVER)/build
PWD := $(shell pwd)
default:
$(MAKE) -C $(KERNELDIR) M=$(PWD) EXTRA_CFLAGS="$(FLAGS)" modules
clean:
rm -rf *.o *~ core .depend .*.cmd *.ko *.mod.c .tmp_versions Module.*
install: default
mkdir -p $(PREFIX)/$(MODDIR)
install -m 444 $(MOD) $(PREFIX)/$(MODDIR)
@if [ "$(PREFIX)" = "" ]; then /sbin/depmod -a ;\
else echo " *** Run 'depmod -a' to update the module database.";\
fi
endif
obj-$(CONFIG_HIO) += hio.o
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment