udev makefile patch
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
I am part of the development team for SourceMage GNU/Linux
We now use udev as the default device manager, mounting on /dev
We had to make the attached changes to the Makefile, so that we could provide our own rules and permissions
I hope that this may of use to someone else
Regards, Treeve
- --
PGP Key ID: AB929B24
PGP Key Fingerprint:31D9 D22F 42E6 F545 662E AB6F 9697 34C5 AB92 9B24 -----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
iD8DBQFAdYdTlpc0xauSmyQRAmWoAJ9DGsraounV8UYv3JYJuLsnVRyBVwCeOE8t 1y1ZOhI8dpLTVneqvt9BjTY=
=Ncxw
-----END PGP SIGNATURE-----
Makefile.cp renamed from Makefile +1 -6
@@ -109,7 +109,6 @@ OPTIMIZATION+=-fstrict-aliasing endif ifeq ($(strip $(TARGET_ARCH)),i386) - OPTIMIZATION+=-march=i386 OPTIMIZATION += ${shell if $(CC) -mpreferred-stack-boundary=2 -S -o /dev/null -xc \ /dev/null >/dev/null 2>&1; then echo "-mpreferred-stack-boundary=2"; fi} OPTIMIZATION += ${shell if $(CC) -malign-functions=0 -malign-jumps=0 -S -o /dev/null -xc \
@@ -384,7 +383,7 @@ - rm $(mandir)/man8/udevd.8 - rm $(mandir)/man8/udevsend.8 -install: install-initscript install-config install-man install-dev.d all +install: install-man install-dev.d all $(INSTALL) -d $(DESTDIR)$(udevdir) $(INSTALL) -d $(DESTDIR)$(hotplugdir) $(INSTALL_PROGRAM) -D $(ROOT) $(DESTDIR)$(sbindir)/$(ROOT)
@@ -394,10 +393,6 @@ $(INSTALL_PROGRAM) -D $(TESTER) $(DESTDIR)$(usrbindir)/$(TESTER) $(INSTALL_PROGRAM) -D $(STARTER) $(DESTDIR)$(sbindir)/$(STARTER) - ln -f -s $(sbindir)/$(SENDER) $(DESTDIR)$(hotplugdir)/$(ROOT).hotplug -ifndef DESTDIR - - killall udevd - - rm -f $(udevdir)/.udev.tdb -endif @extras="$(EXTRAS)" ; for target in $$extras ; do \ echo $$target ; \ $(MAKE) prefix=$(prefix) LD="$(LD)" SYSFS="$(SYSFS)" \
Makefile.cp line 112
Quoted 7 lines · Treeve Jelbert
Makefile.cp renamed from Makefile +0
-1@@ -109,7 +109,6 @@ OPTIMIZATION+=-fstrict-aliasing endif ifeq ($(strip $(TARGET_ARCH)),i386) - OPTIMIZATION+=-march=i386
Why is this necessary?
Makefile.cp line 386
Quoted 9 lines
Makefile.cp renamed from Makefile +1
-1OPTIMIZATION += ${shell if $(CC) -mpreferred-stack-boundary=2 -S -o /dev/null -xc \ /dev/null >/dev/null 2>&1; then echo "-mpreferred-stack-boundary=2"; fi} OPTIMIZATION += ${shell if $(CC) -malign-functions=0 -malign-jumps=0 -S -o /dev/null -xc \@@ -384,7 +383,7 @@ - rm $(mandir)/man8/udevd.8 - rm $(mandir)/man8/udevsend.8 -install: install-initscript install-config install-man install-dev.d all +install: install-man install-dev.d all
Why? Doesn't your package manager handle this?
Makefile.cp line 400
Quoted 4 lines
Makefile.cp renamed from Makefile +0
-4-ifndef DESTDIR - - killall udevd - - rm -f $(udevdir)/.udev.tdb -endif
Again, why? You should be setting DESTDIR if you are building for a packagemanger, and if not, and you are building from scratch, into the correct install directory, you really need to kill udevd.
thanks,
greg k-h
-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel