* [Buildroot] svn commit: trunk/buildroot/package/udev
@ 2006-11-29 18:59 aldot at uclibc.org
2006-11-29 21:38 ` Petr Stetiar
0 siblings, 1 reply; 5+ messages in thread
From: aldot at uclibc.org @ 2006-11-29 18:59 UTC (permalink / raw)
To: buildroot
Author: aldot
Date: 2006-11-29 10:59:43 -0800 (Wed, 29 Nov 2006)
New Revision: 16723
Log:
- build a udev for the target rather than for the host.
Modified:
trunk/buildroot/package/udev/udev.mk
Changeset:
Modified: trunk/buildroot/package/udev/udev.mk
===================================================================
--- trunk/buildroot/package/udev/udev.mk 2006-11-29 18:15:52 UTC (rev 16722)
+++ trunk/buildroot/package/udev/udev.mk 2006-11-29 18:59:43 UTC (rev 16723)
@@ -11,6 +11,13 @@
UDEV_TARGET_BINARY:=sbin/udev
UDEV_BINARY:=udev
+# 094 had _GNU_SOURCE set
+BR2_UDEV_CFLAGS:= -D_GNU_SOURCE $(TARGET_CFLAGS)
+ifeq ($(BR2_LARGEFILE),)
+BR2_UDEV_CFLAGS+=-U_FILE_OFFSET_BITS
+endif
+
+
# UDEV_ROOT is /dev so we can replace devfs, not /udev for experiments
UDEV_ROOT:=/dev
@@ -28,7 +35,8 @@
touch $(UDEV_DIR)/.configured
$(UDEV_DIR)/$(UDEV_BINARY): $(UDEV_DIR)/.configured
- $(MAKE) CROSS=$(TARGET_CROSS) GCC=$(TARGET_CC) \
+ $(MAKE) CROSS=$(TARGET_CROSS) CC=$(TARGET_CC) LD=$(TARGET_CC) \
+ CFLAGS="$(BR2_UDEV_CFLAGS)" \
USE_LOG=false USE_SELINUX=false \
udevdir=$(UDEV_ROOT) -C $(UDEV_DIR)
touch -c $(UDEV_DIR)/$(UDEV_BINARY)
@@ -43,7 +51,10 @@
-mkdir $(TARGET_DIR)/sys
install -D -m 0644 $(UDEV_DIR)/$(UDEV_CONF) \
$(TARGET_DIR)/etc/udev/rules.d/50-udev.rules
- $(MAKE) CROSS=$(TARGET_CROSS) GCC=$(TARGET_CC) DESTDIR=$(TARGET_DIR) \
+ $(MAKE) CROSS=$(TARGET_CROSS) CC=$(TARGET_CC) LD=$(TARGET_CC) \
+ DESTDIR=$(TARGET_DIR) \
+ CFLAGS="$(BR2_UDEV_CFLAGS)" \
+ LDFLAGS="-warn-common" \
USE_LOG=false USE_SELINUX=false \
udevdir=$(UDEV_ROOT) -C $(UDEV_DIR) install
$(INSTALL) -m 0755 -D package/udev/init-udev $(TARGET_DIR)/etc/init.d/S10udev
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Buildroot] svn commit: trunk/buildroot/package/udev
2006-11-29 18:59 [Buildroot] svn commit: trunk/buildroot/package/udev aldot at uclibc.org
@ 2006-11-29 21:38 ` Petr Stetiar
2006-12-01 17:50 ` Bernhard Fischer
0 siblings, 1 reply; 5+ messages in thread
From: Petr Stetiar @ 2006-11-29 21:38 UTC (permalink / raw)
To: buildroot
aldot at uclibc.org <aldot@uclibc.org> [2006-11-29 10:59:44]:
> Author: aldot
> Date: 2006-11-29 10:59:43 -0800 (Wed, 29 Nov 2006)
> New Revision: 16723
>
> Log:
> - build a udev for the target rather than for the host.
Attached patch bumps version to 100, fixes Makefile and init script.
-- ynezz
-------------- next part --------------
Index: init-udev
===================================================================
--- init-udev (revision 16729)
+++ init-udev (working copy)
@@ -27,6 +27,8 @@
test -x $UDEV_BIN || exit 5
UDEVSTART_BIN=/sbin/udevstart
test -x $UDEVSTART_BIN || exit 5
+UDEVD_BIN=/sbin/udevd
+test -x $UDEVD_BIN || exit 5
# Check for config file and read it
UDEV_CONFIG=/etc/udev/udev.conf
@@ -64,7 +66,10 @@
echo -n "Populating $udev_root using udev... "
$UDEVSTART_BIN || (echo "FAIL" && exit 1)
mkdir $udev_root/pts $udev_root/shm
+ # start daemon
+ $UDEVD_BIN --daemon || (echo "udevd FAIL" && exit 1)
echo "done"
+ mount -a
;;
stop)
# do nothing
Index: udev_fix_makefile.patch
===================================================================
--- udev_fix_makefile.patch (revision 0)
+++ udev_fix_makefile.patch (revision 0)
@@ -0,0 +1,12 @@
+diff -u udev-100/Makefile udev-100.ynezz/Makefile
+--- udev-100/Makefile 2006-09-07 11:32:45.000000000 +0200
++++ udev-100.ynezz/Makefile 2006-09-18 17:35:33.000000000 +0200
+@@ -276,6 +276,8 @@
+ install-bin:
+ $(INSTALL) -d $(DESTDIR)$(udevdir)
+ $(INSTALL_PROGRAM) -D udevd $(DESTDIR)$(sbindir)/udevd
++ $(INSTALL_PROGRAM) -D udev $(DESTDIR)$(sbindir)/udev
++ $(INSTALL_PROGRAM) -D udevstart $(DESTDIR)$(sbindir)/udevstart
+ $(INSTALL_PROGRAM) -D udevtrigger $(DESTDIR)$(sbindir)/udevtrigger
+ $(INSTALL_PROGRAM) -D udevsettle $(DESTDIR)$(sbindir)/udevsettle
+ $(INSTALL_PROGRAM) -D udevcontrol $(DESTDIR)$(sbindir)/udevcontrol
Index: udev.mk
===================================================================
--- udev.mk (revision 16729)
+++ udev.mk (working copy)
@@ -3,7 +3,7 @@
# udev
#
#############################################################
-UDEV_VERSION:=094
+UDEV_VERSION:=100
UDEV_SOURCE:=udev-$(UDEV_VERSION).tar.bz2
UDEV_SITE:=ftp://ftp.kernel.org/pub/linux/utils/kernel/hotplug/
UDEV_CAT:=$(BZCAT)
@@ -35,7 +35,7 @@
touch $(UDEV_DIR)/.configured
$(UDEV_DIR)/$(UDEV_BINARY): $(UDEV_DIR)/.configured
- $(MAKE) CROSS=$(TARGET_CROSS) CC=$(TARGET_CC) LD=$(TARGET_CC) \
+ $(MAKE) CROSS_COMPILE=$(TARGET_CROSS) CC=$(TARGET_CC) LD=$(TARGET_CC)\
CFLAGS="$(BR2_UDEV_CFLAGS)" \
USE_LOG=false USE_SELINUX=false \
udevdir=$(UDEV_ROOT) -C $(UDEV_DIR)
@@ -45,19 +45,21 @@
# default access controls prevent non-root tasks from running. Many of the
# rule files rely on PROGRAM invocations (e.g. extra /etc/udev/scripts);
# for now we'll avoid having buildroot systems rely on them.
-UDEV_CONF:=etc/udev/frugalware/udev.rules
+UDEV_CONF:=etc/udev/frugalware/*
$(TARGET_DIR)/$(UDEV_TARGET_BINARY): $(UDEV_DIR)/$(UDEV_BINARY)
-mkdir $(TARGET_DIR)/sys
- install -D -m 0644 $(UDEV_DIR)/$(UDEV_CONF) \
- $(TARGET_DIR)/etc/udev/rules.d/50-udev.rules
- $(MAKE) CROSS=$(TARGET_CROSS) CC=$(TARGET_CC) LD=$(TARGET_CC) \
+ -mkdir -p $(TARGET_DIR)/etc/udev/rules.d
+ $(INSTALL) -D -m 0644 $(UDEV_DIR)/$(UDEV_CONF) \
+ $(TARGET_DIR)/etc/udev/rules.d
+ $(MAKE) CROSS_COMPILE=$(TARGET_CROSS) CC=$(TARGET_CC) LD=$(TARGET_CC) \
DESTDIR=$(TARGET_DIR) \
CFLAGS="$(BR2_UDEV_CFLAGS)" \
LDFLAGS="-warn-common" \
USE_LOG=false USE_SELINUX=false \
udevdir=$(UDEV_ROOT) -C $(UDEV_DIR) install
$(INSTALL) -m 0755 -D package/udev/init-udev $(TARGET_DIR)/etc/init.d/S10udev
+ $(INSTALL) -m 0644 -D package/udev/udev.conf $(TARGET_DIR)/etc/udev
udev: uclibc $(TARGET_DIR)/$(UDEV_TARGET_BINARY)
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Buildroot] svn commit: trunk/buildroot/package/udev
2006-11-29 21:38 ` Petr Stetiar
@ 2006-12-01 17:50 ` Bernhard Fischer
2006-12-01 17:57 ` [Buildroot] update to udev-100 Bernhard Fischer
2006-12-01 20:47 ` [Buildroot] svn commit: trunk/buildroot/package/udev ynezz
0 siblings, 2 replies; 5+ messages in thread
From: Bernhard Fischer @ 2006-12-01 17:50 UTC (permalink / raw)
To: buildroot
On Wed, Nov 29, 2006 at 10:38:47PM +0100, Petr Stetiar wrote:
>aldot at uclibc.org <aldot@uclibc.org> [2006-11-29 10:59:44]:
>
>> Author: aldot
>> Date: 2006-11-29 10:59:43 -0800 (Wed, 29 Nov 2006)
>> New Revision: 16723
>>
>> Log:
>> - build a udev for the target rather than for the host.
>
>Attached patch bumps version to 100, fixes Makefile and init script.
I use busybox's mdev if i need someone to mknod under me, but ok.
A few questions / remarks.
Why do we want to update udev?
me at s37:~/src/buildroot$ patch --dry-run -p1 -i udev_100.patch
missing header for unified diff at line 5 of patch
can't find file to patch at input line 5
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|Index: init-udev
|===================================================================
|--- init-udev (revision 16729)
|+++ init-udev (working copy)
--------------------------
File to patch:
>
>-- ynezz
>Index: init-udev
>===================================================================
>--- init-udev (revision 16729)
>+++ init-udev (working copy)
>@@ -27,6 +27,8 @@
> test -x $UDEV_BIN || exit 5
> UDEVSTART_BIN=/sbin/udevstart
> test -x $UDEVSTART_BIN || exit 5
>+UDEVD_BIN=/sbin/udevd
>+test -x $UDEVD_BIN || exit 5
>
> # Check for config file and read it
> UDEV_CONFIG=/etc/udev/udev.conf
>@@ -64,7 +66,10 @@
> echo -n "Populating $udev_root using udev... "
> $UDEVSTART_BIN || (echo "FAIL" && exit 1)
> mkdir $udev_root/pts $udev_root/shm
>+ # start daemon
>+ $UDEVD_BIN --daemon || (echo "udevd FAIL" && exit 1)
Not your fault, but if !; then echo;exit;fi
looks like it be saner on context switches and also cycle-wise nicer.
I guess that this is not relevant for people who use udev, so i'll
pretend to have kept my silence in this respect. Wonder why your system
takes longer to boot than the system i'm playing with which needs less
than 15s? *shrug*
> echo "done"
>+ mount -a
> ;;
> stop)
> # do nothing
>Index: udev_fix_makefile.patch
>===================================================================
>--- udev_fix_makefile.patch (revision 0)
>+++ udev_fix_makefile.patch (revision 0)
>@@ -0,0 +1,12 @@
>+diff -u udev-100/Makefile udev-100.ynezz/Makefile
>+--- udev-100/Makefile 2006-09-07 11:32:45.000000000 +0200
>++++ udev-100.ynezz/Makefile 2006-09-18 17:35:33.000000000 +0200
>+@@ -276,6 +276,8 @@
>+ install-bin:
>+ $(INSTALL) -d $(DESTDIR)$(udevdir)
>+ $(INSTALL_PROGRAM) -D udevd $(DESTDIR)$(sbindir)/udevd
>++ $(INSTALL_PROGRAM) -D udev $(DESTDIR)$(sbindir)/udev
>++ $(INSTALL_PROGRAM) -D udevstart $(DESTDIR)$(sbindir)/udevstart
>+ $(INSTALL_PROGRAM) -D udevtrigger $(DESTDIR)$(sbindir)/udevtrigger
>+ $(INSTALL_PROGRAM) -D udevsettle $(DESTDIR)$(sbindir)/udevsettle
>+ $(INSTALL_PROGRAM) -D udevcontrol $(DESTDIR)$(sbindir)/udevcontrol
>Index: udev.mk
>===================================================================
>--- udev.mk (revision 16729)
>+++ udev.mk (working copy)
>@@ -3,7 +3,7 @@
> # udev
> #
> #############################################################
>-UDEV_VERSION:=094
>+UDEV_VERSION:=100
> UDEV_SOURCE:=udev-$(UDEV_VERSION).tar.bz2
> UDEV_SITE:=ftp://ftp.kernel.org/pub/linux/utils/kernel/hotplug/
> UDEV_CAT:=$(BZCAT)
>@@ -35,7 +35,7 @@
> touch $(UDEV_DIR)/.configured
>
> $(UDEV_DIR)/$(UDEV_BINARY): $(UDEV_DIR)/.configured
>- $(MAKE) CROSS=$(TARGET_CROSS) CC=$(TARGET_CC) LD=$(TARGET_CC) \
>+ $(MAKE) CROSS_COMPILE=$(TARGET_CROSS) CC=$(TARGET_CC) LD=$(TARGET_CC)\
> CFLAGS="$(BR2_UDEV_CFLAGS)" \
> USE_LOG=false USE_SELINUX=false \
> udevdir=$(UDEV_ROOT) -C $(UDEV_DIR)
>@@ -45,19 +45,21 @@
> # default access controls prevent non-root tasks from running. Many of the
> # rule files rely on PROGRAM invocations (e.g. extra /etc/udev/scripts);
> # for now we'll avoid having buildroot systems rely on them.
>-UDEV_CONF:=etc/udev/frugalware/udev.rules
>+UDEV_CONF:=etc/udev/frugalware/*
>
> $(TARGET_DIR)/$(UDEV_TARGET_BINARY): $(UDEV_DIR)/$(UDEV_BINARY)
> -mkdir $(TARGET_DIR)/sys
>- install -D -m 0644 $(UDEV_DIR)/$(UDEV_CONF) \
>- $(TARGET_DIR)/etc/udev/rules.d/50-udev.rules
>- $(MAKE) CROSS=$(TARGET_CROSS) CC=$(TARGET_CC) LD=$(TARGET_CC) \
>+ -mkdir -p $(TARGET_DIR)/etc/udev/rules.d
i'd scratch that -p
>+ $(INSTALL) -D -m 0644 $(UDEV_DIR)/$(UDEV_CONF) \
>+ $(TARGET_DIR)/etc/udev/rules.d
>+ $(MAKE) CROSS_COMPILE=$(TARGET_CROSS) CC=$(TARGET_CC) LD=$(TARGET_CC) \
> DESTDIR=$(TARGET_DIR) \
> CFLAGS="$(BR2_UDEV_CFLAGS)" \
> LDFLAGS="-warn-common" \
> USE_LOG=false USE_SELINUX=false \
> udevdir=$(UDEV_ROOT) -C $(UDEV_DIR) install
> $(INSTALL) -m 0755 -D package/udev/init-udev $(TARGET_DIR)/etc/init.d/S10udev
>+ $(INSTALL) -m 0644 -D package/udev/udev.conf $(TARGET_DIR)/etc/udev
>
> udev: uclibc $(TARGET_DIR)/$(UDEV_TARGET_BINARY)
>
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Buildroot] update to udev-100
2006-12-01 17:50 ` Bernhard Fischer
@ 2006-12-01 17:57 ` Bernhard Fischer
2006-12-01 20:47 ` [Buildroot] svn commit: trunk/buildroot/package/udev ynezz
1 sibling, 0 replies; 5+ messages in thread
From: Bernhard Fischer @ 2006-12-01 17:57 UTC (permalink / raw)
To: buildroot
On Fri, Dec 01, 2006 at 06:50:30PM +0100, Bernhard Fischer wrote:
>On Wed, Nov 29, 2006 at 10:38:47PM +0100, Petr Stetiar wrote:
>>aldot at uclibc.org <aldot@uclibc.org> [2006-11-29 10:59:44]:
>>
>>> Author: aldot
>>> Date: 2006-11-29 10:59:43 -0800 (Wed, 29 Nov 2006)
>>> New Revision: 16723
>>>
>>> Log:
>>> - build a udev for the target rather than for the host.
>>
>>Attached patch bumps version to 100, fixes Makefile and init script.
>
>I use busybox's mdev if i need someone to mknod under me, but ok.
Applied as r16746.
thanks,
PS: looking for the udev update bugs in the bug collector to clean 'em
out now..
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Buildroot] svn commit: trunk/buildroot/package/udev
2006-12-01 17:50 ` Bernhard Fischer
2006-12-01 17:57 ` [Buildroot] update to udev-100 Bernhard Fischer
@ 2006-12-01 20:47 ` ynezz
1 sibling, 0 replies; 5+ messages in thread
From: ynezz @ 2006-12-01 20:47 UTC (permalink / raw)
To: buildroot
Bernhard Fischer <rep.nop@aon.at> [2006-12-01 18:50:30]:
> On Wed, Nov 29, 2006 at 10:38:47PM +0100, Petr Stetiar wrote:
> >aldot at uclibc.org <aldot@uclibc.org> [2006-11-29 10:59:44]:
> >
> >> Author: aldot
> >> Date: 2006-11-29 10:59:43 -0800 (Wed, 29 Nov 2006)
> >> New Revision: 16723
> >>
> >> Log:
> >> - build a udev for the target rather than for the host.
> >
> >Attached patch bumps version to 100, fixes Makefile and init script.
>
> I use busybox's mdev if i need someone to mknod under me, but ok.
> A few questions / remarks.
>
> Why do we want to update udev?
That I don't know :) I wanted to try it it and then found out, that it don't
work. So that's why I've send a patch.
> me at s37:~/src/buildroot$ patch --dry-run -p1 -i udev_100.patch
> missing header for unified diff at line 5 of patch
> can't find file to patch at input line 5
> Perhaps you used the wrong -p or --strip option?
Hm strange, it was just svn diff > udev_100.patch. No additional editing.
> Not your fault, but if !; then echo;exit;fi
> looks like it be saner on context switches and also cycle-wise nicer.
Ok.
> I guess that this is not relevant for people who use udev, so i'll
> pretend to have kept my silence in this respect. Wonder why your system
> takes longer to boot than the system i'm playing with which needs less
> than 15s? *shrug*
:) I'm just playing with my board, I'm using udev just for kernel/fs updating
purposes via USB flash disk and yes, it's big overhead. Didn't know about
mkdev, I'll try it, thanks.
-- ynezz
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2006-12-01 20:47 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-11-29 18:59 [Buildroot] svn commit: trunk/buildroot/package/udev aldot at uclibc.org
2006-11-29 21:38 ` Petr Stetiar
2006-12-01 17:50 ` Bernhard Fischer
2006-12-01 17:57 ` [Buildroot] update to udev-100 Bernhard Fischer
2006-12-01 20:47 ` [Buildroot] svn commit: trunk/buildroot/package/udev ynezz
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox