summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2004-07-09 19:07:46 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2004-07-09 19:07:46 +0000
commita7e1fad4f1576d21c1916fa0a83aac3e106ef314 (patch)
tree1a4bfb838d99a09669bb6b866965ba64fc78d388
parent34d0329b658cb7d1d58bd1c84ca3cdb800702b6e (diff)
Do not compile non-us keyboard tables on alpha if SMALL_KERNEL, as an
expedient to s(h)ave more bytes on the installation media. Prompted by deraadt@
-rw-r--r--sys/dev/pckbc/wskbdmap_mfii.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/sys/dev/pckbc/wskbdmap_mfii.c b/sys/dev/pckbc/wskbdmap_mfii.c
index eb34dd44a12..b7756224d58 100644
--- a/sys/dev/pckbc/wskbdmap_mfii.c
+++ b/sys/dev/pckbc/wskbdmap_mfii.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: wskbdmap_mfii.c,v 1.23 2004/03/16 07:50:26 miod Exp $ */
+/* $OpenBSD: wskbdmap_mfii.c,v 1.24 2004/07/09 19:07:45 miod Exp $ */
/* $NetBSD: wskbdmap_mfii.c,v 1.15 2000/05/19 16:40:04 drochner Exp $ */
/*-
@@ -156,6 +156,8 @@ static const keysym_t pckbd_keydesc_us[] = {
KC(221), KS_Menu,
};
+#if !defined(SMALL_KERNEL) || !defined(__alpha__)
+
static const keysym_t pckbd_keydesc_de[] = {
/* pos normal shifted altgr shift-altgr */
KC(3), KS_2, KS_quotedbl, KS_twosuperior,
@@ -873,11 +875,14 @@ static const keysym_t pckbd_keydesc_si[]=
KC(184), KS_Mode_switch, KS_Multi_key,
};
+#endif /* SMALL_KERNEL */
+
#define KBD_MAP(name, base, map) \
{ name, base, sizeof(map)/sizeof(keysym_t), map }
const struct wscons_keydesc pckbd_keydesctab[] = {
KBD_MAP(KB_US, 0, pckbd_keydesc_us),
+#if !defined(SMALL_KERNEL) || !defined(__alpha__)
KBD_MAP(KB_DE, KB_US, pckbd_keydesc_de),
KBD_MAP(KB_DE | KB_NODEAD, KB_DE, pckbd_keydesc_de_nodead),
KBD_MAP(KB_FR, KB_US, pckbd_keydesc_fr),
@@ -918,6 +923,7 @@ const struct wscons_keydesc pckbd_keydesctab[] = {
KBD_MAP(KB_PL, KB_US, pckbd_keydesc_pl),
KBD_MAP(KB_HU, KB_US, pckbd_keydesc_hu),
KBD_MAP(KB_SI, KB_US, pckbd_keydesc_si),
+#endif /* SMALL_KERNEL */
{0, 0, 0, 0}
};