diff options
author | Richard Purdie <richard@openedhand.com> | 2005-08-31 10:45:47 +0000 |
---|---|---|
committer | Richard Purdie <richard@openedhand.com> | 2005-08-31 10:45:47 +0000 |
commit | 4b46c1f6e891b1ddd5968536440b888661fade3e (patch) | |
tree | e0ba2c1f56f61b868bf746da5c4feabb25b800b2 /openembedded/packages/udev/udev.inc | |
download | poky-4b46c1f6e891b1ddd5968536440b888661fade3e.tar.gz |
Initial population
git-svn-id: https://svn.o-hand.com/repos/poky@1 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'openembedded/packages/udev/udev.inc')
-rw-r--r-- | openembedded/packages/udev/udev.inc | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/openembedded/packages/udev/udev.inc b/openembedded/packages/udev/udev.inc new file mode 100644 index 0000000000..0b51df4797 --- /dev/null +++ b/openembedded/packages/udev/udev.inc | |||
@@ -0,0 +1,42 @@ | |||
1 | DESCRIPTION = "udev is a program which dynamically creates and removes device nodes from \ | ||
2 | /dev/. It responds to /sbin/hotplug device events and requires a 2.6 kernel." | ||
3 | LICENSE = "GPL" | ||
4 | |||
5 | UDEV_DEVFS_RULES ?= "0" | ||
6 | |||
7 | PACKAGES =+ "udev-utils" | ||
8 | FILES_udev-utils = "${usrbindir}/udevinfo ${usrbindir}/udevtest" | ||
9 | |||
10 | inherit update-rc.d | ||
11 | |||
12 | INITSCRIPT_NAME = "udev" | ||
13 | INITSCRIPT_PARAMS = "start 04 S ." | ||
14 | |||
15 | export CROSS = "${TARGET_PREFIX}" | ||
16 | export HOSTCC = "${BUILD_CC}" | ||
17 | export udevdir ?= "/dev" | ||
18 | export usrbindir := "${bindir}" | ||
19 | export usrsbindir := "${sbindir}" | ||
20 | export etcdir = "${sysconfdir}" | ||
21 | LD = "${CC}" | ||
22 | bindir = "/bin" | ||
23 | sbindir = "/sbin" | ||
24 | |||
25 | UDEV_EXTRAS = "<override me>" | ||
26 | FILES_${PN} += "${usrbindir} ${usrsbindir}" | ||
27 | EXTRA_OEMAKE = "-e \ | ||
28 | 'EXTRAS=${UDEV_EXTRAS}' \ | ||
29 | 'STRIP=echo'" | ||
30 | |||
31 | do_install () { | ||
32 | install -d ${D}${usrsbindir} \ | ||
33 | ${D}${sbindir} | ||
34 | oe_runmake 'DESTDIR=${D}' INSTALL=install install | ||
35 | install -d ${D}${sysconfdir}/init.d | ||
36 | install -m 0755 ${WORKDIR}/init ${D}${sysconfdir}/init.d/udev | ||
37 | if [ "${UDEV_DEVFS_RULES}" = "1" ]; then | ||
38 | install -m 0644 ${S}/etc/udev/udev.rules.devfs ${D}${sysconfdir}/udev/rules.d/50-udev.rules | ||
39 | fi | ||
40 | install -d ${D}${sysconfdir}/udev/rules.d/ | ||
41 | install -m 0644 ${S}/etc/udev/debian/permissions.rules ${D}${sysconfdir}/udev/rules.d/ | ||
42 | } | ||