summaryrefslogtreecommitdiff
path: root/usr/src/uts/intel/wc
diff options
context:
space:
mode:
authorrui zang - Sun Microsystems - Beijing China <Aaron.Zang@Sun.COM>2008-09-25 14:01:48 +0800
committerrui zang - Sun Microsystems - Beijing China <Aaron.Zang@Sun.COM>2008-09-25 14:01:48 +0800
commitaecfc01d1bad84e66649703f7fc2926ef70b34ba (patch)
tree30d7ae76f4cff7994f216c9e89819dda18b2ae63 /usr/src/uts/intel/wc
parentf4565e39fe75b2c28258c16bc697741760935002 (diff)
downloadillumos-joyent-aecfc01d1bad84e66649703f7fc2926ef70b34ba.tar.gz
PSARC 2006/591 Virtual Console
PSARC 2008/515 Virtual Console Update 4309501 Need additional local 'terminal' --HG-- rename : usr/src/uts/intel/sys/kd.h => usr/src/uts/common/sys/kd.h
Diffstat (limited to 'usr/src/uts/intel/wc')
-rw-r--r--usr/src/uts/intel/wc/Makefile40
1 files changed, 38 insertions, 2 deletions
diff --git a/usr/src/uts/intel/wc/Makefile b/usr/src/uts/intel/wc/Makefile
index efdad561f7..b7461a4bed 100644
--- a/usr/src/uts/intel/wc/Makefile
+++ b/usr/src/uts/intel/wc/Makefile
@@ -23,7 +23,6 @@
# Copyright 2008 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
#
-# ident "%Z%%M% %I% %E% SMI"
#
# This makefile drives the production of the wc driver
# kernel module.
@@ -44,6 +43,9 @@ OBJECTS = $(WC_OBJS:%=$(OBJS_DIR)/%)
LINTS = $(WC_OBJS:%.o=$(LINTS_DIR)/%.ln)
ROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE)
CONF_SRCDIR = $(UTSBASE)/common/io
+WARLOCK_OUT = $(WC_OBJS:%.o=%.ll)
+WARLOCK_OK = $(MODULE).ok
+WLCMD_DIR = $(UTSBASE)/common/io/warlock
#
# Include common rules.
@@ -60,7 +62,7 @@ INSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
#
# Overrides.
#
-LDFLAGS += -dy -Nmisc/tem
+LDFLAGS += -dy -Nmisc/tem -Ndacf/consconfig_dacf
#
# Default build targets.
@@ -87,3 +89,37 @@ install: $(INSTALL_DEPS)
# Include common targets.
#
include $(UTSBASE)/intel/Makefile.targ
+
+#
+# Defines for local commands
+#
+TEST = test
+WLCC = wlcc
+TOUCH = touch
+WARLOCK = warlock
+
+#
+# warlock targets
+#
+
+#
+# vcons_conf.c is compile to genunix, add it to WARLOCK_OUT
+#
+WARLOCK_OUT += vcons_conf.ll
+
+warlock: $(WARLOCK_OUT) sdev_vtops.file warlock_ddi.files
+ $(WARLOCK) -c $(WLCMD_DIR)/wc.wlcmd $(WARLOCK_OUT) \
+ -l ../../intel/warlock/ddi_dki_impl.ll
+ $(WARLOCK) -c $(WLCMD_DIR)/wc_devfs.wlcmd sdev_vtops.ll vcons_conf.ll \
+ -l ../../intel/warlock/ddi_dki_impl.ll
+ $(TOUCH) $(WARLOCK_OK)
+
+%.ll: $(UTSBASE)/common/io/%.c
+ $(WLCC) $(CPPFLAGS) -DDEBUG -o $@ $<
+
+sdev_vtops.file:
+ $(WLCC) $(CPPFLAGS) -DDEBUG -o sdev_vtops.ll -c \
+ ../../common/fs/dev/sdev_vtops.c
+
+warlock_ddi.files:
+ @cd ../../intel/warlock; pwd; $(MAKE) warlock