summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRod Whitby <rod@whitby.id.au>2006-01-07 05:57:38 +0000
committerOpenEmbedded Project <openembedded-devel@lists.openembedded.org>2006-01-07 05:57:38 +0000
commit4a9a33b78f011fdaeed2331cfac0f48c69d8dfdf (patch)
treef19587381063c2e349b7a795a34e7b44481458ed
parent68e2ec73194dd207956bb876f9f612c886e25bb8 (diff)
openslug-init: Add code to create /dev/rtc for the new RTC class driver by azummo.
-rw-r--r--packages/openslug-init/openslug-init-0.10/links.conf6
-rw-r--r--packages/openslug-init/openslug-init_0.10.bb8
2 files changed, 13 insertions, 1 deletions
diff --git a/packages/openslug-init/openslug-init-0.10/links.conf b/packages/openslug-init/openslug-init-0.10/links.conf
new file mode 100644
index 0000000000..fdd1f3ce23
--- /dev/null
+++ b/packages/openslug-init/openslug-init-0.10/links.conf
@@ -0,0 +1,6 @@
+# This file does not exist. Please do not ask the debian maintainer about it.
+# You may use it to do strange and wonderful things, at your risk.
+
+# The new RTC class does not create the /dev/rtc symlink, and udev rules don't get run for built-in modules.
+# So it looks like we have to do this here for the moment, until someone comes up with a better idea ...
+L rtc rtc0
diff --git a/packages/openslug-init/openslug-init_0.10.bb b/packages/openslug-init/openslug-init_0.10.bb
index fa85d9c6f7..a54e45ed3d 100644
--- a/packages/openslug-init/openslug-init_0.10.bb
+++ b/packages/openslug-init/openslug-init_0.10.bb
@@ -3,7 +3,7 @@ SECTION = "console/network"
LICENSE = "GPL"
DEPENDS = "base-files devio"
RDEPENDS = "busybox devio"
-PR = "r44"
+PR = "r45"
SRC_URI = "file://linuxrc \
file://boot/flash \
@@ -25,6 +25,7 @@ SRC_URI = "file://linuxrc \
file://turnup \
file://reflash \
file://modprobe.conf \
+ file://links.conf \
file://leds.h \
file://leds.c \
"
@@ -57,6 +58,7 @@ do_install() {
${D}${sysconfdir}/default \
${D}${sysconfdir}/init.d \
${D}${sysconfdir}/modutils \
+ ${D}${sysconfdir}/udev \
${D}${sbindir} \
${D}${base_sbindir} \
${D}/initrd \
@@ -91,6 +93,10 @@ do_install() {
done
#
+ # Udev configuration files
+ install -m 0644 links.conf ${D}${sysconfdir}/udev
+
+ #
# Boot scripts
for p in ${BOOTSCRIPTS}
do