summaryrefslogtreecommitdiffstats
path: root/sys/modules/hptmv
diff options
context:
space:
mode:
authorscottl <scottl@FreeBSD.org>2005-09-07 23:33:26 +0000
committerscottl <scottl@FreeBSD.org>2005-09-07 23:33:26 +0000
commit2a42f5948924a4fb62bc2d9c7dd05b29a7d8720f (patch)
tree727ffd4f8e1895bfb48b086e91d000cbf2ee8fb5 /sys/modules/hptmv
parent13128dd1ca867ac057897fe125ed38b0fc0700a4 (diff)
downloadFreeBSD-src-2a42f5948924a4fb62bc2d9c7dd05b29a7d8720f.zip
FreeBSD-src-2a42f5948924a4fb62bc2d9c7dd05b29a7d8720f.tar.gz
Import new version of the HPTMV driver from Highpoint. The major change
here is the support for amd64, as well as possible support for PAE. Many thanks to Highpoint for continuing to support FreeBSD. Obtained from: Steve Chang @ Highpoint MFC After: 3 days.
Diffstat (limited to 'sys/modules/hptmv')
-rw-r--r--sys/modules/hptmv/Makefile19
1 files changed, 12 insertions, 7 deletions
diff --git a/sys/modules/hptmv/Makefile b/sys/modules/hptmv/Makefile
index 29c2e25..05ceac7 100644
--- a/sys/modules/hptmv/Makefile
+++ b/sys/modules/hptmv/Makefile
@@ -1,6 +1,6 @@
#
# Makefile for RR182x FreeBSD driver
-# Copyright (c) 2003-2004 HighPoint Technologies, Inc. All rights reserved
+# Copyright (c) 2004-2005 HighPoint Technologies, Inc. All rights reserved
#
# $FreeBSD$
@@ -10,12 +10,17 @@ HPTMV= ${.CURDIR}/../../dev/hptmv
KMOD= hptmv
SRCS= opt_scsi.h opt_cam.h
SRCS+= bus_if.h device_if.h pci_if.h
-SRCS+= mv.c entry.c
-SRCS+= ioctl.c hptproc.c gui_lib.c
+SRCS+= mv.c entry.c ioctl.c hptproc.c gui_lib.c
OBJS+= hptmvraid.o
-hptmvraid.o: ${HPTMV}/i386-elf.raid.o.uu
- uudecode -p < ${HPTMV}/i386-elf.raid.o.uu > ${.TARGET}
+.if $(MACHINE_ARCH) == "amd64"
+HPTMV_RAID_O = amd64-elf.raid.o.uu
+.else
+HPTMV_RAID_O = i386-elf.raid.o.uu
+.endif
+
+hptmvraid.o: ${HPTMV}/$(HPTMV_RAID_O)
+ uudecode -p < ${HPTMV}/$(HPTMV_RAID_O) > ${.TARGET}
#
# Debug Options:
@@ -42,6 +47,6 @@ DEBUGOPT += -DDEBUG_LEVEL=1
DEBUGOPT += -DFOR_DEMO
.endif
-CFLAGS+= ${DEBUGOPT}
-
+CFLAGS = ${DEBUGOPT}
+
.include <bsd.kmod.mk>
OpenPOWER on IntegriCloud