summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2005-03-15 19:16:00 +0000
committerEric Andersen <andersen@codepoet.org>2005-03-15 19:16:00 +0000
commitaa915009fc1ec2ef3cb07e2961fdaeae019f0b67 (patch)
tree67e545a3637be5079179bbaff77781b22f6e4313
parent0fd5ede9f635c619dcdffc692471a88291a4c81b (diff)
downloadbuildroot-novena-aa915009fc1ec2ef3cb07e2961fdaeae019f0b67.tar.gz
buildroot-novena-aa915009fc1ec2ef3cb07e2961fdaeae019f0b67.zip
Add support for udev, from Nathanael Noblet
-rw-r--r--package/Config.in1
-rw-r--r--package/udev/Config.in7
-rw-r--r--package/udev/udev.mk51
3 files changed, 59 insertions, 0 deletions
diff --git a/package/Config.in b/package/Config.in
index a96e28887..924297761 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -97,6 +97,7 @@ source "package/tinylogin/Config.in"
source "package/tinyx/Config.in"
source "package/tn5250/Config.in"
source "package/ttcp/Config.in"
+source "package/udev/Config.in"
source "package/udhcp/Config.in"
source "package/util-linux/Config.in"
source "package/valgrind/Config.in"
diff --git a/package/udev/Config.in b/package/udev/Config.in
new file mode 100644
index 000000000..3bf101459
--- /dev/null
+++ b/package/udev/Config.in
@@ -0,0 +1,7 @@
+config BR2_PACKAGE_UDEV
+ bool "udev"
+ default n
+ help
+ Userspace device daemon.
+
+ ftp://ftp.kernel.org/pub/linux/utils/kernel/hotplug/
diff --git a/package/udev/udev.mk b/package/udev/udev.mk
new file mode 100644
index 000000000..ce0091f84
--- /dev/null
+++ b/package/udev/udev.mk
@@ -0,0 +1,51 @@
+#############################################################
+#
+# udev
+#
+#############################################################
+UDEV_VERSION:=030
+UDEV_SOURCE:=udev-$(UDEV_VERSION).tar.bz2
+UDEV_SITE:=ftp://ftp.kernel.org/pub/linux/utils/kernel/hotplug/
+UDEV_CAT:=bzcat
+UDEV_DIR:=$(BUILD_DIR)/udev-$(UDEV_VERSION)
+UDEV_TARGET_BINARY:=sbin/udev
+UDEV_BINARY:=udev
+
+$(DL_DIR)/$(UDEV_SOURCE):
+ $(WGET) -P $(DL_DIR) $(UDEV_SITE)/$(UDEV_SOURCE)
+
+udev-source: $(DL_DIR)/$(UDEV_SOURCE)
+
+$(UDEV_DIR)/.unpacked: $(DL_DIR)/$(UDEV_SOURCE)
+ $(UDEV_CAT) $(DL_DIR)/$(UDEV_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
+ touch $(UDEV_DIR)/.unpacked
+
+$(UDEV_DIR)/.configured: $(UDEV_DIR)/.unpacked
+ touch $(UDEV_DIR)/.configured
+
+$(UDEV_DIR)/$(UDEV_BINARY): $(UDEV_DIR)/.configured
+ $(MAKE) CROSS=$(TARGET_CROSS) GCC=$(TARGET_CC) \
+ USE_LOG=false USE_SELINUX=false -C $(UDEV_DIR)
+ touch -c $(UDEV_DIR)/$(UDEV_BINARY)
+
+$(TARGET_DIR)/$(UDEV_TARGET_BINARY): $(UDEV_DIR)/$(UDEV_BINARY)
+ $(MAKE) CROSS=$(TARGET_CROSS) GCC=$(TARGET_CC) DESTDIR=$(TARGET_DIR) \
+ USE_LOG=false USE_SELINUX=false -C $(UDEV_DIR) install
+
+udev: uclibc $(TARGET_DIR)/$(UDEV_TARGET_BINARY)
+
+udev-clean:
+ $(MAKE) DESTDIR=$(TARGET_DIR) CC=$(TARGET_CC) -C $(UDEV_DIR) uninstall
+ -$(MAKE) -C $(UDEV_DIR) clean
+
+udev-dirclean:
+ rm -rf $(UDEV_DIR)
+
+#############################################################
+#
+# Toplevel Makefile options
+#
+#############################################################
+ifeq ($(strip $(BR2_PACKAGE_UDEV)),y)
+TARGETS+=udev
+endif