linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Svetoslav Slavtchev" <svetljo@gmx.de>
To: linux-hotplug@vger.kernel.org
Subject: Re: udev.rules.devfs + symlinks & a question
Date: Wed, 17 Dec 2003 22:55:51 +0000	[thread overview]
Message-ID: <marc-linux-hotplug-107170194813718@msgid-missing> (raw)
In-Reply-To: <marc-linux-hotplug-107105799027697@msgid-missing>

[-- Attachment #1: Type: text/plain, Size: 1253 bytes --]

> On Wed, Dec 17, 2003 at 09:39:08PM +0100, Svetoslav Slavtchev wrote:
> > > On Sat, Dec 13, 2003 at 10:33:08PM +0100, Svetoslav Slavtchev wrote:
> > > > what are the advantages/ disadvantages
> > > > to compile using klibc ?
> > > 
> > > A very tiny static executable is created using klibc.  That's
> necessary
> > > for early boot, and people who care about the size of things.
> > > 
> > 
> > thanks for the explanation :-)
> > 
> > could you drop the link to linux source (IIRC ../../gregkh-2.5 ) 
> > in udev/klibc, and replace it with 
> > make KERNEL_DIR=......  USE_KLIBC=true
> 
> Hm, the udev/linux symlink points to:
> 	linux -> ../../../linux/linux-2.5
> 
> If you want to build with klibc, adjust it to where your 2.6 kernel tree
> is located at.
> 
> > i've a small patch but it's only for udev,
> > and it doesn't work with " make USE_KLIBC=true EXTRAS=..."
> > it's mostly 
> > s:$(LINUX_INCLUDE_DIR)/kernel/include:$(KERNEL_DIR)/include:
> > in udev/Makefile & udev/klibc/MCONFIG
> 
> Care to send it?

thanks :-)

and attached
 together with the sed rule correction

svetljo

-- 
+++ GMX - die erste Adresse für Mail, Message, More +++
Neu: Preissenkung für MMS und FreeMMS! http://www.gmx.net

[-- Attachment #2: udev-fix_gen-udev.conf.diff --]
[-- Type: application/octet-stream, Size: 347 bytes --]

--- udev-009/Makefile.orig	2003-12-13 17:00:28.004517456 +0100
+++ udev-009/Makefile	2003-12-13 17:01:37.582939928 +0100
@@ -208,7 +208,7 @@
 
 # Rules on how to create the generated config files
 udev.conf:
-	sed -e "s-@udevdir@-$(udevdir)-" < udev.conf.in > $@
+	sed -e "s:@udevdir@:$(udevdir):" < udev.conf.in > $@
 
 
 $(OBJS): $(GEN_HEADERS)

[-- Attachment #3: udev-klibc_kheaders_hack.diff --]
[-- Type: application/octet-stream, Size: 1074 bytes --]

--- udev-009/Makefile.orig	2003-12-14 14:09:51.132297432 +0100
+++ udev-009/Makefile	2003-12-14 16:00:18.675757680 +0100
@@ -31,6 +31,10 @@
 RELEASE_NAME =	$(ROOT)-$(VERSION)
 
 DESTDIR =
+ifndef KERNEL_DIR
+KERNEL_DIR=/usr/src/linux
+endif
+
 # override this to make udev look in a different location for it's config files
 prefix =
 exec_prefix =	${prefix}
@@ -119,7 +123,7 @@
 	KLIBC_BASE	= $(PWD)/klibc
 	KLIBC_DIR	= $(KLIBC_BASE)/klibc
 	INCLUDE_DIR	:= $(KLIBC_DIR)/include
-	LINUX_INCLUDE_DIR	:= $(KLIBC_BASE)/linux/include
+	LINUX_INCLUDE_DIR	:= $(KERNEL_DIR)/include
 	include $(KLIBC_DIR)/arch/$(ARCH)/MCONFIG
 	# arch specific objects
 	ARCH_LIB_OBJS =	\
--- udev-009/klibc/MCONFIG.orig	2003-12-14 16:10:37.164733064 +0100
+++ udev-009/klibc/MCONFIG	2003-12-14 16:10:53.728215032 +0100
@@ -12,7 +12,7 @@
 	  -I$(KLIBSRC)/arch/$(ARCH)/include \
 	  -I$(KLIBSRC)/include/bits$(BITSIZE) \
 	  -D__KLIBC__ -DBITSIZE=$(BITSIZE) -I$(KLIBSRC)/include \
-	  -I$(SRCROOT)/linux/include
+	  -I$(KERNEL_DIR)/include
 LDFLAGS =
 AR      = $(CROSS)ar
 RANLIB  = $(CROSS)ranlib

  parent reply	other threads:[~2003-12-17 22:55 UTC|newest]

Thread overview: 42+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-12-10 12:01 udev.rules.devfs + symlinks & a question Svetoslav Slavtchev
2003-12-10 12:31 ` Arnd Bergmann
2003-12-10 13:17 ` Svetoslav Slavtchev
2003-12-10 17:00 ` Marco d'Itri
2003-12-10 22:07 ` Greg KH
2003-12-10 22:45 ` Svetoslav Slavtchev
2003-12-10 23:14 ` Greg KH
2003-12-10 23:19 ` Svetoslav Slavtchev
2003-12-11  0:17 ` Greg KH
2003-12-11  1:14 ` Svetoslav Slavtchev
2003-12-11  1:31 ` Svetoslav Slavtchev
2003-12-12 22:17 ` Svetoslav Slavtchev
2003-12-12 23:42 ` Greg KH
2003-12-12 23:43 ` Greg KH
2003-12-12 23:45 ` Greg KH
2003-12-13  0:02 ` Svetoslav Slavtchev
2003-12-13  0:06 ` Greg KH
2003-12-13  0:39 ` Svetoslav Slavtchev
2003-12-13  0:57 ` Greg KH
2003-12-13  0:58 ` Svetoslav Slavtchev
2003-12-13  1:17 ` Svetoslav Slavtchev
2003-12-13 15:47 ` Kay Sievers
2003-12-13 21:33 ` Svetoslav Slavtchev
2003-12-14  3:34 ` Kay Sievers
2003-12-15 22:55 ` Greg KH
2003-12-15 22:56 ` Greg KH
2003-12-15 22:57 ` Greg KH
2003-12-17 20:16 ` Svetoslav Slavtchev
2003-12-17 20:39 ` Svetoslav Slavtchev
2003-12-17 21:13 ` Svetoslav Slavtchev
2003-12-17 22:24 ` Greg KH
2003-12-17 22:25 ` Greg KH
2003-12-17 22:27 ` Greg KH
2003-12-17 22:28 ` Greg KH
2003-12-17 22:29 ` Greg KH
2003-12-17 22:30 ` Greg KH
2003-12-17 22:51 ` Marco d'Itri
2003-12-17 22:55 ` Svetoslav Slavtchev [this message]
2003-12-17 22:59 ` Svetoslav Slavtchev
2003-12-17 23:04 ` Svetoslav Slavtchev
2003-12-17 23:06 ` Svetoslav Slavtchev
2003-12-17 23:08 ` Greg KH

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=marc-linux-hotplug-107170194813718@msgid-missing \
    --to=svetljo@gmx.de \
    --cc=linux-hotplug@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).