aboutsummaryrefslogtreecommitdiffstats
path: root/udev-lfs
diff options
context:
space:
mode:
authorBruce Dubbs <bdubbs@linuxfromscratch.org>2014-04-03 21:52:09 +0000
committerBruce Dubbs <bdubbs@linuxfromscratch.org>2014-04-03 21:52:09 +0000
commitcba2d4e6aa081fdf62e527d28eba137eb885f0cc (patch)
treeeee1c3ef6d42101635b135289262eb1386cf87a0 /udev-lfs
parent008436e04cb47fbba28ab083cf4ef9339699b5fd (diff)
Added systemd and dbus to the book.
Set up systemd and System V side-by-side with the ability to reboot to either system. git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@10520 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
Diffstat (limited to 'udev-lfs')
-rw-r--r--udev-lfs/ChangeLog3
-rw-r--r--udev-lfs/Makefile.lfs352
-rw-r--r--udev-lfs/README14
-rw-r--r--udev-lfs/cfg.h64
-rw-r--r--udev-lfs/keyboard-keys-from-name.h923
-rw-r--r--udev-lfs/keyboard-keys-to-name.h394
-rw-r--r--udev-lfs/makefile-incl.gir51
-rw-r--r--udev-lfs/makefile-incl.gudev108
-rw-r--r--udev-lfs/makefile-incl.keymap54
-rw-r--r--udev-lfs/udev.7476
-rw-r--r--udev-lfs/udevadm.8372
-rw-r--r--udev-lfs/udevd.8124
12 files changed, 21 insertions, 2914 deletions
diff --git a/udev-lfs/ChangeLog b/udev-lfs/ChangeLog
index 0604f6f30..9a854b302 100644
--- a/udev-lfs/ChangeLog
+++ b/udev-lfs/ChangeLog
@@ -1,3 +1,6 @@
+2014-03-02 <bdubbs@linuxfromscratch.org>
+ * Makefile.lfs: Remove build procedures leaving only LFS rules
+
2014-02-16 <bdubbs@linuxfromscratch.org>
* Makefile.lfs: Adjust warning flags. Adjust linking rules to
allow build with util-linux in LFS's /tools directory.
diff --git a/udev-lfs/Makefile.lfs b/udev-lfs/Makefile.lfs
index 12ca65559..0bbc66584 100644
--- a/udev-lfs/Makefile.lfs
+++ b/udev-lfs/Makefile.lfs
@@ -1,11 +1,10 @@
-# Custom systemd Makefile that builds/installs udev only for LFS
-# Bruce Dubbs 2012-07-11
+# Custom systemd Makefile that installs udev rules for LFS
+# Bruce Dubbs 2014-04-02
# vim: tabstop=3
+VERSION=20140302
SHELL=/bin/bash
-SYSTEMD_VERSION=208
-VERSION=$(SYSTEMD_VERSION)-3
ifeq ($(V),)
VB = @
@@ -13,340 +12,19 @@ else
VB =
endif
-WARN = -Wall -W -Wextra -Wno-inline -Wvla -Wundef -Wformat=2 \
--Wlogical-op -Wsign-compare -Wformat-security -Wmissing-include-dirs \
--Wformat-nonliteral -Wold-style-definition -Wpointer-arith -Winit-self \
--Wdeclaration-after-statement -Wfloat-equal -Wmissing-prototypes \
--Wstrict-prototypes -Wredundant-decls -Wmissing-declarations \
--Wmissing-noreturn -Wshadow -Wendif-labels -Wcast-align \
--Wstrict-aliasing=2 -Wwrite-strings -Wno-overlength-strings \
--Wno-unused-parameter -Wno-missing-field-initializers -Wno-unused-result \
--Werror=overflow -Wp,-D_FORTIFY_SOURCE=2 -Wno-long-long -Wno-vla
+all:
+ @echo "Use the install target"
-OPTIONS = -O2 -pipe -ffast-math -fno-common -fdiagnostics-show-option \
--fno-strict-aliasing -ffunction-sections -fdata-sections -fPIC -std=gnu99
+install:
+ @mkdir -pv $(DESTDIR)/lib/udev/rules.d \
+ $(DESTDIR)/etc/udev/rules.d \
+ $(DESTDIR)/usr/share/doc/udev-$(VERSION)/lfs
-OPTIONS2 := $(OPTIONS) -fvisibility=hidden
-
-LDFLAGS1 = -pthread -lrt -Wl,--as-needed -Wl,--gc-sections -Wl,--no-undefined
-LDFLAGS2 := $(LDFLAGS1) -L /tools/lib -lblkid -lkmod
-
-DEF = -include cfg.h \
- -DSYSCONFDIR=\"/etc\" \
- -DFIRMWARE_PATH="\"/lib/firmware/updates/\", \"/lib/firmware/\"" \
- -DHWDB_BIN=\"/etc/udev/hwdb.bin\" \
- -DROOTPREFIX= \
- -DUDEVLIBEXECDIR=\"/lib/udev\" \
- -D_LARGEFILE_SOURCE \
- -D_FILE_OFFSET_BITS=64 \
- -DHAVE_FIRMWARE
-
-INCLUDE = -I src/libudev -I src/shared -I src -I src/login -I src/systemd \
- -I src/core -I udev-lfs-$(VERSION)
-
-LIBUDEV_SRCS = libudev-device-private.c \
- libudev-device.c \
- libudev-enumerate.c \
- libudev-hwdb.c \
- libudev-list.c \
- libudev-monitor.c \
- libudev-queue-private.c \
- libudev-queue.c \
- libudev-util.c \
- libudev.c \
- test-device-nodes.c \
- device-nodes.c
-
-LIBUDEV_OBJS := $(addprefix build/, $(LIBUDEV_SRCS:.c=.o))
-
-LIBUDEV = libudev
-LIBUDEV_MAJOR = .1
-LIBUDEV_MINOR = .3
-LIBUDEV_PATCH = .2
-LIBUDEV_SONAME := $(LIBUDEV).so
-LIBUDEV_LINK_NAME := $(LIBUDEV_SONAME)$(LIBUDEV_MAJOR)
-LIBUDEV_REAL_NAME := $(LIBUDEV_LINK_NAME)$(LIBUDEV_MINOR)$(LIBUDEV_PATCH)
-
-COMMON_LIB = udev-local.a
-
-COMMON_SRCS = log.c \
- label.c \
- mkdir.c \
- cgroup-util.c \
- strv.c \
- strbuf.c \
- path-util.c \
- conf-files.c \
- hashmap.c \
- set.c \
- exit-status.c \
- util.c \
- mkdir-label.c \
- dev-setup.c \
- sd-login.c \
- sd-daemon.c \
- time-util.c \
- fileio.c \
- strxcpyx.c \
- env-util.c \
- utf8.c
-
-COMMON_OBJS := $(addprefix build/, $(COMMON_SRCS:.c=.o))
-
-UDEVD_SRCS = udev-ctrl.c \
- udev-rules.c \
- udev-watch.c \
- udev-event.c \
- udev-node.c \
- udev-builtin.c \
- udev-builtin-blkid.c \
- udev-builtin-firmware.c \
- udev-builtin-keyboard.c \
- udev-builtin-path_id.c \
- udev-builtin-hwdb.c \
- udev-builtin-kmod.c \
- udev-builtin-uaccess.c \
- udev-builtin-net_id.c \
- udev-builtin-usb_id.c \
- udev-builtin-input_id.c \
- udev-builtin-btrfs.c
-
-UDEVD_OBJS := $(addprefix build/, $(UDEVD_SRCS:.c=.o))
-
-UDEV_ADMIN_SRCS = udevadm.c \
- udevadm-test.c \
- udevadm-monitor.c \
- udevadm-settle.c \
- udevadm-hwdb.c \
- udevadm-info.c \
- udevadm-test-builtin.c \
- udevadm-trigger.c \
- udevadm-control.c \
- udev-rules.c \
- udev-ctrl.c \
- udev-event.c \
- udev-node.c \
- udev-watch.c \
- udev-builtin.c \
- udev-builtin-blkid.c \
- udev-builtin-keyboard.c \
- udev-builtin-firmware.c \
- udev-builtin-path_id.c \
- udev-builtin-hwdb.c \
- udev-builtin-kmod.c \
- udev-builtin-uaccess.c \
- udev-builtin-net_id.c \
- udev-builtin-usb_id.c \
- udev-builtin-input_id.c \
- udev-builtin-btrfs.c
-
-UDEV_ADMIN_OBJS := $(addprefix build/, $(UDEV_ADMIN_SRCS:.c=.o))
-
-LFS_RULES = 55-lfs.rules
-
-VPATH = src/login src/udev src/udev/accelerometer \
- src/udev/scsi_id src/udev/cdrom_id src/udev/v4l_id \
- src/udev/mtd_probe src/udev/collect src/udev/ata_id \
- src/libudev src/test src/libsystemd-daemon
-
-SED_PROCESS = \
- sed -e 's|@VERSION@|$(SYSTEMD_VERSION)|g' \
- -e 's|@prefix@|/usr|g' \
- -e 's|@udevlibexecdir@|/lib/udev|g' \
- -e 's|@libdir@|/usr/lib|g' \
- -e 's|@includedir@|/usr/include|g' \
- < $< > $@
-
-SECURE = $(shell if objdump -T /lib/libc.so.6 | grep -q " secure_getenv"; \
-then echo yes; fi)
-
-ifeq "$(SECURE)" "yes"
- SECURE_GETENV = SECURE_GETENV
-else
- SECURE_GETENV = __SECURE_GETENV
-endif
-
-udev: common \
- build/$(COMMON_LIB) \
- build/$(LIBUDEV_REAL_NAME) \
- build/udevd \
- build/udevadm \
- build/accelerometer \
- build/ata_id \
- build/cdrom_id \
- build/scsi_id \
- build/v4l_id \
- build/mtd_probe \
- build/collect \
- build/udev.pc \
- build/libudev.pc
-
-cfg.h: udev-lfs-$(VERSION)/cfg.h
- sed -e 's/LFS-VERSION/$(SYSTEMD_VERSION)/' \
- -e 's/SECURE_GETENV/$(SECURE_GETENV)/' \
- udev-lfs-$(VERSION)/cfg.h > ./cfg.h
- @mkdir -p build
-
-common: cfg.h
- @touch common
-
-build/%o: %c common
- @echo CC $<
- $(VB)gcc -c $(WARN) $(OPTIONS2) $(INCLUDE) $(DEF) -o $@ $<
-
-# Sources from src/libudev use -fvisibility=hidden
-build/%o: src/libudev/%c common
- @echo CC $<
- $(VB)gcc -c $(WARN) $(OPTIONS) $(INCLUDE) $(DEF) -o $@ $<
-
-# Sources from src/shared use -fvisibility=hidden
-build/%o: src/shared/%c common
- @echo CC $<
- $(VB)gcc -c $(WARN) $(OPTIONS) $(INCLUDE) $(DEF) -o $@ $<
-
-# Build the dynamic library
-build/$(LIBUDEV_REAL_NAME): $(LIBUDEV_OBJS) build/$(COMMON_LIB)
- @echo LINK $@
- $(VB)gcc -shared -fPIC -DPIC \
- $(LIBUDEV_OBJS) \
- build/$(COMMON_LIB) \
- -Wl,--no-whole-archive -ldl -lrt -O2 \
- -Wl,--as-needed \
- -Wl,--gc-sections \
- -Wl,--no-undefined \
- -Wl,-soname,$(LIBUDEV_LINK_NAME) \
- -o build/$(LIBUDEV_REAL_NAME)
-
- ln -sfn $(LIBUDEV_REAL_NAME) build/$(LIBUDEV_LINK_NAME)
- ln -sfn $(LIBUDEV_REAL_NAME) build/$(LIBUDEV_SONAME)
-
- #-Wl,--whole-archive \
- #-Wl,--version-script=./src/libudev/libudev.sym \
-
-# Build the static library for internal use
-build/$(COMMON_LIB): $(COMMON_OBJS) $(LIBUDEV_OBJS) $(UDEVD_OBJS)
- @echo AR $@
- $(VB)ar rcs build/$(COMMON_LIB) $(COMMON_OBJS) $(LIBUDEV_OBJS)
-
-build/udevd: build/$(COMMON_LIB) build/udevd.o
- @echo LINK $@
- $(VB)gcc build/udevd.o $(UDEVD_OBJS) -o $@ $(LDFLAGS2) \
- build/udev-local.a build/$(COMMON_LIB)
- $(VB)strip --strip-unneeded $@
-
-build/udevadm: $(UDEV_ADMIN_OBJS) build/$(COMMON_LIB)
- @echo LINK $@
- $(VB)gcc $(UDEV_ADMIN_OBJS) -o $@ $(LDFLAGS2) build/$(COMMON_LIB)
- $(VB)strip --strip-unneeded $@
-
-build/accelerometer: build/accelerometer.o build/$(COMMON_LIB)
- @echo LINK $@
- $(VB)gcc build/accelerometer.o -o $@ \
- build/udev-local.a build/$(COMMON_LIB) $(LDFLAGS1) -lm
- $(VB)strip --strip-unneeded $@
-
-build/scsi_id: build/scsi_id.o build/scsi_serial.o build/$(COMMON_LIB)
- @echo LINK $@
- $(VB)gcc build/scsi_id.o build/scsi_serial.o -o $@ \
- build/udev-local.a build/$(COMMON_LIB) $(LDFLAGS1)
- $(VB)strip --strip-unneeded $@
-
-build/ata_id: build/ata_id.o build/$(COMMON_LIB)
- @echo LINK $@
- $(VB)gcc build/ata_id.o -o $@ build/udev-local.a build/$(COMMON_LIB) $(LDFLAGS1)
- $(VB)strip --strip-unneeded $@
-
-build/cdrom_id: build/cdrom_id.o build/$(COMMON_LIB)
- @echo LINK $@
- $(VB)gcc build/cdrom_id.o -o $@ build/udev-local.a build/$(COMMON_LIB) $(LDFLAGS1)
- $(VB)strip --strip-unneeded $@
-
-build/v4l_id: build/v4l_id.o build/$(COMMON_LIB)
- @echo LINK $@
- $(VB)gcc build/v4l_id.o -o $@ build/udev-local.a build/$(COMMON_LIB) $(LDFLAGS1)
- $(VB)strip --strip-unneeded $@
-
-build/mtd_probe: build/mtd_probe.o build/probe_smartmedia.o build/$(COMMON_LIB)
- @echo LINK $@
- $(VB)gcc build/mtd_probe.o build/probe_smartmedia.o -o $@ \
- build/udev-local.a build/$(COMMON_LIB) $(LDFLAGS1)
- $(VB)strip --strip-unneeded $@
-
-build/collect: build/collect.o build/$(COMMON_LIB)
- @echo LINK $@
- $(VB)gcc build/collect.o -o $@ build/udev-local.a build/$(COMMON_LIB) $(LDFLAGS1)
- $(VB)strip --strip-unneeded $@
-
-build/%pc: %pc.in common
- @echo GEN $@
- @$(SED_PROCESS)
-
-install: udev
- @mkdir -pv $(DESTDIR)/lib/udev/devices/pts $(DESTDIR)/lib/udev/rules.d \
- $(DESTDIR){,/usr}/lib/firmware $(DESTDIR)/sbin \
- $(DESTDIR)/usr/lib/pkgconfig $(DESTDIR)/etc/udev/rules.d \
- $(DESTDIR)/usr/share/man/man{7,8} $(DESTDIR)/usr/include \
- $(DESTDIR)/usr/share/doc/udev-$(SYSTEMD_VERSION)/lfs \
- $(DESTDIR)/usr/share/gtk-doc/html/libudev
-
- # Copy executables
- @cp -v build/udevadm $(DESTDIR)/sbin
- @cp -v build/{udevd,accelerometer,ata_id,cdrom_id,collect,mtd_probe,scsi_id,v4l_id} \
- $(DESTDIR)/lib/udev
- @cp -v udev-lfs-$(VERSION)/write* $(DESTDIR)/lib/udev
- @cp -v udev-lfs-$(VERSION)/*functions $(DESTDIR)/lib/udev
-
- # Copy and set up library and associated files
- @cp -v build/{lib,}udev.pc $(DESTDIR)/usr/lib/pkgconfig
- @cp -v build/$(LIBUDEV_REAL_NAME) $(DESTDIR)/lib
-
- ln -svfn ../../lib/$(LIBUDEV_REAL_NAME) $(DESTDIR)/usr/lib/$(LIBUDEV_SONAME)
- ln -svfn $(LIBUDEV_REAL_NAME) $(DESTDIR)/lib/$(LIBUDEV_LINK_NAME)
-
- # Copy the libudev header
- @cp -v src/libudev/libudev.h $(DESTDIR)/usr/include
-
- # Create null device and copy rules
- @cp -v rules/* $(DESTDIR)/lib/udev/rules.d
- @rm -v $(DESTDIR)/lib/udev/rules.d/99*
- @cp -v udev-lfs-$(VERSION)/*.rules $(DESTDIR)/etc/udev/rules.d
-
- # Set up hardware DB
- @mkdir -pv $(DESTDIR)/lib/udev/hwdb.d
- @cp hwdb/* $(DESTDIR)/lib/udev/hwdb.d
- # @build/udevadm hwdb --update
-
- # Copy documentation
- @cp -v udev-lfs-$(VERSION)/udev.7 $(DESTDIR)/usr/share/man/man7
- @cp -v udev-lfs-$(VERSION)/udevadm.8 $(DESTDIR)/usr/share/man/man8
- @cp -v udev-lfs-$(VERSION)/udevd.8 $(DESTDIR)/usr/share/man/man8
- @cp -v udev-lfs-$(VERSION)/README $(DESTDIR)/usr/share/doc/udev-$(SYSTEMD_VERSION)/lfs
- @cp -v udev-lfs-$(VERSION)/*.txt $(DESTDIR)/usr/share/doc/udev-$(SYSTEMD_VERSION)/lfs
- @cp -v docs/libudev/*.{txt,types} $(DESTDIR)/usr/share/doc/udev-$(SYSTEMD_VERSION)
- @cp -v docs/libudev/html/* $(DESTDIR)/usr/share/gtk-doc/html/libudev
-
- # Copy misc
+ # Copy rules
+ @cp -v udev-lfs-$(VERSION)/*.rules $(DESTDIR)/etc/udev/rules.d
+ @cp -v udev-lfs-$(VERSION)/*_rules $(DESTDIR)/lib/udev
@cp -v udev-lfs-$(VERSION)/init-net-rules.sh $(DESTDIR)/lib/udev
-include udev-lfs-$(VERSION)/makefile-incl.gudev
-include udev-lfs-$(VERSION)/makefile-incl.gir
-include udev-lfs-$(VERSION)/makefile-incl.keymap
-
-all : udev keymap gudev gir-data
-install-all: install install-keymap install-gudev install-gir-data
-
-clean:
- rm -rf build
- rm -f cfg.h
- rm -f common
- rm -f src/gudev/gudevmarshal.h
- rm -f src/gudev/gudevmarshal.c
- rm -f src/gudev/gudevenumtypes.h
- rm -f src/gudev/gudevenumtypes.c
- rm -f src/udev/keymap/keys.txt
- rm -f src/udev/keymap/keys-from-name.gperf
- rm -f src/udev/keymap/keys-from-name.h
- rm -f src/udev/keymap/keys-to-name.h
-
-.PHONY: clean
-
+ # Copy documentation
+ @cp -v udev-lfs-$(VERSION)/README $(DESTDIR)/usr/share/doc/udev-$(VERSION)/lfs
+ @cp -v udev-lfs-$(VERSION)/*.txt $(DESTDIR)/usr/share/doc/udev-$(VERSION)/lfs
diff --git a/udev-lfs/README b/udev-lfs/README
index d9e39c159..61d0e86bc 100644
--- a/udev-lfs/README
+++ b/udev-lfs/README
@@ -1,7 +1,7 @@
The udev-lfs set of files is a customization of systemd.
In 2012, udev was merged with systemd and a build methodology
-incompatible with LFS. These files extract the udev
-code from systemd for LFS.
+incompatible with LFS. These files add cusom udev rules
+for LFS.
These files are distributed in the form of a tar file available
from the LFS file mirrors. The tarball is created with:
@@ -10,13 +10,7 @@ mkdir /tmp/udev-lfs-$VERSION
cp -av * /tmp/udev-lfs-$VERSION
tar -jcf /tmp/udev-lfs-$VERSION.tar.bz2 -C /tmp udev-lfs-$VERSION
-Makefile.lfs - The main LFS Makefile. Builds and installs
- udev from systemd sources.
-
-makefile-incl.keymap - BLFS makefile for keymap and supporting files
-makefile-incl.gudev - BLFS makefile for libgudev
-makefile-incl.gir - BLFS makefile for GObject files
-
+Makefile.lfs - The LFS Makefile. Installs udev rules for LFS.
contrib - Useful rules from debian
contrib/debian
@@ -31,8 +25,6 @@ rule_generator.functions
55-lfs.txt - Documentation for LFS installed rules
-cfg.h - Basic info needed for udev compilation
-
ChangeLog - Log of changes to 55-lfs-rules
init-net-rules.sh - A script for establishing persistent network
diff --git a/udev-lfs/cfg.h b/udev-lfs/cfg.h
deleted file mode 100644
index cec845d6c..000000000
--- a/udev-lfs/cfg.h
+++ /dev/null
@@ -1,64 +0,0 @@
-/* Custom udev (from systemd) configuration header file for LFS */
-
-/* Define to 1 if you have the <dlfcn.h> header file. */
-#define HAVE_DLFCN_H 1
-
-/* Define to 1 if you have the <inttypes.h> header file. */
-#define HAVE_INTTYPES_H 1
-
-/* Define if kmod is available */
-#define HAVE_KMOD 1
-
-/* Define if blkid is available */
-#define HAVE_BLKID 1
-
-/* Define to 1 if you have the <memory.h> header file. */
-#define HAVE_MEMORY_H 1
-
-/* Define to 1 if you have the `secure_getenv' function. */
-/* For glibc before 2.17, this should be HAVE___SECURE_GETENV */
-#define HAVE_SECURE_GETENV 1
-
-/* Define to 1 if you have the <stdint.h> header file. */
-#define HAVE_STDINT_H 1
-
-/* Define to 1 if you have the <stdlib.h> header file. */
-#define HAVE_STDLIB_H 1
-
-/* Define to 1 if you have the <strings.h> header file. */
-#define HAVE_STRINGS_H 1
-
-/* Define to 1 if you have the <string.h> header file. */
-#define HAVE_STRING_H 1
-
-/* Define to 1 if you have the <sys/stat.h> header file. */
-#define HAVE_SYS_STAT_H 1
-
-/* Define to 1 if you have the <sys/types.h> header file. */
-#define HAVE_SYS_TYPES_H 1
-
-/* Define to 1 if you have the declaration of `name_to_handle_at', and to 0 if
- * you don't. */
-#define HAVE_DECL_NAME_TO_HANDLE_AT 1
-
-/* Define to 1 if you have the <unistd.h> header file. */
-#define HAVE_UNISTD_H 1
-
-/* Define if XZ is available */
-#define HAVE_XZ 1
-
-/* Name of package */
-#define PACKAGE "udev"
-
-/* Define to 1 if you have the ANSI C header files. */
-#define STDC_HEADERS 1
-
-/* Enable GNU extensions on systems that have them. */
-# define _GNU_SOURCE 1
-
-/* Version number of package */
-#define VERSION "LFS-VERSION"
-
-#define HAVE_DECL_PIVOT_ROOT 0
-#define HAVE_DECL_GETTID 0
-#define HAVE_NAME_TO_HANDLE_AT 1
diff --git a/udev-lfs/keyboard-keys-from-name.h b/udev-lfs/keyboard-keys-from-name.h
deleted file mode 100644
index e47cb2a95..000000000
--- a/udev-lfs/keyboard-keys-from-name.h
+++ /dev/null
@@ -1,923 +0,0 @@
-/* ANSI-C code produced by gperf version 3.0.4 */
-/* Command-line: gperf -L ANSI-C -t -N keyboard_lookup_key -H hash_key_name -p -C */
-/* Computed positions: -k'1-4,$' */
-
-#if !((' ' == 32) && ('!' == 33) && ('"' == 34) && ('#' == 35) \
- && ('%' == 37) && ('&' == 38) && ('\'' == 39) && ('(' == 40) \
- && (')' == 41) && ('*' == 42) && ('+' == 43) && (',' == 44) \
- && ('-' == 45) && ('.' == 46) && ('/' == 47) && ('0' == 48) \
- && ('1' == 49) && ('2' == 50) && ('3' == 51) && ('4' == 52) \
- && ('5' == 53) && ('6' == 54) && ('7' == 55) && ('8' == 56) \
- && ('9' == 57) && (':' == 58) && (';' == 59) && ('<' == 60) \
- && ('=' == 61) && ('>' == 62) && ('?' == 63) && ('A' == 65) \
- && ('B' == 66) && ('C' == 67) && ('D' == 68) && ('E' == 69) \
- && ('F' == 70) && ('G' == 71) && ('H' == 72) && ('I' == 73) \
- && ('J' == 74) && ('K' == 75) && ('L' == 76) && ('M' == 77) \
- && ('N' == 78) && ('O' == 79) && ('P' == 80) && ('Q' == 81) \
- && ('R' == 82) && ('S' == 83) && ('T' == 84) && ('U' == 85) \
- && ('V' == 86) && ('W' == 87) && ('X' == 88) && ('Y' == 89) \
- && ('Z' == 90) && ('[' == 91) && ('\\' == 92) && (']' == 93) \
- && ('^' == 94) && ('_' == 95) && ('a' == 97) && ('b' == 98) \
- && ('c' == 99) && ('d' == 100) && ('e' == 101) && ('f' == 102) \
- && ('g' == 103) && ('h' == 104) && ('i' == 105) && ('j' == 106) \
- && ('k' == 107) && ('l' == 108) && ('m' == 109) && ('n' == 110) \
- && ('o' == 111) && ('p' == 112) && ('q' == 113) && ('r' == 114) \
- && ('s' == 115) && ('t' == 116) && ('u' == 117) && ('v' == 118) \
- && ('w' == 119) && ('x' == 120) && ('y' == 121) && ('z' == 122) \
- && ('{' == 123) && ('|' == 124) && ('}' == 125) && ('~' == 126))
-/* The character set is not based on ISO-646. */
-#error "gperf generated tables don't work with this execution character set. Please report a bug to <bug-gnu-gperf@gnu.org>."
-#endif
-
-struct key { const char* name; unsigned short id; };
-
-#define TOTAL_KEYWORDS 392
-#define MIN_WORD_LENGTH 1
-#define MAX_WORD_LENGTH 16
-#define MIN_HASH_VALUE 1
-#define MAX_HASH_VALUE 1503
-/* maximum key range = 1503, duplicates = 0 */
-
-#ifdef __GNUC__
-__inline
-#else
-#ifdef __cplusplus
-inline
-#endif
-#endif
-static unsigned int
-hash_key_name (register const char *str, register unsigned int len)
-{
- static const unsigned short asso_values[] =
- {
- 1504, 1504, 1504, 1504, 1504, 1504, 1504, 1504, 1504, 1504,
- 1504, 1504, 1504, 1504, 1504, 1504, 1504, 1504, 1504, 1504,
- 1504, 1504, 1504, 1504, 1504, 1504, 1504, 1504, 1504, 1504,
- 1504, 1504, 1504, 1504, 1504, 1504, 1504, 1504, 1504, 1504,
- 1504, 1504, 1504, 1504, 1504, 1504, 1504, 1504, 130, 165,
- 295, 285, 310, 370, 335, 220, 215, 75, 1504, 1504,
- 1504, 1504, 1504, 1504, 1504, 1504, 1504, 1504, 1504, 1504,
- 1504, 1504, 1504, 1504, 1504, 1504, 1504, 1504, 1504, 1504,
- 1504, 1504, 1504, 1504, 1504, 1504, 1504, 1504, 1504, 1504,
- 1504, 1504, 1504, 1504, 1504, 75, 1504, 10, 330, 25,
- 80, 5, 395, 260, 345, 185, 50, 300, 110, 30,
- 145, 35, 15, 45, 65, 20, 0, 210, 455, 375,
- 55, 95, 85, 1504, 1504, 1504, 1504, 1504, 1504, 1504,
- 1504, 1504, 1504, 1504, 1504, 1504, 1504, 1504, 1504, 1504,
- 1504, 1504, 1504, 1504, 1504, 1504, 1504, 1504, 1504, 1504,
- 1504, 1504, 1504, 1504, 1504, 1504, 1504, 1504, 1504, 1504,
- 1504, 1504, 1504, 1504, 1504, 1504, 1504, 1504, 1504, 1504,
- 1504, 1504, 1504, 1504, 1504, 1504, 1504, 1504, 1504, 1504,
- 1504, 1504, 1504, 1504, 1504, 1504, 1504, 1504, 1504, 1504,
- 1504, 1504, 1504, 1504, 1504, 1504, 1504, 1504, 1504, 1504,
- 1504, 1504, 1504, 1504, 1504, 1504, 1504, 1504, 1504, 1504,
- 1504, 1504, 1504, 1504, 1504, 1504, 1504, 1504, 1504, 1504,
- 1504, 1504, 1504, 1504, 1504, 1504, 1504, 1504, 1504, 1504,
- 1504, 1504, 1504, 1504, 1504, 1504, 1504, 1504, 1504, 1504,
- 1504, 1504, 1504, 1504, 1504, 1504, 1504, 1504, 1504, 1504,
- 1504, 1504, 1504, 1504, 1504, 1504
- };
- register int hval = len;
-
- switch (hval)
- {
- default:
- hval += asso_values[(unsigned char)str[3]];
- /*FALLTHROUGH*/
- case 3:
- hval += asso_values[(unsigned char)str[2]];
- /*FALLTHROUGH*/
- case 2:
- hval += asso_values[(unsigned char)str[1]];
- /*FALLTHROUGH*/
- case 1:
- hval += asso_values[(unsigned char)str[0]];
- break;
- }
- return hval + asso_values[(unsigned char)str[len - 1]];
-}
-
-#ifdef __GNUC__
-__inline
-#if defined __GNUC_STDC_INLINE__ || defined __GNUC_GNU_INLINE__
-__attribute__ ((__gnu_inline__))
-#endif
-#endif
-const struct key *
-keyboard_lookup_key (register const char *str, register unsigned int len)
-{
- static const struct key wordlist[] =
- {
- {(char*)0},
- {"t", KEY_T},
- {(char*)0}, {(char*)0}, {(char*)0}, {(char*)0},
- {(char*)0}, {(char*)0}, {(char*)0}, {(char*)0},
- {(char*)0},
- {"e", KEY_E},
- {(char*)0}, {(char*)0}, {(char*)0}, {(char*)0},
- {(char*)0}, {(char*)0}, {(char*)0}, {(char*)0},
- {(char*)0},
- {"a", KEY_A},
- {(char*)0}, {(char*)0}, {(char*)0}, {(char*)0},
- {(char*)0}, {(char*)0}, {(char*)0}, {(char*)0},
- {(char*)0},
- {"p", KEY_P},
- {(char*)0},
- {"sat", KEY_SAT},
- {(char*)0}, {(char*)0}, {(char*)0}, {(char*)0},
- {(char*)0},
- {"tape", KEY_TAPE},
- {(char*)0},
- {"s", KEY_S},
- {(char*)0}, {(char*)0}, {(char*)0}, {(char*)0},
- {(char*)0}, {(char*)0}, {(char*)0}, {(char*)0},
- {(char*)0},
- {"c", KEY_C},
- {(char*)0}, {(char*)0}, {(char*)0},
- {"paste", KEY_PASTE},
- {(char*)0}, {(char*)0}, {(char*)0}, {(char*)0},
- {(char*)0},
- {"m", KEY_M},
- {(char*)0}, {(char*)0},
- {"text", KEY_TEXT},
- {(char*)0}, {(char*)0},
- {"pc", KEY_PC},
- {(char*)0}, {(char*)0}, {(char*)0},
- {"o", KEY_O},
- {(char*)0}, {(char*)0}, {(char*)0}, {(char*)0},
- {(char*)0}, {(char*)0},
- {"esc", KEY_ESC},
- {(char*)0},
- {"space", KEY_SPACE},
- {"camera_left", KEY_CAMERA_LEFT},
- {"camera_right", KEY_CAMERA_RIGHT},
- {(char*)0},
- {"camera_zoomout", KEY_CAMERA_ZOOMOUT},
- {(char*)0},
- {"camera", KEY_CAMERA},
- {(char*)0}, {(char*)0},
- {"stop", KEY_STOP},
- {(char*)0},
- {"q", KEY_Q},
- {(char*)0}, {(char*)0},
- {"camera_up", KEY_CAMERA_UP},
- {"apostrophe", KEY_APOSTROPHE},
- {(char*)0},
- {"restart", KEY_RESTART},
- {(char*)0}, {(char*)0}, {(char*)0},
- {"j", KEY_J},
- {"camera_focus", KEY_CAMERA_FOCUS},
- {(char*)0}, {(char*)0}, {(char*)0}, {(char*)0},
- {(char*)0}, {(char*)0}, {(char*)0}, {(char*)0},
- {"x", KEY_X},
- {(char*)0},
- {"database", KEY_DATABASE},
- {(char*)0}, {(char*)0},
- {"spreadsheet", KEY_SPREADSHEET},
- {"compose", KEY_COMPOSE},
- {"dot", KEY_DOT},
- {(char*)0}, {(char*)0}, {(char*)0}, {(char*)0},
- {(char*)0}, {(char*)0}, {(char*)0}, {(char*)0},
- {(char*)0}, {(char*)0}, {(char*)0}, {(char*)0},
- {"r", KEY_R},
- {(char*)0}, {(char*)0}, {(char*)0},
- {"comma", KEY_COMMA},
- {(char*)0},
- {"ro", KEY_RO},
- {"alterase", KEY_ALTERASE},
- {"memo", KEY_MEMO},
- {"sport", KEY_SPORT},
- {(char*)0}, {(char*)0}, {(char*)0},
- {"last", KEY_LAST},
- {(char*)0},
- {"select", KEY_SELECT},
- {(char*)0}, {(char*)0},
- {"messenger", KEY_MESSENGER},
- {(char*)0},
- {"9", KEY_9},
- {(char*)0}, {(char*)0}, {(char*)0},
- {"props", KEY_PROPS},
- {"stopcd", KEY_STOPCD},
- {(char*)0}, {(char*)0},
- {"mode", KEY_MODE},
- {"sleep", KEY_SLEEP},
- {"d", KEY_D},
- {(char*)0}, {(char*)0}, {(char*)0}, {(char*)0},
- {(char*)0}, {(char*)0},
- {"scrollup", KEY_SCROLLUP},
- {(char*)0},
- {"macro", KEY_MACRO},
- {"z", KEY_Z},
- {"ejectcd", KEY_EJECTCD},
- {(char*)0}, {(char*)0},
- {"scale", KEY_SCALE},
- {(char*)0},
- {"ejectclosecd", KEY_EJECTCLOSECD},
- {"computer", KEY_COMPUTER},
- {(char*)0}, {(char*)0}, {(char*)0}, {(char*)0},
- {"reserved", KEY_RESERVED},
- {(char*)0}, {(char*)0}, {(char*)0},
- {"cd", KEY_CD},
- {(char*)0}, {(char*)0},
- {"msdos", KEY_MSDOS},
- {"y", KEY_Y},
- {"zoomout", KEY_ZOOMOUT},
- {(char*)0},
- {"zoomreset", KEY_ZOOMRESET},
- {(char*)0}, {(char*)0}, {(char*)0}, {(char*)0},
- {"calc", KEY_CALC},
- {"close", KEY_CLOSE},
- {(char*)0}, {(char*)0}, {(char*)0}, {(char*)0},
- {(char*)0}, {(char*)0}, {(char*)0}, {(char*)0},
- {"next", KEY_NEXT},
- {(char*)0},
- {"delete", KEY_DELETE},
- {(char*)0}, {(char*)0}, {(char*)0},
- {"deletefile", KEY_DELETEFILE},
- {"record", KEY_RECORD},
- {(char*)0}, {(char*)0},
- {"zoom", KEY_ZOOM},
- {"clear", KEY_CLEAR},
- {"l", KEY_L},
- {(char*)0},
- {"calendar", KEY_CALENDAR},
- {"redo", KEY_REDO},
- {"enter", KEY_ENTER},
- {"camera_down", KEY_CAMERA_DOWN},
- {(char*)0},
- {"camera_zoomin", KEY_CAMERA_ZOOMIN},
- {"time", KEY_TIME},
- {(char*)0}, {(char*)0}, {(char*)0},
- {"red", KEY_RED},
- {(char*)0}, {(char*)0}, {(char*)0}, {(char*)0},
- {"cut", KEY_CUT},
- {(char*)0}, {(char*)0}, {(char*)0},
- {"up", KEY_UP},
- {(char*)0},
- {"playpause", KEY_PLAYPAUSE},
- {(char*)0}, {(char*)0}, {(char*)0}, {(char*)0},
- {"exit", KEY_EXIT},
- {"sysrq", KEY_SYSRQ},
- {(char*)0}, {(char*)0}, {(char*)0},
- {"mute", KEY_MUTE},
- {"setup", KEY_SETUP},
- {(char*)0}, {(char*)0}, {(char*)0}, {(char*)0},
- {(char*)0},
- {"0", KEY_0},
- {"presentation", KEY_PRESENTATION},
- {"sendfile", KEY_SENDFILE},
- {(char*)0},
- {"pause", KEY_PAUSE},
- {"screen", KEY_SCREEN},
- {(char*)0}, {(char*)0},
- {"copy", KEY_COPY},
- {(char*)0}, {(char*)0}, {(char*)0}, {(char*)0},
- {"edit", KEY_EDIT},
- {(char*)0}, {(char*)0},
- {"closecd", KEY_CLOSECD},
- {"iso", KEY_ISO},
- {(char*)0}, {(char*)0}, {(char*)0},
- {"micmute", KEY_MICMUTE},
- {"del_line", KEY_DEL_LINE},
- {(char*)0}, {(char*)0}, {(char*)0},
- {"cyclewindows", KEY_CYCLEWINDOWS},
- {(char*)0}, {(char*)0},
- {"touchpad_toggle", KEY_TOUCHPAD_TOGGLE},
- {"n", KEY_N},
- {(char*)0}, {(char*)0}, {(char*)0},
- {"reply", KEY_REPLY},
- {(char*)0},
- {"del_eos", KEY_DEL_EOS},
- {(char*)0}, {(char*)0},
- {"scrolldown", KEY_SCROLLDOWN},
- {"player", KEY_PLAYER},
- {(char*)0}, {(char*)0},
- {"teen", KEY_TEEN},
- {"title", KEY_TITLE},
- {(char*)0}, {(char*)0}, {(char*)0}, {(char*)0},
- {(char*)0},
- {"pageup", KEY_PAGEUP},
- {"media_repeat", KEY_MEDIA_REPEAT},
- {"end", KEY_END},
- {(char*)0},
- {"media", KEY_MEDIA},
- {"playcd", KEY_PLAYCD},
- {(char*)0},
- {"displaytoggle", KEY_DISPLAYTOGGLE},
- {"list", KEY_LIST},
- {(char*)0},
- {"cancel", KEY_CANCEL},
- {(char*)0}, {(char*)0}, {(char*)0}, {(char*)0},
- {(char*)0}, {(char*)0}, {(char*)0},
- {"play", KEY_PLAY},
- {"games", KEY_GAMES},
- {"1", KEY_1},
- {(char*)0},
- {"aux", KEY_AUX},
- {"send", KEY_SEND},
- {(char*)0},
- {"zoomin", KEY_ZOOMIN},
- {(char*)0},
- {"katakana", KEY_KATAKANA},
- {(char*)0}, {(char*)0},
- {"editor", KEY_EDITOR},
- {"pausecd", KEY_PAUSECD},
- {(char*)0}, {(char*)0},
- {"email", KEY_EMAIL},
- {"katakanahiragana", KEY_KATAKANAHIRAGANA},
- {(char*)0}, {(char*)0},
- {"open", KEY_OPEN},
- {(char*)0}, {(char*)0},
- {"suspend", KEY_SUSPEND},
- {(char*)0},
- {"euro", KEY_EURO},
- {(char*)0}, {(char*)0},
- {"connect", KEY_CONNECT},
- {(char*)0}, {(char*)0}, {(char*)0},
- {"insert", KEY_INSERT},
- {(char*)0}, {(char*)0}, {(char*)0}, {(char*)0},
- {(char*)0}, {(char*)0}, {(char*)0},
- {"goto", KEY_GOTO},
- {(char*)0},
- {"i", KEY_I},
- {(char*)0}, {(char*)0}, {(char*)0}, {(char*)0},
- {(char*)0},
- {"hp", KEY_HP},
- {"capslock", KEY_CAPSLOCK},
- {"documents", KEY_DOCUMENTS},
- {"radio", KEY_RADIO},
- {(char*)0}, {(char*)0}, {(char*)0},
- {"chat", KEY_CHAT},
- {"equal", KEY_EQUAL},
- {"option", KEY_OPTION},
- {"del_eol", KEY_DEL_EOL},
- {(char*)0},
- {"bassboost", KEY_BASSBOOST},
- {(char*)0}, {(char*)0},
- {"kpcomma", KEY_KPCOMMA},
- {"yen", KEY_YEN},
- {"semicolon", KEY_SEMICOLON},
- {(char*)0}, {(char*)0}, {(char*)0}, {(char*)0},
- {"kpjpcomma", KEY_KPJPCOMMA},
- {(char*)0}, {(char*)0}, {(char*)0}, {(char*)0},
- {(char*)0}, {(char*)0},
- {"dollar", KEY_DOLLAR},
- {(char*)0},
- {"mhp", KEY_MHP},
- {(char*)0}, {(char*)0}, {(char*)0},
- {"program", KEY_PROGRAM},
- {(char*)0}, {(char*)0},
- {"print", KEY_PRINT},
- {(char*)0}, {(char*)0}, {(char*)0}, {(char*)0},
- {(char*)0},
- {"u", KEY_U},
- {(char*)0}, {(char*)0},
- {"home", KEY_HOME},
- {"screenlock", KEY_SCREENLOCK},
- {"touchpad_on", KEY_TOUCHPAD_ON},
- {"context_menu", KEY_CONTEXT_MENU},
- {"homepage", KEY_HOMEPAGE},
- {"graphicseditor", KEY_GRAPHICSEDITOR},
- {"tuner", KEY_TUNER},
- {"8", KEY_8},
- {(char*)0},
- {"question", KEY_QUESTION},
- {"shop", KEY_SHOP},
- {"kpdot", KEY_KPDOT},
- {(char*)0}, {(char*)0},
- {"ins_line", KEY_INS_LINE},
- {"directory", KEY_DIRECTORY},
- {(char*)0},
- {"7", KEY_7},
- {"battery", KEY_BATTERY},
- {"pagedown", KEY_PAGEDOWN},
- {(char*)0}, {(char*)0}, {(char*)0}, {(char*)0},
- {(char*)0},
- {"mail", KEY_MAIL},
- {(char*)0},
- {"search", KEY_SEARCH},
- {(char*)0}, {(char*)0}, {(char*)0},
- {"scrolllock", KEY_SCROLLLOCK},
- {(char*)0},
- {"archive", KEY_ARCHIVE},
- {(char*)0}, {(char*)0},
- {"spellcheck", KEY_SPELLCHECK},
- {(char*)0}, {(char*)0}, {(char*)0}, {(char*)0},
- {(char*)0},
- {"kpplus", KEY_KPPLUS},
- {"numeric_star", KEY_NUMERIC_STAR},
- {"kp9", KEY_KP9},
- {(char*)0}, {(char*)0},
- {"kpplusminus", KEY_KPPLUSMINUS},
- {(char*)0},
- {"nextsong", KEY_NEXTSONG},
- {"numeric_9", KEY_NUMERIC_9},
- {(char*)0}, {(char*)0}, {(char*)0}, {(char*)0},
- {(char*)0}, {(char*)0}, {(char*)0},
- {"kpequal", KEY_KPEQUAL},
- {"numeric_pound", KEY_NUMERIC_POUND},
- {(char*)0},
- {"green", KEY_GREEN},
- {(char*)0}, {(char*)0}, {(char*)0},
- {"direction", KEY_DIRECTION},
- {(char*)0}, {(char*)0}, {(char*)0}, {(char*)0},
- {"help", KEY_HELP},
- {"sound", KEY_SOUND},
- {(char*)0}, {(char*)0}, {(char*)0},
- {"save", KEY_SAVE},
- {"power", KEY_POWER},
- {(char*)0}, {(char*)0}, {(char*)0}, {(char*)0},
- {(char*)0}, {(char*)0}, {(char*)0}, {(char*)0},
- {"undo", KEY_UNDO},
- {"slash", KEY_SLASH},
- {"images", KEY_IMAGES},
- {(char*)0}, {(char*)0},
- {"left", KEY_LEFT},
- {(char*)0},
- {"fastforward", KEY_FASTFORWARD},
- {"leftalt", KEY_LEFTALT},
- {(char*)0},
- {"leftshift", KEY_LEFTSHIFT},
- {(char*)0},
- {"g", KEY_G},
- {(char*)0}, {(char*)0},
- {"leftbrace", KEY_LEFTBRACE},
- {"audio", KEY_AUDIO},
- {(char*)0}, {(char*)0},
- {"leftmeta", KEY_LEFTMETA},
- {"numeric_0", KEY_NUMERIC_0},
- {(char*)0}, {(char*)0}, {(char*)0},
- {"linefeed", KEY_LINEFEED},
- {"move", KEY_MOVE},
- {"angle", KEY_ANGLE},
- {(char*)0},
- {"kpenter", KEY_KPENTER},
- {"language", KEY_LANGUAGE},
- {(char*)0}, {(char*)0}, {(char*)0}, {(char*)0},
- {"epg", KEY_EPG},
- {"dashboard", KEY_DASHBOARD},
- {"prog1", KEY_PROG1},
- {"addressbook", KEY_ADDRESSBOOK},
- {"f9", KEY_F9},
- {(char*)0},
- {"channelup", KEY_CHANNELUP},
- {"phone", KEY_PHONE},
- {(char*)0}, {(char*)0}, {(char*)0}, {(char*)0},
- {(char*)0}, {(char*)0},
- {"kpminus", KEY_KPMINUS},
- {(char*)0}, {(char*)0}, {(char*)0}, {(char*)0},
- {(char*)0}, {(char*)0},
- {"numeric_1", KEY_NUMERIC_1},
- {"hanja", KEY_HANJA},
- {(char*)0}, {(char*)0},
- {"previous", KEY_PREVIOUS},
- {"news", KEY_NEWS},
- {(char*)0},
- {"3", KEY_3},
- {(char*)0},
- {"subtitle", KEY_SUBTITLE},
- {(char*)0}, {(char*)0}, {(char*)0}, {(char*)0},
- {"kp0", KEY_KP0},
- {(char*)0}, {(char*)0}, {(char*)0}, {(char*)0},
- {(char*)0}, {(char*)0}, {(char*)0},
- {"kpleftparen", KEY_KPLEFTPAREN},
- {(char*)0}, {(char*)0},
- {"xfer", KEY_XFER},
- {(char*)0},
- {"2", KEY_2},
- {"frameforward", KEY_FRAMEFORWARD},
- {(char*)0}, {(char*)0},
- {"minus", KEY_MINUS},
- {(char*)0}, {(char*)0}, {(char*)0}, {(char*)0},
- {"switchvideomode", KEY_SWITCHVIDEOMODE},
- {"k", KEY_K},
- {(char*)0},
- {"pvr", KEY_PVR},
- {"menu", KEY_MENU},
- {(char*)0}, {(char*)0}, {(char*)0}, {(char*)0},
- {(char*)0}, {(char*)0}, {(char*)0}, {(char*)0},
- {"vcr", KEY_VCR},
- {"numeric_8", KEY_NUMERIC_8},
- {"again", KEY_AGAIN},
- {(char*)0}, {(char*)0},
- {"mp3", KEY_MP3},
- {"numeric_7", KEY_NUMERIC_7},
- {(char*)0},
- {"4", KEY_4},
- {(char*)0},
- {"hiragana", KEY_HIRAGANA},
- {"sat2", KEY_SAT2},
- {(char*)0}, {(char*)0}, {(char*)0},
- {"leftctrl", KEY_LEFTCTRL},
- {"fn_e", KEY_FN_E},
- {(char*)0}, {(char*)0}, {(char*)0},
- {"wordprocessor", KEY_WORDPROCESSOR},
- {(char*)0}, {(char*)0}, {(char*)0},
- {"ok", KEY_OK},
- {(char*)0}, {(char*)0},
- {"wps_button", KEY_WPS_BUTTON},
- {(char*)0},
- {"channel", KEY_CHANNEL},
- {(char*)0}, {(char*)0},
- {"front", KEY_FRONT},
- {(char*)0}, {(char*)0},
- {"kp1", KEY_KP1},
- {(char*)0}, {(char*)0},
- {"fn_esc", KEY_FN_ESC},
- {(char*)0}, {(char*)0}, {(char*)0},
- {"kpasterisk", KEY_KPASTERISK},
- {(char*)0}, {(char*)0}, {(char*)0},
- {"fn_s", KEY_FN_S},
- {"wimax", KEY_WIMAX},
- {"b", KEY_B},
- {(char*)0},
- {"brl_dot9", KEY_BRL_DOT9},
- {"blue", KEY_BLUE},
- {"prog3", KEY_PROG3},
- {(char*)0}, {(char*)0}, {(char*)0}, {(char*)0},
- {"first", KEY_FIRST},
- {"6", KEY_6},
- {"ab", KEY_AB},
- {"tab", KEY_TAB},
- {"twen", KEY_TWEN},
- {"prog2", KEY_PROG2},
- {(char*)0},
- {"touchpad_off", KEY_TOUCHPAD_OFF},
- {(char*)0},
- {"backspace", KEY_BACKSPACE},
- {(char*)0},
- {"channeldown", KEY_CHANNELDOWN},
- {(char*)0}, {(char*)0},
- {"numeric_3", KEY_NUMERIC_3},
- {(char*)0}, {(char*)0},
- {"fn", KEY_FN},
- {(char*)0}, {(char*)0},
- {"prog4", KEY_PROG4},
- {"h", KEY_H},
- {"10channelsup", KEY_10CHANNELSUP},
- {(char*)0},
- {"numeric_2", KEY_NUMERIC_2},
- {(char*)0}, {(char*)0}, {(char*)0},
- {"dvd", KEY_DVD},
- {(char*)0}, {(char*)0},
- {"yellow", KEY_YELLOW},
- {(char*)0}, {(char*)0},
- {"file", KEY_FILE},
- {(char*)0},
- {"display_off", KEY_DISPLAY_OFF},
- {(char*)0}, {(char*)0},
- {"numeric_4", KEY_NUMERIC_4},
- {(char*)0},
- {"wakeup", KEY_WAKEUP},
- {(char*)0},
- {"f19", KEY_F19},
- {(char*)0},
- {"break", KEY_BREAK},
- {"rewind", KEY_REWIND},
- {(char*)0}, {(char*)0},
- {"brl_dot10", KEY_BRL_DOT10},
- {(char*)0}, {(char*)0},
- {"kprightparen", KEY_KPRIGHTPAREN},
- {(char*)0}, {(char*)0}, {(char*)0}, {(char*)0},
- {"f1", KEY_F1},
- {(char*)0},
- {"bookmarks", KEY_BOOKMARKS},
- {(char*)0},
- {"power2", KEY_POWER2},
- {(char*)0}, {(char*)0},
- {"numeric_6", KEY_NUMERIC_6},
- {"video_next", KEY_VIDEO_NEXT},
- {"digits", KEY_DIGITS},
- {(char*)0}, {(char*)0}, {(char*)0},
- {"videophone", KEY_VIDEOPHONE},
- {"5", KEY_5},
- {(char*)0},
- {"muhenkan", KEY_MUHENKAN},
- {(char*)0}, {(char*)0}, {(char*)0},
- {"finance", KEY_FINANCE},
- {"kp8", KEY_KP8},
- {(char*)0}, {(char*)0},
- {"w", KEY_W},
- {(char*)0},
- {"brl_dot1", KEY_BRL_DOT1},
- {(char*)0}, {(char*)0},
- {"vendor", KEY_VENDOR},
- {(char*)0},
- {"kp7", KEY_KP7},
- {"zenkakuhankaku", KEY_ZENKAKUHANKAKU},
- {(char*)0}, {(char*)0}, {(char*)0}, {(char*)0},
- {(char*)0},
- {"video", KEY_VIDEO},
- {(char*)0}, {(char*)0}, {(char*)0},
- {"numeric_5", KEY_NUMERIC_5},
- {(char*)0}, {(char*)0}, {(char*)0}, {(char*)0},
- {(char*)0}, {(char*)0}, {(char*)0}, {(char*)0},
- {(char*)0},
- {"fn_d", KEY_FN_D},
- {(char*)0}, {(char*)0}, {(char*)0}, {(char*)0},
- {"down", KEY_DOWN},
- {(char*)0}, {(char*)0}, {(char*)0}, {(char*)0},
- {"wlan", KEY_WLAN},
- {(char*)0},
- {"f", KEY_F},
- {(char*)0}, {(char*)0}, {(char*)0}, {(char*)0},
- {(char*)0},
- {"kpslash", KEY_KPSLASH},
- {(char*)0},
- {"info", KEY_INFO},
- {"grave", KEY_GRAVE},
- {(char*)0},
- {"numlock", KEY_NUMLOCK},
- {"brl_dot8", KEY_BRL_DOT8},
- {(char*)0}, {(char*)0}, {(char*)0}, {(char*)0},
- {"brl_dot7", KEY_BRL_DOT7},
- {"frameback", KEY_FRAMEBACK},
- {(char*)0}, {(char*)0},
- {"previoussong", KEY_PREVIOUSSONG},
- {(char*)0}, {(char*)0}, {(char*)0}, {(char*)0},
- {(char*)0},
- {"keyboard", KEY_KEYBOARD},
- {"voicemail", KEY_VOICEMAIL},
- {"102nd", KEY_102ND},
- {(char*)0}, {(char*)0},
- {"f10", KEY_F10},
- {"10channelsdown", KEY_10CHANNELSDOWN},
- {(char*)0}, {(char*)0},
- {"f8", KEY_F8},
- {(char*)0}, {(char*)0}, {(char*)0}, {(char*)0},
- {(char*)0},
- {"volumeup", KEY_VOLUMEUP},
- {(char*)0}, {(char*)0}, {(char*)0},
- {"f7", KEY_F7},
- {(char*)0}, {(char*)0}, {(char*)0},
- {"logoff", KEY_LOGOFF},
- {(char*)0}, {(char*)0}, {(char*)0}, {(char*)0},
- {(char*)0}, {(char*)0}, {(char*)0}, {(char*)0},
- {(char*)0}, {(char*)0}, {(char*)0}, {(char*)0},
- {(char*)0}, {(char*)0}, {(char*)0}, {(char*)0},
- {(char*)0}, {(char*)0},
- {"right", KEY_RIGHT},
- {"brightness_cycle", KEY_BRIGHTNESS_CYCLE},
- {(char*)0},
- {"rightalt", KEY_RIGHTALT},
- {(char*)0},
- {"rightshift", KEY_RIGHTSHIFT},
- {"config", KEY_CONFIG},
- {"brightnessup", KEY_BRIGHTNESSUP},
- {(char*)0}, {(char*)0},
- {"rightbrace", KEY_RIGHTBRACE},
- {(char*)0}, {(char*)0},
- {"brl_dot3", KEY_BRL_DOT3},
- {"rightmeta", KEY_RIGHTMETA},
- {(char*)0}, {(char*)0},
- {"hangeul", KEY_HANGEUL},
- {(char*)0}, {(char*)0}, {(char*)0}, {(char*)0},
- {"refresh", KEY_REFRESH},
- {"brl_dot2", KEY_BRL_DOT2},
- {(char*)0}, {(char*)0}, {(char*)0}, {(char*)0},
- {"kp3", KEY_KP3},
- {"find", KEY_FIND},
- {"brightness_zero", KEY_BRIGHTNESS_ZERO},
- {(char*)0}, {(char*)0},
- {"f11", KEY_F11},
- {(char*)0}, {(char*)0}, {(char*)0}, {(char*)0},
- {"brl_dot4", KEY_BRL_DOT4},
- {(char*)0}, {(char*)0}, {(char*)0}, {(char*)0},
- {"new", KEY_NEW},
- {(char*)0}, {(char*)0}, {(char*)0}, {(char*)0},
- {"kp2", KEY_KP2},
- {(char*)0}, {(char*)0},
- {"v", KEY_V},
- {"tv", KEY_TV},
- {(char*)0},
- {"kbdillumtoggle", KEY_KBDILLUMTOGGLE},
- {(char*)0}, {(char*)0}, {(char*)0}, {(char*)0},
- {"slow", KEY_SLOW},
- {"kbdillumup", KEY_KBDILLUMUP},
- {(char*)0}, {(char*)0},
- {"brl_dot6", KEY_BRL_DOT6},
- {"favorites", KEY_FAVORITES},
- {(char*)0}, {(char*)0}, {(char*)0}, {(char*)0},
- {(char*)0}, {(char*)0}, {(char*)0}, {(char*)0},
- {(char*)0}, {(char*)0}, {(char*)0}, {(char*)0},
- {(char*)0},
- {"kp4", KEY_KP4},
- {(char*)0}, {(char*)0}, {(char*)0}, {(char*)0},
- {(char*)0}, {(char*)0}, {(char*)0},
- {"henkan", KEY_HENKAN},
- {(char*)0}, {(char*)0},
- {"fn_1", KEY_FN_1},
- {(char*)0}, {(char*)0},
- {"unknown", KEY_UNKNOWN},
- {"f20", KEY_F20},
- {(char*)0}, {(char*)0}, {(char*)0},
- {"forward", KEY_FORWARD},
- {"brl_dot5", KEY_BRL_DOT5},
- {(char*)0}, {(char*)0}, {(char*)0}, {(char*)0},
- {(char*)0}, {(char*)0},
- {"volumedown", KEY_VOLUMEDOWN},
- {(char*)0},
- {"f3", KEY_F3},
- {(char*)0},
- {"back", KEY_BACK},
- {(char*)0}, {(char*)0}, {(char*)0}, {(char*)0},
- {"rightctrl", KEY_RIGHTCTRL},
- {(char*)0}, {(char*)0}, {(char*)0}, {(char*)0},
- {(char*)0}, {(char*)0}, {(char*)0},
- {"shuffle", KEY_SHUFFLE},
- {(char*)0}, {(char*)0}, {(char*)0}, {(char*)0},
- {"f2", KEY_F2},
- {"kp6", KEY_KP6},
- {(char*)0}, {(char*)0},
- {"forwardmail", KEY_FORWARDMAIL},
- {(char*)0},
- {"f18", KEY_F18},
- {(char*)0}, {(char*)0}, {(char*)0}, {(char*)0},
- {(char*)0},
- {"brightnessdown", KEY_BRIGHTNESSDOWN},
- {(char*)0}, {(char*)0}, {(char*)0},
- {"f17", KEY_F17},
- {(char*)0}, {(char*)0}, {(char*)0}, {(char*)0},
- {(char*)0},
- {"bluetooth", KEY_BLUETOOTH},
- {(char*)0}, {(char*)0}, {(char*)0}, {(char*)0},
- {(char*)0}, {(char*)0}, {(char*)0},
- {"f4", KEY_F4},
- {(char*)0},
- {"backslash", KEY_BACKSLASH},
- {(char*)0}, {(char*)0}, {(char*)0},
- {"f21", KEY_F21},
- {(char*)0}, {(char*)0}, {(char*)0}, {(char*)0},
- {(char*)0}, {(char*)0}, {(char*)0}, {(char*)0},
- {(char*)0}, {(char*)0}, {(char*)0}, {(char*)0},
- {(char*)0}, {(char*)0}, {(char*)0}, {(char*)0},
- {(char*)0}, {(char*)0}, {(char*)0}, {(char*)0},
- {(char*)0}, {(char*)0}, {(char*)0}, {(char*)0},
- {"tv2", KEY_TV2},
- {(char*)0}, {(char*)0}, {(char*)0},
- {"kbdillumdown", KEY_KBDILLUMDOWN},
- {(char*)0}, {(char*)0}, {(char*)0}, {(char*)0},
- {(char*)0},
- {"kp5", KEY_KP5},
- {(char*)0}, {(char*)0},
- {"rfkill", KEY_RFKILL},
- {(char*)0}, {(char*)0}, {(char*)0}, {(char*)0},
- {(char*)0},
- {"f6", KEY_F6},
- {(char*)0}, {(char*)0}, {(char*)0}, {(char*)0},
- {(char*)0}, {(char*)0}, {(char*)0}, {(char*)0},
- {(char*)0}, {(char*)0}, {(char*)0}, {(char*)0},
- {(char*)0}, {(char*)0}, {(char*)0}, {(char*)0},
- {(char*)0}, {(char*)0}, {(char*)0}, {(char*)0},
- {(char*)0}, {(char*)0},
- {"fn_f9", KEY_FN_F9},
- {(char*)0}, {(char*)0}, {(char*)0}, {(char*)0},
- {(char*)0}, {(char*)0}, {(char*)0}, {(char*)0},
- {(char*)0}, {(char*)0}, {(char*)0}, {(char*)0},
- {(char*)0}, {(char*)0}, {(char*)0}, {(char*)0},
- {(char*)0}, {(char*)0}, {(char*)0}, {(char*)0},
- {(char*)0}, {(char*)0}, {(char*)0}, {(char*)0},
- {(char*)0}, {(char*)0}, {(char*)0}, {(char*)0},
- {(char*)0}, {(char*)0}, {(char*)0}, {(char*)0},
- {(char*)0}, {(char*)0}, {(char*)0}, {(char*)0},
- {(char*)0}, {(char*)0}, {(char*)0}, {(char*)0},
- {(char*)0}, {(char*)0},
- {"f13", KEY_F13},
- {(char*)0}, {(char*)0}, {(char*)0},
- {"f5", KEY_F5},
- {(char*)0},
- {"vcr2", KEY_VCR2},
- {(char*)0}, {(char*)0}, {(char*)0}, {(char*)0},
- {(char*)0}, {(char*)0},
- {"fn_f10", KEY_FN_F10},
- {(char*)0}, {(char*)0}, {(char*)0}, {(char*)0},
- {(char*)0}, {(char*)0},
- {"f12", KEY_F12},
- {(char*)0}, {(char*)0}, {(char*)0}, {(char*)0},
- {(char*)0}, {(char*)0}, {(char*)0}, {(char*)0},
- {(char*)0}, {(char*)0}, {(char*)0}, {(char*)0},
- {(char*)0}, {(char*)0}, {(char*)0}, {(char*)0},
- {(char*)0}, {(char*)0}, {(char*)0}, {(char*)0},
- {(char*)0}, {(char*)0}, {(char*)0}, {(char*)0},
- {(char*)0}, {(char*)0},
- {"fn_f1", KEY_FN_F1},
- {"fn_f11", KEY_FN_F11},
- {(char*)0},
- {"f14", KEY_F14},
- {(char*)0}, {(char*)0}, {(char*)0}, {(char*)0},
- {(char*)0}, {(char*)0},
- {"video_prev", KEY_VIDEO_PREV},
- {(char*)0}, {(char*)0}, {(char*)0}, {(char*)0},
- {(char*)0}, {(char*)0}, {(char*)0}, {(char*)0},
- {(char*)0}, {(char*)0}, {(char*)0}, {(char*)0},
- {(char*)0}, {(char*)0}, {(char*)0}, {(char*)0},
- {(char*)0}, {(char*)0},
- {"fn_2", KEY_FN_2},
- {(char*)0}, {(char*)0}, {(char*)0}, {(char*)0},
- {(char*)0}, {(char*)0}, {(char*)0}, {(char*)0},
- {(char*)0}, {(char*)0}, {(char*)0}, {(char*)0},
- {(char*)0}, {(char*)0}, {(char*)0}, {(char*)0},
- {(char*)0}, {(char*)0}, {(char*)0}, {(char*)0},
- {"fn_f8", KEY_FN_F8},
- {(char*)0}, {(char*)0},
- {"f16", KEY_F16},
- {(char*)0},
- {"fn_f7", KEY_FN_F7},
- {(char*)0}, {(char*)0}, {(char*)0}, {(char*)0},
- {(char*)0}, {(char*)0}, {(char*)0}, {(char*)0},
- {(char*)0}, {(char*)0}, {(char*)0}, {(char*)0},
- {"uwb", KEY_UWB},
- {(char*)0}, {(char*)0}, {(char*)0}, {(char*)0},
- {(char*)0}, {(char*)0}, {(char*)0}, {(char*)0},
- {(char*)0}, {(char*)0}, {(char*)0}, {(char*)0},
- {(char*)0}, {(char*)0},
- {"f23", KEY_F23},
- {(char*)0}, {(char*)0}, {(char*)0}, {(char*)0},
- {(char*)0}, {(char*)0}, {(char*)0}, {(char*)0},
- {(char*)0}, {(char*)0}, {(char*)0}, {(char*)0},
- {(char*)0}, {(char*)0}, {(char*)0},
- {"fn_b", KEY_FN_B},
- {(char*)0}, {(char*)0}, {(char*)0},
- {"f22", KEY_F22},
- {(char*)0}, {(char*)0}, {(char*)0}, {(char*)0},
- {(char*)0}, {(char*)0}, {(char*)0}, {(char*)0},
- {(char*)0}, {(char*)0}, {(char*)0}, {(char*)0},
- {(char*)0}, {(char*)0}, {(char*)0}, {(char*)0},
- {"fn_f3", KEY_FN_F3},
- {(char*)0}, {(char*)0},
- {"f15", KEY_F15},
- {(char*)0}, {(char*)0}, {(char*)0}, {(char*)0},
- {(char*)0}, {(char*)0},
- {"fn_f2", KEY_FN_F2},
- {"fn_f12", KEY_FN_F12},
- {(char*)0},
- {"f24", KEY_F24},
- {(char*)0}, {(char*)0}, {(char*)0}, {(char*)0},
- {(char*)0}, {(char*)0}, {(char*)0}, {(char*)0},
- {(char*)0}, {(char*)0}, {(char*)0},
- {"fn_f4", KEY_FN_F4},
- {(char*)0}, {(char*)0}, {(char*)0}, {(char*)0},
- {(char*)0}, {(char*)0}, {(char*)0}, {(char*)0},
- {(char*)0}, {(char*)0}, {(char*)0}, {(char*)0},
- {(char*)0}, {(char*)0}, {(char*)0}, {(char*)0},
- {(char*)0}, {(char*)0}, {(char*)0}, {(char*)0},
- {(char*)0}, {(char*)0}, {(char*)0}, {(char*)0},
- {"fn_f6", KEY_FN_F6},
- {(char*)0}, {(char*)0}, {(char*)0}, {(char*)0},
- {(char*)0}, {(char*)0}, {(char*)0}, {(char*)0},
- {(char*)0}, {(char*)0}, {(char*)0}, {(char*)0},
- {(char*)0}, {(char*)0}, {(char*)0}, {(char*)0},
- {(char*)0}, {(char*)0}, {(char*)0}, {(char*)0},
- {(char*)0}, {(char*)0}, {(char*)0}, {(char*)0},
- {(char*)0}, {(char*)0}, {(char*)0}, {(char*)0},
- {(char*)0}, {(char*)0}, {(char*)0}, {(char*)0},
- {(char*)0}, {(char*)0},
- {"fn_f5", KEY_FN_F5},
- {(char*)0}, {(char*)0}, {(char*)0}, {(char*)0},
- {(char*)0}, {(char*)0}, {(char*)0}, {(char*)0},
- {(char*)0}, {(char*)0}, {(char*)0}, {(char*)0},
- {(char*)0}, {(char*)0}, {(char*)0}, {(char*)0},
- {(char*)0}, {(char*)0}, {(char*)0}, {(char*)0},
- {(char*)0}, {(char*)0}, {(char*)0},
- {"fn_f", KEY_FN_F},
- {(char*)0}, {(char*)0}, {(char*)0}, {(char*)0},
- {(char*)0}, {(char*)0}, {(char*)0}, {(char*)0},
- {(char*)0}, {(char*)0}, {(char*)0}, {(char*)0},
- {(char*)0}, {(char*)0}, {(char*)0}, {(char*)0},
- {(char*)0}, {(char*)0}, {(char*)0}, {(char*)0},
- {(char*)0}, {(char*)0}, {(char*)0}, {(char*)0},
- {(char*)0}, {(char*)0}, {(char*)0}, {(char*)0},
- {(char*)0}, {(char*)0}, {(char*)0}, {(char*)0},
- {(char*)0}, {(char*)0}, {(char*)0}, {(char*)0},
- {(char*)0}, {(char*)0}, {(char*)0}, {(char*)0},
- {(char*)0}, {(char*)0}, {(char*)0}, {(char*)0},
- {(char*)0}, {(char*)0}, {(char*)0}, {(char*)0},
- {(char*)0}, {(char*)0}, {(char*)0}, {(char*)0},
- {(char*)0}, {(char*)0}, {(char*)0}, {(char*)0},
- {(char*)0}, {(char*)0}, {(char*)0}, {(char*)0},
- {(char*)0}, {(char*)0}, {(char*)0}, {(char*)0},
- {(char*)0}, {(char*)0}, {(char*)0}, {(char*)0},
- {(char*)0}, {(char*)0}, {(char*)0}, {(char*)0},
- {(char*)0}, {(char*)0}, {(char*)0}, {(char*)0},
- {(char*)0}, {(char*)0}, {(char*)0}, {(char*)0},
- {(char*)0}, {(char*)0}, {(char*)0}, {(char*)0},
- {(char*)0}, {(char*)0}, {(char*)0}, {(char*)0},
- {(char*)0}, {(char*)0}, {(char*)0}, {(char*)0},
- {(char*)0},
- {"www", KEY_WWW}
- };
-
- if (len <= MAX_WORD_LENGTH && len >= MIN_WORD_LENGTH)
- {
- register int key = hash_key_name (str, len);
-
- if (key <= MAX_HASH_VALUE && key >= 0)
- {
- register const char *s = wordlist[key].name;
-
- if (s && *str == *s && !strcmp (str + 1, s + 1))
- return &wordlist[key];
- }
- }
- return 0;
-}
diff --git a/udev-lfs/keyboard-keys-to-name.h b/udev-lfs/keyboard-keys-to-name.h
deleted file mode 100644
index f5a982ca2..000000000
--- a/udev-lfs/keyboard-keys-to-name.h
+++ /dev/null
@@ -1,394 +0,0 @@
-const char* const key_names[KEY_CNT] = {
-[KEY_HIRAGANA] = "KEY_HIRAGANA",
-[KEY_TOUCHPAD_TOGGLE] = "KEY_TOUCHPAD_TOGGLE",
-[KEY_DELETEFILE] = "KEY_DELETEFILE",
-[KEY_TITLE] = "KEY_TITLE",
-[KEY_GRAVE] = "KEY_GRAVE",
-[KEY_RESERVED] = "KEY_RESERVED",
-[KEY_DVD] = "KEY_DVD",
-[KEY_FN_F10] = "KEY_FN_F10",
-[KEY_FN_F11] = "KEY_FN_F11",
-[KEY_FN_F12] = "KEY_FN_F12",
-[KEY_FRAMEBACK] = "KEY_FRAMEBACK",
-[KEY_BRL_DOT10] = "KEY_BRL_DOT10",
-[KEY_SLEEP] = "KEY_SLEEP",
-[KEY_VCR2] = "KEY_VCR2",
-[KEY_ZENKAKUHANKAKU] = "KEY_ZENKAKUHANKAKU",
-[KEY_IMAGES] = "KEY_IMAGES",
-[KEY_LEFTMETA] = "KEY_LEFTMETA",
-[KEY_OPEN] = "KEY_OPEN",
-[KEY_BATTERY] = "KEY_BATTERY",
-[KEY_MACRO] = "KEY_MACRO",
-[KEY_MODE] = "KEY_MODE",
-[KEY_GREEN] = "KEY_GREEN",
-[KEY_SAT] = "KEY_SAT",
-[KEY_RIGHTMETA] = "KEY_RIGHTMETA",
-[KEY_COMPUTER] = "KEY_COMPUTER",
-[KEY_SELECT] = "KEY_SELECT",
-[KEY_PAGEDOWN] = "KEY_PAGEDOWN",
-[KEY_CAPSLOCK] = "KEY_CAPSLOCK",
-[KEY_REDO] = "KEY_REDO",
-[KEY_KBDILLUMDOWN] = "KEY_KBDILLUMDOWN",
-[KEY_SCROLLDOWN] = "KEY_SCROLLDOWN",
-[KEY_SWITCHVIDEOMODE] = "KEY_SWITCHVIDEOMODE",
-[KEY_LIST] = "KEY_LIST",
-[KEY_WORDPROCESSOR] = "KEY_WORDPROCESSOR",
-[KEY_CAMERA] = "KEY_CAMERA",
-[KEY_MOVE] = "KEY_MOVE",
-[KEY_CONNECT] = "KEY_CONNECT",
-[KEY_PROG1] = "KEY_PROG1",
-[KEY_PROG2] = "KEY_PROG2",
-[KEY_PROG3] = "KEY_PROG3",
-[KEY_PROG4] = "KEY_PROG4",
-[KEY_TWEN] = "KEY_TWEN",
-[KEY_INS_LINE] = "KEY_INS_LINE",
-[KEY_GAMES] = "KEY_GAMES",
-[KEY_KATAKANA] = "KEY_KATAKANA",
-[KEY_PROPS] = "KEY_PROPS",
-[KEY_CALENDAR] = "KEY_CALENDAR",
-[KEY_RESTART] = "KEY_RESTART",
-[KEY_KBDILLUMTOGGLE] = "KEY_KBDILLUMTOGGLE",
-[KEY_CLEAR] = "KEY_CLEAR",
-[KEY_CAMERA_FOCUS] = "KEY_CAMERA_FOCUS",
-[KEY_NUMLOCK] = "KEY_NUMLOCK",
-[KEY_ZOOMIN] = "KEY_ZOOMIN",
-[KEY_EDIT] = "KEY_EDIT",
-[KEY_AUX] = "KEY_AUX",
-[KEY_EQUAL] = "KEY_EQUAL",
-[KEY_DIRECTORY] = "KEY_DIRECTORY",
-[KEY_CAMERA_RIGHT] = "KEY_CAMERA_RIGHT",
-[KEY_ADDRESSBOOK] = "KEY_ADDRESSBOOK",
-[KEY_PASTE] = "KEY_PASTE",
-[KEY_CHANNELUP] = "KEY_CHANNELUP",
-[KEY_SHUFFLE] = "KEY_SHUFFLE",
-[KEY_MAIL] = "KEY_MAIL",
-[KEY_LEFTALT] = "KEY_LEFTALT",
-[KEY_WWW] = "KEY_WWW",
-[KEY_KPEQUAL] = "KEY_KPEQUAL",
-[KEY_HENKAN] = "KEY_HENKAN",
-[KEY_DISPLAYTOGGLE] = "KEY_DISPLAYTOGGLE",
-[KEY_RIGHTALT] = "KEY_RIGHTALT",
-[KEY_SPORT] = "KEY_SPORT",
-[KEY_POWER] = "KEY_POWER",
-[KEY_APOSTROPHE] = "KEY_APOSTROPHE",
-[KEY_SCREEN] = "KEY_SCREEN",
-[KEY_RADIO] = "KEY_RADIO",
-[KEY_DATABASE] = "KEY_DATABASE",
-[KEY_VOLUMEDOWN] = "KEY_VOLUMEDOWN",
-[KEY_SENDFILE] = "KEY_SENDFILE",
-[KEY_RIGHTSHIFT] = "KEY_RIGHTSHIFT",
-[KEY_ARCHIVE] = "KEY_ARCHIVE",
-[KEY_NUMERIC_POUND] = "KEY_NUMERIC_POUND",
-[KEY_EPG] = "KEY_EPG",
-[KEY_NEXTSONG] = "KEY_NEXTSONG",
-[KEY_FIRST] = "KEY_FIRST",
-[KEY_SPREADSHEET] = "KEY_SPREADSHEET",
-[KEY_KPSLASH] = "KEY_KPSLASH",
-[KEY_BACK] = "KEY_BACK",
-[KEY_KP3] = "KEY_KP3",
-[KEY_KP5] = "KEY_KP5",
-[KEY_PAGEUP] = "KEY_PAGEUP",
-[KEY_ESC] = "KEY_ESC",
-[KEY_DELETE] = "KEY_DELETE",
-[KEY_HOME] = "KEY_HOME",
-[KEY_WPS_BUTTON] = "KEY_WPS_BUTTON",
-[KEY_AUDIO] = "KEY_AUDIO",
-[KEY_NEW] = "KEY_NEW",
-[KEY_SAT2] = "KEY_SAT2",
-[KEY_LINEFEED] = "KEY_LINEFEED",
-[KEY_PVR] = "KEY_PVR",
-[KEY_KPPLUSMINUS] = "KEY_KPPLUSMINUS",
-[KEY_SHOP] = "KEY_SHOP",
-[KEY_LEFTSHIFT] = "KEY_LEFTSHIFT",
-[KEY_BASSBOOST] = "KEY_BASSBOOST",
-[KEY_BRIGHTNESS_CYCLE] = "KEY_BRIGHTNESS_CYCLE",
-[KEY_TAB] = "KEY_TAB",
-[KEY_UNKNOWN] = "KEY_UNKNOWN",
-[KEY_KPLEFTPAREN] = "KEY_KPLEFTPAREN",
-[KEY_EDITOR] = "KEY_EDITOR",
-[KEY_EMAIL] = "KEY_EMAIL",
-[KEY_102ND] = "KEY_102ND",
-[KEY_MENU] = "KEY_MENU",
-[KEY_VOICEMAIL] = "KEY_VOICEMAIL",
-[KEY_SPACE] = "KEY_SPACE",
-[KEY_INFO] = "KEY_INFO",
-[KEY_WAKEUP] = "KEY_WAKEUP",
-[KEY_BLUE] = "KEY_BLUE",
-[KEY_HOMEPAGE] = "KEY_HOMEPAGE",
-[KEY_KPCOMMA] = "KEY_KPCOMMA",
-[KEY_ZOOMRESET] = "KEY_ZOOMRESET",
-[KEY_FAVORITES] = "KEY_FAVORITES",
-[KEY_TOUCHPAD_ON] = "KEY_TOUCHPAD_ON",
-[KEY_FN_1] = "KEY_FN_1",
-[KEY_FN_2] = "KEY_FN_2",
-[KEY_ISO] = "KEY_ISO",
-[KEY_FN_D] = "KEY_FN_D",
-[KEY_FN_E] = "KEY_FN_E",
-[KEY_FN_F] = "KEY_FN_F",
-[KEY_FN_S] = "KEY_FN_S",
-[KEY_HANJA] = "KEY_HANJA",
-[KEY_BREAK] = "KEY_BREAK",
-[KEY_FORWARD] = "KEY_FORWARD",
-[KEY_TV2] = "KEY_TV2",
-[KEY_PAUSECD] = "KEY_PAUSECD",
-[KEY_RIGHT] = "KEY_RIGHT",
-[KEY_F21] = "KEY_F21",
-[KEY_SLOW] = "KEY_SLOW",
-[KEY_F10] = "KEY_F10",
-[KEY_F11] = "KEY_F11",
-[KEY_F12] = "KEY_F12",
-[KEY_F13] = "KEY_F13",
-[KEY_F14] = "KEY_F14",
-[KEY_F15] = "KEY_F15",
-[KEY_F16] = "KEY_F16",
-[KEY_F17] = "KEY_F17",
-[KEY_F18] = "KEY_F18",
-[KEY_F19] = "KEY_F19",
-[KEY_SEMICOLON] = "KEY_SEMICOLON",
-[KEY_F20] = "KEY_F20",
-[KEY_F22] = "KEY_F22",
-[KEY_F23] = "KEY_F23",
-[KEY_F24] = "KEY_F24",
-[KEY_SAVE] = "KEY_SAVE",
-[KEY_1] = "KEY_1",
-[KEY_2] = "KEY_2",
-[KEY_3] = "KEY_3",
-[KEY_4] = "KEY_4",
-[KEY_5] = "KEY_5",
-[KEY_6] = "KEY_6",
-[KEY_7] = "KEY_7",
-[KEY_8] = "KEY_8",
-[KEY_9] = "KEY_9",
-[KEY_B] = "KEY_B",
-[KEY_C] = "KEY_C",
-[KEY_D] = "KEY_D",
-[KEY_E] = "KEY_E",
-[KEY_F] = "KEY_F",
-[KEY_G] = "KEY_G",
-[KEY_H] = "KEY_H",
-[KEY_I] = "KEY_I",
-[KEY_K] = "KEY_K",
-[KEY_L] = "KEY_L",
-[KEY_M] = "KEY_M",
-[KEY_O] = "KEY_O",
-[KEY_P] = "KEY_P",
-[KEY_R] = "KEY_R",
-[KEY_S] = "KEY_S",
-[KEY_T] = "KEY_T",
-[KEY_U] = "KEY_U",
-[KEY_W] = "KEY_W",
-[KEY_X] = "KEY_X",
-[KEY_Z] = "KEY_Z",
-[KEY_MHP] = "KEY_MHP",
-[KEY_F5] = "KEY_F5",
-[KEY_RECORD] = "KEY_RECORD",
-[KEY_F7] = "KEY_F7",
-[KEY_CHANNEL] = "KEY_CHANNEL",
-[KEY_EJECTCD] = "KEY_EJECTCD",
-[KEY_VIDEOPHONE] = "KEY_VIDEOPHONE",
-[KEY_VIDEO] = "KEY_VIDEO",
-[KEY_VENDOR] = "KEY_VENDOR",
-[KEY_MP3] = "KEY_MP3",
-[KEY_0] = "KEY_0",
-[KEY_AGAIN] = "KEY_AGAIN",
-[KEY_DIGITS] = "KEY_DIGITS",
-[KEY_SEND] = "KEY_SEND",
-[KEY_MICMUTE] = "KEY_MICMUTE",
-[KEY_COMMA] = "KEY_COMMA",
-[KEY_GRAPHICSEDITOR] = "KEY_GRAPHICSEDITOR",
-[KEY_A] = "KEY_A",
-[KEY_J] = "KEY_J",
-[KEY_YELLOW] = "KEY_YELLOW",
-[KEY_LEFTBRACE] = "KEY_LEFTBRACE",
-[KEY_N] = "KEY_N",
-[KEY_QUESTION] = "KEY_QUESTION",
-[KEY_LANGUAGE] = "KEY_LANGUAGE",
-[KEY_XFER] = "KEY_XFER",
-[KEY_Q] = "KEY_Q",
-[KEY_LOGOFF] = "KEY_LOGOFF",
-[KEY_SOUND] = "KEY_SOUND",
-[KEY_V] = "KEY_V",
-[KEY_PRINT] = "KEY_PRINT",
-[KEY_Y] = "KEY_Y",
-[KEY_COPY] = "KEY_COPY",
-[KEY_CAMERA_ZOOMOUT] = "KEY_CAMERA_ZOOMOUT",
-[KEY_BRL_DOT1] = "KEY_BRL_DOT1",
-[KEY_BRL_DOT2] = "KEY_BRL_DOT2",
-[KEY_BRL_DOT3] = "KEY_BRL_DOT3",
-[KEY_BRL_DOT4] = "KEY_BRL_DOT4",
-[KEY_BRL_DOT5] = "KEY_BRL_DOT5",
-[KEY_BRL_DOT6] = "KEY_BRL_DOT6",
-[KEY_BRL_DOT7] = "KEY_BRL_DOT7",
-[KEY_BRL_DOT8] = "KEY_BRL_DOT8",
-[KEY_BRL_DOT9] = "KEY_BRL_DOT9",
-[KEY_BRIGHTNESSUP] = "KEY_BRIGHTNESSUP",
-[KEY_FN_F7] = "KEY_FN_F7",
-[KEY_YEN] = "KEY_YEN",
-[KEY_PLAY] = "KEY_PLAY",
-[KEY_REWIND] = "KEY_REWIND",
-[KEY_VIDEO_NEXT] = "KEY_VIDEO_NEXT",
-[KEY_DIRECTION] = "KEY_DIRECTION",
-[KEY_TOUCHPAD_OFF] = "KEY_TOUCHPAD_OFF",
-[KEY_HELP] = "KEY_HELP",
-[KEY_NUMERIC_STAR] = "KEY_NUMERIC_STAR",
-[KEY_BACKSLASH] = "KEY_BACKSLASH",
-[KEY_SYSRQ] = "KEY_SYSRQ",
-[KEY_END] = "KEY_END",
-[KEY_RFKILL] = "KEY_RFKILL",
-[KEY_LEFTCTRL] = "KEY_LEFTCTRL",
-[KEY_KPRIGHTPAREN] = "KEY_KPRIGHTPAREN",
-[KEY_KPASTERISK] = "KEY_KPASTERISK",
-[KEY_REFRESH] = "KEY_REFRESH",
-[KEY_RIGHTCTRL] = "KEY_RIGHTCTRL",
-[KEY_SEARCH] = "KEY_SEARCH",
-[KEY_PHONE] = "KEY_PHONE",
-[KEY_KBDILLUMUP] = "KEY_KBDILLUMUP",
-[KEY_STOP] = "KEY_STOP",
-[KEY_BRIGHTNESS_ZERO] = "KEY_BRIGHTNESS_ZERO",
-[KEY_CHAT] = "KEY_CHAT",
-[KEY_VOLUMEUP] = "KEY_VOLUMEUP",
-[KEY_CLOSECD] = "KEY_CLOSECD",
-[KEY_CAMERA_ZOOMIN] = "KEY_CAMERA_ZOOMIN",
-[KEY_UNDO] = "KEY_UNDO",
-[KEY_TUNER] = "KEY_TUNER",
-[KEY_ANGLE] = "KEY_ANGLE",
-[KEY_PRESENTATION] = "KEY_PRESENTATION",
-[KEY_CAMERA_DOWN] = "KEY_CAMERA_DOWN",
-[KEY_REPLY] = "KEY_REPLY",
-[KEY_CALC] = "KEY_CALC",
-[KEY_EXIT] = "KEY_EXIT",
-[KEY_FN_B] = "KEY_FN_B",
-[KEY_DOLLAR] = "KEY_DOLLAR",
-[KEY_CAMERA_LEFT] = "KEY_CAMERA_LEFT",
-[KEY_UWB] = "KEY_UWB",
-[KEY_PREVIOUSSONG] = "KEY_PREVIOUSSONG",
-[KEY_CONFIG] = "KEY_CONFIG",
-[KEY_SETUP] = "KEY_SETUP",
-[KEY_PLAYCD] = "KEY_PLAYCD",
-[KEY_MEDIA] = "KEY_MEDIA",
-[KEY_COMPOSE] = "KEY_COMPOSE",
-[KEY_PLAYER] = "KEY_PLAYER",
-[KEY_10CHANNELSDOWN] = "KEY_10CHANNELSDOWN",
-[KEY_FRAMEFORWARD] = "KEY_FRAMEFORWARD",
-[KEY_MSDOS] = "KEY_MSDOS",
-[KEY_ZOOM] = "KEY_ZOOM",
-[KEY_NEWS] = "KEY_NEWS",
-[KEY_NUMERIC_0] = "KEY_NUMERIC_0",
-[KEY_NUMERIC_1] = "KEY_NUMERIC_1",
-[KEY_NUMERIC_2] = "KEY_NUMERIC_2",
-[KEY_NUMERIC_3] = "KEY_NUMERIC_3",
-[KEY_NUMERIC_4] = "KEY_NUMERIC_4",
-[KEY_NUMERIC_5] = "KEY_NUMERIC_5",
-[KEY_NUMERIC_7] = "KEY_NUMERIC_7",
-[KEY_NUMERIC_8] = "KEY_NUMERIC_8",
-[KEY_NUMERIC_9] = "KEY_NUMERIC_9",
-[KEY_SCALE] = "KEY_SCALE",
-[KEY_NEXT] = "KEY_NEXT",
-[KEY_CUT] = "KEY_CUT",
-[KEY_PREVIOUS] = "KEY_PREVIOUS",
-[KEY_VIDEO_PREV] = "KEY_VIDEO_PREV",
-[KEY_MUTE] = "KEY_MUTE",
-[KEY_PAUSE] = "KEY_PAUSE",
-[KEY_TAPE] = "KEY_TAPE",
-[KEY_PROGRAM] = "KEY_PROGRAM",
-[KEY_OPTION] = "KEY_OPTION",
-[KEY_ZOOMOUT] = "KEY_ZOOMOUT",
-[KEY_PLAYPAUSE] = "KEY_PLAYPAUSE",
-[KEY_DISPLAY_OFF] = "KEY_DISPLAY_OFF",
-[KEY_RED] = "KEY_RED",
-[KEY_KPPLUS] = "KEY_KPPLUS",
-[KEY_FINANCE] = "KEY_FINANCE",
-[KEY_BRIGHTNESSDOWN] = "KEY_BRIGHTNESSDOWN",
-[KEY_KPDOT] = "KEY_KPDOT",
-[KEY_TEEN] = "KEY_TEEN",
-[KEY_SCREENLOCK] = "KEY_SCREENLOCK",
-[KEY_FN_F1] = "KEY_FN_F1",
-[KEY_FN_F2] = "KEY_FN_F2",
-[KEY_FN_F3] = "KEY_FN_F3",
-[KEY_FN_F4] = "KEY_FN_F4",
-[KEY_FN_F5] = "KEY_FN_F5",
-[KEY_FN_F6] = "KEY_FN_F6",
-[KEY_FN_F8] = "KEY_FN_F8",
-[KEY_FN_F9] = "KEY_FN_F9",
-[KEY_EURO] = "KEY_EURO",
-[KEY_WIMAX] = "KEY_WIMAX",
-[KEY_AB] = "KEY_AB",
-[KEY_SUBTITLE] = "KEY_SUBTITLE",
-[KEY_CD] = "KEY_CD",
-[KEY_CONTEXT_MENU] = "KEY_CONTEXT_MENU",
-[KEY_MESSENGER] = "KEY_MESSENGER",
-[KEY_F1] = "KEY_F1",
-[KEY_F2] = "KEY_F2",
-[KEY_F3] = "KEY_F3",
-[KEY_F4] = "KEY_F4",
-[KEY_F6] = "KEY_F6",
-[KEY_F8] = "KEY_F8",
-[KEY_F9] = "KEY_F9",
-[KEY_FN] = "KEY_FN",
-[KEY_SCROLLUP] = "KEY_SCROLLUP",
-[KEY_ENTER] = "KEY_ENTER",
-[KEY_CANCEL] = "KEY_CANCEL",
-[KEY_SCROLLLOCK] = "KEY_SCROLLLOCK",
-[KEY_RIGHTBRACE] = "KEY_RIGHTBRACE",
-[KEY_VCR] = "KEY_VCR",
-[KEY_HP] = "KEY_HP",
-[KEY_FASTFORWARD] = "KEY_FASTFORWARD",
-[KEY_TEXT] = "KEY_TEXT",
-[KEY_FN_ESC] = "KEY_FN_ESC",
-[KEY_INSERT] = "KEY_INSERT",
-[KEY_CYCLEWINDOWS] = "KEY_CYCLEWINDOWS",
-[KEY_KATAKANAHIRAGANA] = "KEY_KATAKANAHIRAGANA",
-[KEY_FRONT] = "KEY_FRONT",
-[KEY_WLAN] = "KEY_WLAN",
-[KEY_DASHBOARD] = "KEY_DASHBOARD",
-[KEY_BLUETOOTH] = "KEY_BLUETOOTH",
-[KEY_FORWARDMAIL] = "KEY_FORWARDMAIL",
-[KEY_MUHENKAN] = "KEY_MUHENKAN",
-[KEY_OK] = "KEY_OK",
-[KEY_CHANNELDOWN] = "KEY_CHANNELDOWN",
-[KEY_DEL_EOL] = "KEY_DEL_EOL",
-[KEY_DOWN] = "KEY_DOWN",
-[KEY_DEL_EOS] = "KEY_DEL_EOS",
-[KEY_PC] = "KEY_PC",
-[KEY_KPENTER] = "KEY_KPENTER",
-[KEY_LAST] = "KEY_LAST",
-[KEY_KP0] = "KEY_KP0",
-[KEY_KP1] = "KEY_KP1",
-[KEY_KP2] = "KEY_KP2",
-[KEY_KP4] = "KEY_KP4",
-[KEY_KP6] = "KEY_KP6",
-[KEY_KP7] = "KEY_KP7",
-[KEY_KP8] = "KEY_KP8",
-[KEY_KP9] = "KEY_KP9",
-[KEY_BACKSPACE] = "KEY_BACKSPACE",
-[KEY_RO] = "KEY_RO",
-[KEY_ALTERASE] = "KEY_ALTERASE",
-[KEY_POWER2] = "KEY_POWER2",
-[KEY_MINUS] = "KEY_MINUS",
-[KEY_KPJPCOMMA] = "KEY_KPJPCOMMA",
-[KEY_10CHANNELSUP] = "KEY_10CHANNELSUP",
-[KEY_TV] = "KEY_TV",
-[KEY_UP] = "KEY_UP",
-[KEY_SUSPEND] = "KEY_SUSPEND",
-[KEY_FILE] = "KEY_FILE",
-[KEY_TIME] = "KEY_TIME",
-[KEY_FIND] = "KEY_FIND",
-[KEY_STOPCD] = "KEY_STOPCD",
-[KEY_SPELLCHECK] = "KEY_SPELLCHECK",
-[KEY_DOCUMENTS] = "KEY_DOCUMENTS",
-[KEY_LEFT] = "KEY_LEFT",
-[KEY_EJECTCLOSECD] = "KEY_EJECTCLOSECD",
-[KEY_KPMINUS] = "KEY_KPMINUS",
-[KEY_GOTO] = "KEY_GOTO",
-[KEY_MEDIA_REPEAT] = "KEY_MEDIA_REPEAT",
-[KEY_MEMO] = "KEY_MEMO",
-[KEY_SLASH] = "KEY_SLASH",
-[KEY_KEYBOARD] = "KEY_KEYBOARD",
-[KEY_CAMERA_UP] = "KEY_CAMERA_UP",
-[KEY_DEL_LINE] = "KEY_DEL_LINE",
-[KEY_CLOSE] = "KEY_CLOSE",
-[KEY_DOT] = "KEY_DOT",
-[KEY_NUMERIC_6] = "KEY_NUMERIC_6",
-[KEY_HANGEUL] = "KEY_HANGEUL",
-[KEY_BOOKMARKS] = "KEY_BOOKMARKS",
-};
diff --git a/udev-lfs/makefile-incl.gir b/udev-lfs/makefile-incl.gir
deleted file mode 100644
index 0e6259857..000000000
--- a/udev-lfs/makefile-incl.gir
+++ /dev/null
@@ -1,51 +0,0 @@
-# Custom systemd Makefile include that builds/installs gir only for LFS
-
-# vim: tabstop=3
-
-G_IR_INCLUDES = \
- src/gudev/gudev.h \
- src/gudev/gudevtypes.h \
- src/gudev/gudevenums.h \
- src/gudev/gudevenumtypes.h \
- src/gudev/gudevclient.h \
- src/gudev/gudevdevice.h \
- src/gudev/gudevenumerator.h \
- src/gudev/gudevclient.c \
- src/gudev/gudevdevice.c \
- src/gudev/gudevenumerator.c
-
-build/GUdev-1.0.gir: gudev
- @echo G-IR-SCANNER $@
- $(VB)LD_LIBRARY_PATH=./build g-ir-scanner \
- $(G_IR_INCLUDES) \
- -D_GUDEV_COMPILATION \
- -D_GUDEV_WORK_AROUND_DEV_T_BUG \
- -I src -I src/gudev \
- -L./build -lgudev-1.0 -ludev \
- --quiet \
- --warn-all \
- --no-libtool \
- --include=GObject-2.0 \
- --pkg-export=gudev-1.0 \
- --c-include=gudev/gudev.h \
- --library=gudev-1.0 \
- --namespace=GUdev \
- --nsversion=1.0 \
- --output=$@
-
-build/GUdev-1.0.typelib: build/GUdev-1.0.gir
- @echo G-IR-COMPILER $@
- $(VB)LIBRARY_PATH=./build g-ir-compiler $< > $@
-
-gir-data: build/GUdev-1.0.gir build/GUdev-1.0.typelib
-
-install-gir-data: gir-data
- @mkdir -pv $(DESTDIR)/usr/lib/girepository-1.0 \
- $(DESTDIR)/usr/share/gir-1.0
-
- @cp -v build/GUdev-1.0.typelib $(DESTDIR)/usr/lib/girepository-1.0
- @cp -v build/GUdev-1.0.gir $(DESTDIR)/usr/share/gir-1.0
-
-clean-gir-data:
- rm -f build/GUdev-1.0.typelib
- rm -f build/GUdev-1.0.gir
diff --git a/udev-lfs/makefile-incl.gudev b/udev-lfs/makefile-incl.gudev
deleted file mode 100644
index bebabd7df..000000000
--- a/udev-lfs/makefile-incl.gudev
+++ /dev/null
@@ -1,108 +0,0 @@
-# Custom systemd Makefile include that builds/installs gudev only for LFS
-
-# vim: tabstop=3
-
-LIBGUDEV_SRCS = \
- gudevclient.c \
- gudevdevice.c \
- gudevenumerator.c \
- gudevenumtypes.c \
- gudevmarshal.c
-
-LIBGUDEV_INCLUDES = \
- src/gudev/gudev.h \
- src/gudev/gudevenums.h \
- src/gudev/gudevenumtypes.h \
- src/gudev/gudevtypes.h \
- src/gudev/gudevclient.h \
- src/gudev/gudevdevice.h \
- src/gudev/gudevenumerator.h
-
-LIBGUDEV_OBJS := $(addprefix build/, $(LIBGUDEV_SRCS:.c=.o))
-
-LIBGUDEV_CFLAGS = \
- -I src/gudev \
- -D_POSIX_PTHREAD_SEMANTICS \
- -D_REENTRANT \
- -D_GUDEV_COMPILATION \
- -DG_LOG_DOMAIN=\"GUdev\" \
- -fvisibility=default \
- -I /usr/include/glib-2.0 \
- -I /usr/lib/glib-2.0/include
-
-LIBGUDEV_LDFLAGS = \
- -L build -L /usr/lib \
- -ludev -lgobject-2.0 \
- -lglib-2.0
-
-GUDEV_GENERATED = \
- src/gudev/gudevmarshal.h \
- src/gudev/gudevmarshal.c \
- src/gudev/gudevenumtypes.h \
- src/gudev/gudevenumtypes.c
-
-LIBGUDEV = libgudev-1.0
-LIBGUDEV_MAJOR = .0
-LIBGUDEV_MINOR = .1
-LIBGUDEV_PATCH = .3
-LIBGUDEV_SONAME := $(LIBGUDEV).so
-LIBGUDEV_LINK_NAME := $(LIBGUDEV_SONAME)$(LIBGUDEV_MAJOR)
-LIBGUDEV_REAL_NAME := $(LIBGUDEV_LINK_NAME)$(LIBGUDEV_MINOR)$(LIBGUDEV_PATCH)
-
-src/gudev/gudevmarshal.h: src/gudev/gudevmarshal.list
- @echo GEN $@
- $(VB)glib-genmarshal $< --prefix=g_udev_marshal --header > $@
-
-src/gudev/gudevmarshal.c: src/gudev/gudevmarshal.list
- @echo GEN $@
- @echo "#include \"gudevmarshal.h\"" > $@
- $(VB)glib-genmarshal $< --prefix=g_udev_marshal --body >> $@
-
-src/gudev/gudevenumtypes.h: src/gudev/gudevenumtypes.h.template src/gudev/gudevenums.h
- @echo GEN $@
- $(VB)glib-mkenums --template $^ > $@
-
-src/gudev/gudevenumtypes.c: src/gudev/gudevenumtypes.c.template src/gudev/gudevenums.h
- @echo GEN $@
- $(VB)glib-mkenums --template $^ > $@
-
-build/%o: src/gudev/%c $(GUDEV_GENERATED) common
- @echo CC $<
- $(VB)gcc -c $(LIBGUDEV_CFLAGS) $(WARN) $(OPTIONS) $(INCLUDE) $(DEF) -o $@ $<
-
-build/$(LIBGUDEV_REAL_NAME): $(LIBGUDEV_OBJS) build/udev-local.a build/$(LIBUDEV_REAL_NAME)
- @echo LINK $@
- $(VB)gcc -shared -Wl,--export-dynamic -Wl,-soname,$(LIBGUDEV_LINK_NAME) \
- -o build/$(LIBGUDEV_REAL_NAME) $(LIBGUDEV_OBJS) $(LIBGUDEV_LDFLAGS)
-
- ln -sfn $(LIBGUDEV_REAL_NAME) build/$(LIBGUDEV_LINK_NAME)
- ln -sfn $(LIBGUDEV_REAL_NAME) build/$(LIBGUDEV_SONAME)
-
-build/gudev-1.0.pc: src/gudev/gudev-1.0.pc.in common
- @echo GEN $@
- @$(SED_PROCESS)
-
-gudev: build/$(LIBGUDEV_REAL_NAME) build/gudev-1.0.pc
-
-clean-gudev:
- rm -f src/gudev/gudevmarshal.h
- rm -f src/gudev/gudevmarshal.c
- rm -f src/gudev/gudevenumtypes.h
- rm -f src/gudev/gudevenumtypes.c
- rm -f $(LIBGUDEV_OBJS)
- rm -f build/libgudev-1.0.so*
-
-install-gudev: gudev
- @mkdir -pv $(DESTDIR)/usr/include/gudev-1.0/gudev \
- $(DESTDIR)/usr/lib/pkgconfig \
- $(DESTDIR)/usr/share/gtk-doc/html/gudev
-
- @cp -v $(LIBGUDEV_INCLUDES) $(DESTDIR)/usr/include/gudev-1.0/gudev
- @cp -v build/$(LIBGUDEV_REAL_NAME) $(DESTDIR)/usr/lib
-
- @ln -svfn $(LIBGUDEV_REAL_NAME) $(DESTDIR)/usr/lib/$(LIBGUDEV_SONAME)
- @ln -svfn $(LIBGUDEV_REAL_NAME) $(DESTDIR)/usr/lib/$(LIBGUDEV_LINK_NAME)
-
- @cp -v build/gudev-1.0.pc $(DESTDIR)/usr/lib/pkgconfig
- @cp -v docs/gudev/html/* $(DESTDIR)/usr/share/gtk-doc/html/gudev
-
diff --git a/udev-lfs/makefile-incl.keymap b/udev-lfs/makefile-incl.keymap
deleted file mode 100644
index c7d234cb7..000000000
--- a/udev-lfs/makefile-incl.keymap
+++ /dev/null
@@ -1,54 +0,0 @@
-# Custom systemd Makefile include that builds/installs keymap tool only for LFS
-
-# vim: tabstop=3
-
-KEYMAPS = $(shell ls keymaps/* | sort)
-KEYMAPS_FR = $(shell ls keymaps-force-release/* | sort)
-
-KEYMAP_DEPS = common src/udev/keymap/keys-from-name.h src/udev/keymap/keys-to-name.h
-
-src/udev/keymap/keys.txt:
- @echo GEN $@
- $(VB)awk '/^#define.*KEY_[^ ]+[ \t]+[0-9]/ \
- { \
- if ($$2 != "KEY_MAX") { print $$2 } \
- }' \
- /usr/include/linux/input.h | sed 's/^KEY_COFFEE$$/KEY_SCREENLOCK/' > $@
-
-src/udev/keymap/keys-from-name.gperf: src/udev/keymap/keys.txt
- @echo GEN $@
- $(VB)awk 'BEGIN \
- { \
- print "struct key \
- { \
- const char* name; \
- unsigned short id; \
- };"; \
- \
- print "%null-strings"; print "%%"; \
- } \
- { \
- print $$1 ", " $$1 \
- }' $< > $@
-
-src/udev/keymap/keys-from-name.h: src/udev/keymap/keys-from-name.gperf
- @echo GEN $@
- $(VB)gperf -L ANSI-C -t --ignore-case -N lookup_key -H hash_key_name -p -C $< > $@
-
-src/udev/keymap/keys-to-name.h: src/udev/keymap/keys.txt
- @echo GEN $@
- $(VB)awk 'BEGIN \
- { \
- print "const char* const key_names[KEY_CNT] = { " \
- } \
- { \
- print "[" $$1 "] = \"" $$1 "\"," \
- } \
- END{print "};" \
- }' $< > $@
-
-keymap:
- @echo "keymap is now built into udevadm/udevd"
-
-install-keymap:
- @echo "keymap is now built into udevadm/udevd"
diff --git a/udev-lfs/udev.7 b/udev-lfs/udev.7
deleted file mode 100644
index 472651bcc..000000000
--- a/udev-lfs/udev.7
+++ /dev/null
@@ -1,476 +0,0 @@
-'\" t
-.TH "UDEV" "7" "" "systemd 202" "udev"
-.\" -----------------------------------------------------------------
-.\" * Define some portability stuff
-.\" -----------------------------------------------------------------
-.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-.\" http://bugs.debian.org/507673
-.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
-.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-.ie \n(.g .ds Aq \(aq
-.el .ds Aq '
-.\" -----------------------------------------------------------------
-.\" * set default formatting
-.\" -----------------------------------------------------------------
-.\" disable hyphenation
-.nh
-.\" disable justification (adjust text to left margin only)
-.ad l
-.\" -----------------------------------------------------------------
-.\" * MAIN CONTENT STARTS HERE *
-.\" -----------------------------------------------------------------
-.SH "NAME"
-udev \- Linux dynamic device management
-.SH "DESCRIPTION"
-.PP
-udev supplies the system software with device events, manages permissions of device nodes and may create additional symlinks in the
-/dev
-directory, or renames network interfaces\&. The kernel usually just assigns unpredictable device names based on the order of discovery\&. Meaningful symlinks or network device names provide a way to reliably identify devices based on their properties or current configuration\&.
-.PP
-The udev daemon,
-\fBudevd\fR(8), receives device uevents directly from the kernel whenever a device is added or removed from the system, or it changes its state\&. When udev receives a device event, it matches its configured set of rules against various device attributes to identify the device\&. Rules that match may provide additional device information to be stored in the udev database or to be used to create meaningful symlink names\&.
-.PP
-All device information udev processes is stored in the udev database and sent out to possible event subscribers\&. Access to all stored data and the event sources is provided by the library libudev\&.
-.SH "RULES FILES"
-.PP
-The udev rules are read from the files located in the system rules directory
-/usr/lib/udev/rules\&.d, the volatile runtime directory
-/run/udev/rules\&.d
-and the local administration directory
-/etc/udev/rules\&.d\&. All rules files are collectively sorted and processed in lexical order, regardless of the directories in which they live\&. However, files with identical file names replace each other\&. Files in
-/etc
-have the highest priority, files in
-/run
-take precedence over files with the same name in
-/lib\&. This can be used to override a system\-supplied rules file with a local file if needed; a symlink in
-/etc
-with the same name as a rules file in
-/lib, pointing to
-/dev/null, disables the rules file entirely\&.
-.PP
-Rule files must have the extension
-\&.rules; other extensions are ignored\&.
-.PP
-Every line in the rules file contains at least one key\-value pair\&. Except for empty lines or lines beginning with \*(Aq#\*(Aq, which are ignored\&. There are two kinds of keys: match and assignment\&. If all match keys match against their values, the rule gets applied and the assignment keys get the specified values assigned\&.
-.PP
-A matching rule may rename a network interface, add symlinks pointing to the device node, or run a specified program as part of the event handling\&.
-.PP
-A rule consists of a comma\-separated list of one or more key\-value pairs\&. Each key has a distinct operation, depending on the used operator\&. Valid operators are:
-.PP
-==
-.RS 4
-Compare for equality\&.
-.RE
-.PP
-!=
-.RS 4
-Compare for inequality\&.
-.RE
-.PP
-=
-.RS 4
-Assign a value to a key\&. Keys that represent a list are reset and only this single value is assigned\&.
-.RE
-.PP
-+=
-.RS 4
-Add the value to a key that holds a list of entries\&.
-.RE
-.PP
-:=
-.RS 4
-Assign a value to a key finally; disallow any later changes\&.
-.RE
-.PP
-The following key names can be used to match against device properties\&. Some of the keys also match against properties of the parent devices in sysfs, not only the device that has generated the event\&. If multiple keys that match a parent device are specified in a single rule, all these keys must match at one and the same parent device\&.
-.PP
-\fBACTION\fR
-.RS 4
-Match the name of the event action\&.
-.RE
-.PP
-\fBDEVPATH\fR
-.RS 4
-Match the devpath of the event device\&.
-.RE
-.PP
-\fBKERNEL\fR
-.RS 4
-Match the name of the event device\&.
-.RE
-.PP
-\fBNAME\fR
-.RS 4
-Match the name of a network interface\&. It can be used once the NAME key has been set in one of the preceding rules\&.
-.RE
-.PP
-\fBSYMLINK\fR
-.RS 4
-Match the name of a symlink targeting the node\&. It can be used once a SYMLINK key has been set in one of the preceding rules\&. There may be multiple symlinks; only one needs to match\&.
-.RE
-.PP
-\fBSUBSYSTEM\fR
-.RS 4
-Match the subsystem of the event device\&.
-.RE
-.PP
-\fBDRIVER\fR
-.RS 4
-Match the driver name of the event device\&. Only set this key for devices which are bound to a driver at the time the event is generated\&.
-.RE
-.PP
-\fBATTR{\fR\fB\fIfilename\fR\fR\fB}\fR
-.RS 4
-Match sysfs attribute values of the event device\&. Trailing whitespace in the attribute values is ignored unless the specified match value itself contains trailing whitespace\&.
-.RE
-.PP
-\fBKERNELS\fR
-.RS 4
-Search the devpath upwards for a matching device name\&.
-.RE
-.PP
-\fBSUBSYSTEMS\fR
-.RS 4
-Search the devpath upwards for a matching device subsystem name\&.
-.RE
-.PP
-\fBDRIVERS\fR
-.RS 4
-Search the devpath upwards for a matching device driver name\&.
-.RE
-.PP
-\fBATTRS{\fR\fB\fIfilename\fR\fR\fB}\fR
-.RS 4
-Search the devpath upwards for a device with matching sysfs attribute values\&. If multiple
-\fBATTRS\fR
-matches are specified, all of them must match on the same device\&. Trailing whitespace in the attribute values is ignored unless the specified match value itself contains trailing whitespace\&.
-.RE
-.PP
-\fBTAGS\fR
-.RS 4
-Search the devpath upwards for a device with matching tag\&.
-.RE
-.PP
-\fBENV{\fR\fB\fIkey\fR\fR\fB}\fR
-.RS 4
-Match against a device property value\&.
-.RE
-.PP
-\fBTAG\fR
-.RS 4
-Match against a device tag\&.
-.RE
-.PP
-\fBTEST{\fR\fB\fIoctal mode mask\fR\fR\fB}\fR
-.RS 4
-Test the existence of a file\&. An octal mode mask can be specified if needed\&.
-.RE
-.PP
-\fBPROGRAM\fR
-.RS 4
-Execute a program to determine whether there is a match; the key is true if the program returns successfully\&. The device properties are made available to the executed program in the environment\&. The program\*(Aqs stdout is available in the RESULT key\&.
-.sp
-This can only be used for very short\-running foreground tasks\&. For details see
-\fBRUN\fR\&.
-.RE
-.PP
-\fBRESULT\fR
-.RS 4
-Match the returned string of the last PROGRAM call\&. This key can be used in the same or in any later rule after a PROGRAM call\&.
-.RE
-.PP
-Most of the fields support shell\-style pattern matching\&. The following pattern characters are supported:
-.PP
-*
-.RS 4
-Matches zero or more characters\&.
-.RE
-.PP
-?
-.RS 4
-Matches any single character\&.
-.RE
-.PP
-[]
-.RS 4
-Matches any single character specified within the brackets\&. For example, the pattern string \*(Aqtty[SR]\*(Aq would match either \*(AqttyS\*(Aq or \*(AqttyR\*(Aq\&. Ranges are also supported via the \*(Aq\-\*(Aq character\&. For example, to match on the range of all digits, the pattern [0\-9] could be used\&. If the first character following the \*(Aq[\*(Aq is a \*(Aq!\*(Aq, any characters not enclosed are matched\&.
-.RE
-.PP
-The following keys can get values assigned:
-.PP
-\fBNAME\fR
-.RS 4
-The name to use for a network interface\&. The name of a device node cannot be changed by udev, only additional symlinks can be created\&.
-.RE
-.PP
-\fBSYMLINK\fR
-.RS 4
-The name of a symlink targeting the node\&. Every matching rule adds this value to the list of symlinks to be created\&.
-.sp
-The set of characters to name a symlink is limited\&. Allowed characters are [0\-9A\-Za\-z#+\-\&.:=@_/], valid utf8 character sequences, and "\ex00" hex encoding\&. All other characters are replaced by a \*(Aq_\*(Aq character\&.
-.sp
-Multiple symlinks may be specified by separating the names by the space character\&. In case multiple devices claim the same name, the link always points to the device with the highest link_priority\&. If the current device goes away, the links are re\-evaluated and the device with the next highest link_priority becomes the owner of the link\&. If no link_priority is specified, the order of the devices (and which one of them owns the link) is undefined\&.
-.sp
-Symlink names must never conflict with the kernel\*(Aqs default device node names, as that would result in unpredictable behavior\&.
-.RE
-.PP
-\fBOWNER\fR, \fBGROUP\fR, \fBMODE\fR
-.RS 4
-The permissions for the device node\&. Every specified value overrides the compiled\-in default value\&.
-.RE
-.PP
-\fBATTR{\fR\fB\fIkey\fR\fR\fB}\fR
-.RS 4
-The value that should be written to a sysfs attribute of the event device\&.
-.RE
-.PP
-\fBENV{\fR\fB\fIkey\fR\fR\fB}\fR
-.RS 4
-Set a device property value\&. Property names with a leading \*(Aq\&.\*(Aq are neither stored in the database nor exported to events or external tools (run by, say, the PROGRAM match key)\&.
-.RE
-.PP
-\fBTAG\fR
-.RS 4
-Attach a tag to a device\&. This is used to filter events for users of libudev\*(Aqs monitor functionality, or to enumerate a group of tagged devices\&. The implementation can only work efficiently if only a few tags are attached to a device\&. It is only meant to be used in contexts with specific device filter requirements, and not as a general\-purpose flag\&. Excessive use might result in inefficient event handling\&.
-.RE
-.PP
-\fBRUN{\fR\fB\fItype\fR\fR\fB}\fR
-.RS 4
-Add a program to the list of programs to be executed after processing all the rules for a specific event, depending on
-type:
-.PP
-program
-.RS 4
-Execute an external program specified as the assigned value\&. If no absolute path is given, the program is expected to live in /usr/lib/udev, otherwise the absolute path must be specified\&.
-.sp
-This is the default if no
-\fItype\fR
-is specified\&.
-.RE
-.PP
-builtin
-.RS 4
-As
-\fBprogram\fR, but use one of the built\-in programs rather than an external one\&.
-.RE
-.sp
-The program name and following arguments are separated by spaces\&. Single quotes can be used to specify arguments with spaces\&.
-.sp
-This can only be used for very short\-running foreground tasks\&. Running an event process for a long period of time may block all further events for this or a dependent device\&.
-.sp
-Starting daemons or other long running processes is not appropriate for udev; the forked processes, detached or not, will be unconditionally killed after the event handling has finished\&.
-.RE
-.PP
-\fBLABEL\fR
-.RS 4
-A named label to which a GOTO may jump\&.
-.RE
-.PP
-\fBGOTO\fR
-.RS 4
-Jumps to the next LABEL with a matching name\&.
-.RE
-.PP
-\fBIMPORT{\fR\fB\fItype\fR\fR\fB}\fR
-.RS 4
-Import a set of variables as device properties, depending on
-type:
-.PP
-program
-.RS 4
-Execute an external program specified as the assigned value and import its output, which must be in environment key format\&. Path specification, command/argument separation, and quoting work like in
-\fBRUN\fR\&.
-.RE
-.PP
-builtin
-.RS 4
-As
-\fBprogram\fR, but use one of the built\-in programs rather than an external one\&.
-.RE
-.PP
-file
-.RS 4
-Import a text file specified as the assigned value, the content of which must be in environment key format\&.
-.RE
-.PP
-db
-.RS 4
-Import a single property specified as the assigned value from the current device database\&. This works only if the database is already populated by an earlier event\&.
-.RE
-.PP
-cmdline
-.RS 4
-Import a single property from the kernel command line\&. For simple flags the value of the property is set to \*(Aq1\*(Aq\&.
-.RE
-.PP
-parent
-.RS 4
-Import the stored keys from the parent device by reading the database entry of the parent device\&. The value assigned to
-\fBIMPORT{parent}\fR
-is used as a filter of key names to import (with the same shell\-style pattern matching used for comparisons)\&.
-.RE
-.sp
-This can only be used for very short\-running foreground tasks\&. For details see
-\fBRUN\fR\&.
-.RE
-.PP
-\fBWAIT_FOR\fR
-.RS 4
-Wait for a file to become available or until a timeout of 10 seconds expires\&. The path is relative to the sysfs device; if no path is specified, this waits for an attribute to appear\&.
-.RE
-.PP
-\fBOPTIONS\fR
-.RS 4
-Rule and device options:
-.PP
-\fBlink_priority=\fR\fB\fIvalue\fR\fR
-.RS 4
-Specify the priority of the created symlinks\&. Devices with higher priorities overwrite existing symlinks of other devices\&. The default is 0\&.
-.RE
-.PP
-\fBevent_timeout=\fR
-.RS 4
-Number of seconds an event waits for operations to finish before giving up and terminating itself\&.
-.RE
-.PP
-\fBstring_escape=\fR\fB\fInone|replace\fR\fR
-.RS 4
-Usually control and other possibly unsafe characters are replaced in strings used for device naming\&. The mode of replacement can be specified with this option\&.
-.RE
-.PP
-\fBstatic_node=\fR
-.RS 4
-Apply the permissions specified in this rule to the static device node with the specified name\&. Static device node creation can be requested by kernel modules\&. These nodes might not have a corresponding kernel device at the time udevd is started; they can trigger automatic kernel module loading\&.
-.RE
-.PP
-\fBwatch\fR
-.RS 4
-Watch the device node with inotify; when the node is closed after being opened for writing, a change uevent is synthesized\&.
-.RE
-.PP
-\fBnowatch\fR
-.RS 4
-Disable the watching of a device node with inotify\&.
-.RE
-.RE
-.PP
-The
-\fBNAME\fR,
-\fBSYMLINK\fR,
-\fBPROGRAM\fR,
-\fBOWNER\fR,
-\fBGROUP\fR,
-\fBMODE\fR
-and
-\fBRUN\fR
-fields support simple string substitutions\&. The
-\fBRUN\fR
-substitutions are performed after all rules have been processed, right before the program is executed, allowing for the use of device properties set by earlier matching rules\&. For all other fields, substitutions are performed while the individual rule is being processed\&. The available substitutions are:
-.PP
-\fB$kernel\fR, \fB%k\fR
-.RS 4
-The kernel name for this device\&.
-.RE
-.PP
-\fB$number\fR, \fB%n\fR
-.RS 4
-The kernel number for this device\&. For example, \*(Aqsda3\*(Aq has kernel number of \*(Aq3\*(Aq
-.RE
-.PP
-\fB$devpath\fR, \fB%p\fR
-.RS 4
-The devpath of the device\&.
-.RE
-.PP
-\fB$id\fR, \fB%b\fR
-.RS 4
-The name of the device matched while searching the devpath upwards for
-\fBSUBSYSTEMS\fR,
-\fBKERNELS\fR,
-\fBDRIVERS\fR
-and
-\fBATTRS\fR\&.
-.RE
-.PP
-\fB$driver\fR
-.RS 4
-The driver name of the device matched while searching the devpath upwards for
-\fBSUBSYSTEMS\fR,
-\fBKERNELS\fR,
-\fBDRIVERS\fR
-and
-\fBATTRS\fR\&.
-.RE
-.PP
-\fB$attr{\fR\fB\fIfile\fR\fR\fB}\fR, \fB%s{\fR\fB\fIfile\fR\fR\fB}\fR
-.RS 4
-The value of a sysfs attribute found at the device where all keys of the rule have matched\&. If the matching device does not have such an attribute, and a previous KERNELS, SUBSYSTEMS, DRIVERS, or ATTRS test selected a parent device, then the attribute from that parent device is used\&.
-.sp
-If the attribute is a symlink, the last element of the symlink target is returned as the value\&.
-.RE
-.PP
-\fB$env{\fR\fB\fIkey\fR\fR\fB}\fR, \fB%E{\fR\fB\fIkey\fR\fR\fB}\fR
-.RS 4
-A device property value\&.
-.RE
-.PP
-\fB$major\fR, \fB%M\fR
-.RS 4
-The kernel major number for the device\&.
-.RE
-.PP
-\fB$minor\fR, \fB%m\fR
-.RS 4
-The kernel minor number for the device\&.
-.RE
-.PP
-\fB$result\fR, \fB%c\fR
-.RS 4
-The string returned by the external program requested with PROGRAM\&. A single part of the string, separated by a space character, may be selected by specifying the part number as an attribute:
-\fB%c{N}\fR\&. If the number is followed by the \*(Aq+\*(Aq character, this part plus all remaining parts of the result string are substituted:
-\fB%c{N+}\fR
-.RE
-.PP
-\fB$parent\fR, \fB%P\fR
-.RS 4
-The node name of the parent device\&.
-.RE
-.PP
-\fB$name\fR
-.RS 4
-The current name of the device\&. If not changed by a rule, it is the name of the kernel device\&.
-.RE
-.PP
-\fB$links\fR
-.RS 4
-A space\-separated list of the current symlinks\&. The value is only set during a remove event or if an earlier rule assigned a value\&.
-.RE
-.PP
-\fB$root\fR, \fB%r\fR
-.RS 4
-The udev_root value\&.
-.RE
-.PP
-\fB$sys\fR, \fB%S\fR
-.RS 4
-The sysfs mount point\&.
-.RE
-.PP
-\fB$devnode\fR, \fB%N\fR
-.RS 4
-The name of the device node\&.
-.RE
-.PP
-%%
-.RS 4
-The \*(Aq%\*(Aq character itself\&.
-.RE
-.PP
-$$
-.RS 4
-The \*(Aq$\*(Aq character itself\&.
-.RE
-.SH "SEE ALSO"
-.PP
-\fBudevd\fR(8),
-\fBudevadm\fR(8)
diff --git a/udev-lfs/udevadm.8 b/udev-lfs/udevadm.8
deleted file mode 100644
index 373b65cee..000000000
--- a/udev-lfs/udevadm.8
+++ /dev/null
@@ -1,372 +0,0 @@
-'\" t
-.TH "UDEVADM" "8" "" "systemd 202" "udevadm"
-.\" -----------------------------------------------------------------
-.\" * Define some portability stuff
-.\" -----------------------------------------------------------------
-.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-.\" http://bugs.debian.org/507673
-.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
-.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-.ie \n(.g .ds Aq \(aq
-.el .ds Aq '
-.\" -----------------------------------------------------------------
-.\" * set default formatting
-.\" -----------------------------------------------------------------
-.\" disable hyphenation
-.nh
-.\" disable justification (adjust text to left margin only)
-.ad l
-.\" -----------------------------------------------------------------
-.\" * MAIN CONTENT STARTS HERE *
-.\" -----------------------------------------------------------------
-.SH "NAME"
-udevadm \- udev management tool
-.SH "SYNOPSIS"
-.HP \w'\fBudevadm\fR\ 'u
-\fBudevadm\fR [\fB\-\-debug\fR] [\fB\-\-version\fR] [\fB\-\-help\fR]
-.HP \w'\fBudevadm\ info\ \fR\fB\fIoptions\fR\fR\ 'u
-\fBudevadm info \fR\fB\fIoptions\fR\fR
-.HP \w'\fBudevadm\ trigger\ \fR\fB[options]\fR\ 'u
-\fBudevadm trigger \fR\fB[options]\fR
-.HP \w'\fBudevadm\ settle\ \fR\fB[options]\fR\ 'u
-\fBudevadm settle \fR\fB[options]\fR
-.HP \w'\fBudevadm\ control\ \fR\fB\fIcommand\fR\fR\ 'u
-\fBudevadm control \fR\fB\fIcommand\fR\fR
-.HP \w'\fBudevadm\ monitor\ \fR\fB[options]\fR\ 'u
-\fBudevadm monitor \fR\fB[options]\fR
-.HP \w'\fBudevadm\ hwdb\ \fR\fB[options]\fR\ 'u
-\fBudevadm hwdb \fR\fB[options]\fR
-.HP \w'\fBudevadm\ test\ \fR\fB[options]\fR\fB\ \fR\fB\fIdevpath\fR\fR\ 'u
-\fBudevadm test \fR\fB[options]\fR\fB \fR\fB\fIdevpath\fR\fR
-.HP \w'\fBudevadm\ test\-builtin\ \fR\fB[options]\fR\fB\ \fR\fB\fIcommand\fR\fR\fB\ \fR\fB\fIdevpath\fR\fR\ 'u
-\fBudevadm test\-builtin \fR\fB[options]\fR\fB \fR\fB\fIcommand\fR\fR\fB \fR\fB\fIdevpath\fR\fR
-.SH "DESCRIPTION"
-.PP
-udevadm expects a command and command specific options\&. It controls the runtime behavior of udev, requests kernel events, manages the event queue, and provides simple debugging mechanisms\&.
-.SH "OPTIONS"
-.PP
-\fB\-\-debug\fR
-.RS 4
-Print debug messages to stderr\&.
-.RE
-.PP
-\fB\-\-version\fR
-.RS 4
-Print version number\&.
-.RE
-.PP
-\fB\-\-help\fR
-.RS 4
-Print help text\&.
-.RE
-.SS "udevadm info \fIoptions\fR"
-.PP
-Queries the udev database for device information stored in the udev database\&. It can also query the properties of a device from its sysfs representation to help creating udev rules that match this device\&.
-.PP
-\fB\-\-query=\fR\fB\fItype\fR\fR
-.RS 4
-Query the database for specified type of device data\&. It needs the
-\fB\-\-path\fR
-or
-\fB\-\-name\fR
-to identify the specified device\&. Valid queries are:
-\fBname\fR,
-\fBsymlink\fR,
-\fBpath\fR,
-\fBproperty\fR,
-\fBall\fR\&.
-.RE
-.PP
-\fB\-\-path=\fR\fB\fIdevpath\fR\fR
-.RS 4
-The devpath of the device to query\&.
-.RE
-.PP
-\fB\-\-name=\fR\fB\fIfile\fR\fR
-.RS 4
-The name of the device node or a symlink to query
-.RE
-.PP
-\fB\-\-root\fR
-.RS 4
-Print absolute paths in
-\fBname\fR
-or
-\fBsymlink\fR
-query\&.
-.RE
-.PP
-\fB\-\-attribute\-walk\fR
-.RS 4
-Print all sysfs properties of the specified device that can be used in udev rules to match the specified device\&. It prints all devices along the chain, up to the root of sysfs that can be used in udev rules\&.
-.RE
-.PP
-\fB\-\-export\fR
-.RS 4
-Print output as key/value pairs\&. Values are enclosed in single quotes\&.
-.RE
-.PP
-\fB\-\-export\-prefix=\fR\fB\fIname\fR\fR
-.RS 4
-Add a prefix to the key name of exported values\&.
-.RE
-.PP
-\fB\-\-device\-id\-of\-file=\fR\fB\fIfile\fR\fR
-.RS 4
-Print major/minor numbers of the underlying device, where the file lives on\&.
-.RE
-.PP
-\fB\-\-export\-db\fR
-.RS 4
-Export the content of the udev database\&.
-.RE
-.PP
-\fB\-\-cleanup\-db\fR
-.RS 4
-Cleanup the udev database\&.
-.RE
-.PP
-\fB\-\-version\fR
-.RS 4
-Print version\&.
-.RE
-.PP
-\fB\-\-help\fR
-.RS 4
-Print help text\&.
-.RE
-.SS "udevadm trigger [options]"
-.PP
-Request device events from the kernel\&. Primarily used to replay events at system coldplug time\&.
-.PP
-\fB\-\-verbose\fR
-.RS 4
-Print the list of devices which will be triggered\&.
-.RE
-.PP
-\fB\-\-dry\-run\fR
-.RS 4
-Do not actually trigger the event\&.
-.RE
-.PP
-\fB\-\-type=\fR\fB\fItype\fR\fR
-.RS 4
-Trigger a specific type of devices\&. Valid types are:
-\fBdevices\fR,
-\fBsubsystems\fR\&. The default value is
-\fBdevices\fR\&.
-.RE
-.PP
-\fB\-\-action=\fR\fB\fIaction\fR\fR
-.RS 4
-Type of event to be triggered\&. The default value is
-\fBchange\fR\&.
-.RE
-.PP
-\fB\-\-subsystem\-match=\fR\fB\fIsubsystem\fR\fR
-.RS 4
-Trigger events for devices which belong to a matching subsystem\&. This option can be specified multiple times and supports shell style pattern matching\&.
-.RE
-.PP
-\fB\-\-subsystem\-nomatch=\fR\fB\fIsubsystem\fR\fR
-.RS 4
-Do not trigger events for devices which belong to a matching subsystem\&. This option can be specified multiple times and supports shell style pattern matching\&.
-.RE
-.PP
-\fB\-\-attr\-match=\fR\fB\fIattribute\fR\fR\fB=\fR\fB\fIvalue\fR\fR
-.RS 4
-Trigger events for devices with a matching sysfs attribute\&. If a value is specified along with the attribute name, the content of the attribute is matched against the given value using shell style pattern matching\&. If no value is specified, the existence of the sysfs attribute is checked\&. This option can be specified multiple times\&.
-.RE
-.PP
-\fB\-\-attr\-nomatch=\fR\fB\fIattribute\fR\fR\fB=\fR\fB\fIvalue\fR\fR
-.RS 4
-Do not trigger events for devices with a matching sysfs attribute\&. If a value is specified along with the attribute name, the content of the attribute is matched against the given value using shell style pattern matching\&. If no value is specified, the existence of the sysfs attribute is checked\&. This option can be specified multiple times\&.
-.RE
-.PP
-\fB\-\-property\-match=\fR\fB\fIproperty\fR\fR\fB=\fR\fB\fIvalue\fR\fR
-.RS 4
-Trigger events for devices with a matching property value\&. This option can be specified multiple times and supports shell style pattern matching\&.
-.RE
-.PP
-\fB\-\-tag\-match=\fR\fB\fIproperty\fR\fR
-.RS 4
-Trigger events for devices with a matching tag\&. This option can be specified multiple times\&.
-.RE
-.PP
-\fB\-\-sysname\-match=\fR\fB\fIname\fR\fR
-.RS 4
-Trigger events for devices with a matching sys device name\&. This option can be specified multiple times and supports shell style pattern matching\&.
-.RE
-.PP
-\fB\-\-parent\-match=\fR\fB\fIsyspath\fR\fR
-.RS 4
-Trigger events for all children of a given device\&.
-.RE
-.SS "udevadm settle [options]"
-.PP
-Watches the udev event queue, and exits if all current events are handled\&.
-.PP
-\fB\-\-timeout=\fR\fB\fIseconds\fR\fR
-.RS 4
-Maximum number of seconds to wait for the event queue to become empty\&. The default value is 120 seconds\&. A value of 0 will check if the queue is empty and always return immediately\&.
-.RE
-.PP
-\fB\-\-seq\-start=\fR\fB\fIseqnum\fR\fR
-.RS 4
-Wait only for events after the given sequence number\&.
-.RE
-.PP
-\fB\-\-seq\-end=\fR\fB\fIseqnum\fR\fR
-.RS 4
-Wait only for events before the given sequence number\&.
-.RE
-.PP
-\fB\-\-exit\-if\-exists=\fR\fB\fIfile\fR\fR
-.RS 4
-Stop waiting if file exists\&.
-.RE
-.PP
-\fB\-\-quiet\fR
-.RS 4
-Do not print any output, like the remaining queue entries when reaching the timeout\&.
-.RE
-.PP
-\fB\-\-help\fR
-.RS 4
-Print help text\&.
-.RE
-.SS "udevadm control \fIcommand\fR"
-.PP
-Modify the internal state of the running udev daemon\&.
-.PP
-\fB\-\-exit\fR
-.RS 4
-Signal and wait for udevd to exit\&.
-.RE
-.PP
-\fB\-\-log\-priority=\fR\fB\fIvalue\fR\fR
-.RS 4
-Set the internal log level of udevd\&. Valid values are the numerical syslog priorities or their textual representations:
-\fBerr\fR,
-\fBinfo\fR
-and
-\fBdebug\fR\&.
-.RE
-.PP
-\fB\-\-stop\-exec\-queue\fR
-.RS 4
-Signal udevd to stop executing new events\&. Incoming events will be queued\&.
-.RE
-.PP
-\fB\-\-start\-exec\-queue\fR
-.RS 4
-Signal udevd to enable the execution of events\&.
-.RE
-.PP
-\fB\-\-reload\fR
-.RS 4
-Signal udevd to reload the rules files and other databases like the kernel module index\&. Reloading rules and databases does not apply any changes to already existing devices; the new configuration will only be applied to new events\&.
-.RE
-.PP
-\fB\-\-property=\fR\fB\fIKEY\fR\fR\fB=\fR\fB\fIvalue\fR\fR
-.RS 4
-Set a global property for all events\&.
-.RE
-.PP
-\fB\-\-children\-max=\fR\fIvalue\fR
-.RS 4
-Set the maximum number of events, udevd will handle at the same time\&.
-.RE
-.PP
-\fB\-\-timeout=\fR\fIseconds\fR
-.RS 4
-The maximum number of seconds to wait for a reply from udevd\&.
-.RE
-.PP
-\fB\-\-help\fR
-.RS 4
-Print help text\&.
-.RE
-.SS "udevadm monitor [options]"
-.PP
-Listens to the kernel uevents and events sent out by a udev rule and prints the devpath of the event to the console\&. It can be used to analyze the event timing, by comparing the timestamps of the kernel uevent and the udev event\&.
-.PP
-\fB\-\-kernel\fR
-.RS 4
-Print the kernel uevents\&.
-.RE
-.PP
-\fB\-\-udev\fR
-.RS 4
-Print the udev event after the rule processing\&.
-.RE
-.PP
-\fB\-\-property\fR
-.RS 4
-Also print the properties of the event\&.
-.RE
-.PP
-\fB\-\-subsystem\-match=\fR\fB\fIstring[/string]\fR\fR
-.RS 4
-Filter events by subsystem[/devtype]\&. Only udev events with a matching subsystem value will pass\&.
-.RE
-.PP
-\fB\-\-tag\-match=\fR\fB\fIstring\fR\fR
-.RS 4
-Filter events by property\&. Only udev events with a given tag attached will pass\&.
-.RE
-.PP
-\fB\-\-help\fR
-.RS 4
-Print help text\&.
-.RE
-.SS "udevadm hwdb [options]"
-.PP
-Maintain the hardware database index in
-/etc/udev/hwdb\&.bin\&.
-.PP
-\fB\-\-update\fR
-.RS 4
-Compile the hardware database information located in /usr/lib/udev/hwdb\&.d/, /etc/udev/hwdb\&.d/ and store it in
-/etc/udev/hwdb\&.bin\&. This should be done after any update to the source files; it will not be called automatically\&. The running udev daemon will detect a new database on its own and does not need to be notified about it\&.
-.RE
-.PP
-\fB\-\-test=\fR\fB\fIstring\fR\fR
-.RS 4
-Query the database with a modalias string, and print the retrieved properties\&.
-.RE
-.PP
-\fB\-\-root=\fR\fB\fIstring\fR\fR
-.RS 4
-Alternative root path in the filesystem for reading and writing files\&.
-.RE
-.SS "udevadm test [options] \fIdevpath\fR"
-.PP
-Simulate a udev event run for the given device, and print debug output\&.
-.PP
-\fB\-\-action=\fR\fB\fIstring\fR\fR
-.RS 4
-The action string\&.
-.RE
-.PP
-\fB\-\-subsystem=\fR\fB\fIstring\fR\fR
-.RS 4
-The subsystem string\&.
-.RE
-.PP
-\fB\-\-help\fR
-.RS 4
-Print help text\&.
-.RE
-.SS "udevadm test\-builtin [options] \fIcommand\fR \fIdevpath\fR"
-.PP
-Run a built\-in command for the given device, and print debug output\&.
-.PP
-\fB\-\-help\fR
-.RS 4
-Print help text\&.
-.RE
-.SH "SEE ALSO"
-.PP
-\fBudev\fR(7)
-\fBudevd.service\fR(8)
diff --git a/udev-lfs/udevd.8 b/udev-lfs/udevd.8
deleted file mode 100644
index 0730756cb..000000000
--- a/udev-lfs/udevd.8
+++ /dev/null
@@ -1,124 +0,0 @@
-'\" t
-.TH "SYSTEMD\-UDEVD\&.SERVICE" "8" "" "systemd 202" "udevd"
-.\" -----------------------------------------------------------------
-.\" * Define some portability stuff
-.\" -----------------------------------------------------------------
-.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-.\" http://bugs.debian.org/507673
-.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
-.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-.ie \n(.g .ds Aq \(aq
-.el .ds Aq '
-.\" -----------------------------------------------------------------
-.\" * set default formatting
-.\" -----------------------------------------------------------------
-.\" disable hyphenation
-.nh
-.\" disable justification (adjust text to left margin only)
-.ad l
-.\" -----------------------------------------------------------------
-.\" * MAIN CONTENT STARTS HERE *
-.\" -----------------------------------------------------------------
-.SH "NAME"
-udevd \- Device event managing daemon
-.SH "SYNOPSIS"
-.HP \w'\fB/usr/lib/udevd\fR\ 'u
-\fB/lib/udev/udevd\fR [\fB\-\-daemon\fR] [\fB\-\-debug\fR] [\fB\-\-children\-max=\fR] [\fB\-\-exec\-delay=\fR] [\fB\-\-resolve\-names=early|late|never\fR] [\fB\-\-version\fR] [\fB\-\-help\fR]
-.SH "DESCRIPTION"
-.PP
-\fBudevd\fR
-listens to kernel uevents\&. For every event, udevd executes matching instructions specified in udev rules\&. See
-\fBudev\fR(7)\&.
-.PP
-The behavior of the running daemon can be changed with
-\fBudevadm control\fR\&.
-.SH "OPTIONS"
-.PP
-\fB\-\-daemon\fR
-.RS 4
-Detach and run in the background\&.
-.RE
-.PP
-\fB\-\-debug\fR
-.RS 4
-Print debug messages to stderr\&.
-.RE
-.PP
-\fB\-\-children\-max=\fR
-.RS 4
-Limit the number of events executed in parallel\&.
-.RE
-.PP
-\fB\-\-exec\-delay=\fR
-.RS 4
-Delay the execution of RUN instruction by the given number of seconds\&. This option might be useful when debugging system crashes during coldplug caused by loading non\-working kernel modules\&.
-.RE
-.PP
-\fB\-\-resolve\-names=\fR
-.RS 4
-Specify when udevd should resolve names of users and groups\&. When set to
-\fBearly\fR
-(the default) names will be resolved when the rules are parsed\&. When set to
-\fBlate\fR
-names will be resolved for every event\&. When set to
-\fBnever\fR
-names will never be resolved and all devices will be owned by root\&.
-.RE
-.PP
-\fB\-\-version\fR
-.RS 4
-Print version number\&.
-.RE
-.PP
-\fB\-\-help\fR
-.RS 4
-Print help text\&.
-.RE
-.SH "ENVIRONMENT"
-.PP
-\fI$UDEV_LOG=\fR
-.RS 4
-Set the logging priority\&.
-.RE
-.SH "KERNEL COMMAND LINE"
-.PP
-Parameters starting with "rd\&." will be read when
-\fBudevd\fR
-is used in an initrd\&.
-.PP
-\fIudev\&.log\-priority=\fR, \fIrd\&.udev\&.log\-priority=\fR
-.RS 4
-Set the logging priority\&.
-.RE
-.PP
-\fIudev\&.children\-max=\fR, \fIrd\&.udev\&.children\-max=\fR
-.RS 4
-Limit the number of events executed in parallel\&.
-.RE
-.PP
-\fIudev\&.exec\-delay=\fR, \fIrd\&.udev\&.exec\-delay=\fR
-.RS 4
-Delay the execution of RUN instruction by the given number of seconds\&. This option might be useful when debugging system crashes during coldplug caused by loading non\-working kernel modules\&.
-.RE
-.PP
-\fInet\&.ifnames=\fR
-.RS 4
-Network interfaces are renamed to give them predictable names when possible\&. It is enabled by default, specifying 0 disables it\&.
-.RE
-.SH "CONFIGURATION FILE"
-.PP
-udev expects its main configuration file at
-/etc/udev/udev\&.conf\&. It consists of a set of variables allowing the user to override default udev values\&. All empty lines or lines beginning with \*(Aq#\*(Aq are ignored\&. The following variables can be set:
-.PP
-\fIudev_log\fR
-.RS 4
-The logging priority\&. Valid values are the numerical syslog priorities or their textual representations:
-\fBerr\fR,
-\fBinfo\fR
-and
-\fBdebug\fR\&.
-.RE
-.SH "SEE ALSO"
-.PP
-\fBudev\fR(7),
-\fBudevadm\fR(8)