klibc-udev: make this work on the initramfs.

--HG--
extra : convert_revision : 591f7c765141990665b9ee57e02d931bfa7b2a60
This commit is contained in:
Juan RP
2009-03-08 04:14:24 +01:00
parent b7b8235665
commit 514be496a4
3 changed files with 60 additions and 28 deletions

View File

@@ -30,17 +30,49 @@
return 0;
}
--- Makefile.in.orig 2009-03-08 01:04:54.032608782 +0100
+++ Makefile.in 2009-03-08 01:05:10.728461250 +0100
@@ -212,10 +212,7 @@ AM_CFLAGS =
AM_LDFLAGS = \
-Wl,--as-needed
--- extras/Makefile.in 2008-09-11 16:58:01.000000000 +0200
+++ extras/Makefile.in 2008-09-18 12:03:09.000000000 +0200
@@ -176,15 +176,11 @@
udev_prefix = @udev_prefix@
SUBDIRS = \
ata_id \
- cdrom_id \
edd_id \
path_id \
firmware \
- collect \
floppy \
- fstab_import \
rule_generator \
- scsi_id \
usb_id \
volume_id
-SUBDIRS = \
- udev \
- rules \
- extras
+SUBDIRS = udev
--- extras/volume_id/lib/libvolume_id-private.h 2008-09-10 02:37:09.000000000 +0200
+++ extras/volume_id/lib/libvolume_id-private.h 2008-09-18 12:07:57.000000000 +0200
@@ -35,12 +35,8 @@
log_null(const char *format, ...) {}
udevconfdir = $(sysconfdir)/udev
udevconf_DATA = \
#define err(format, arg...) volume_id_log_fn(LOG_ERR, __FILE__, __LINE__, format, ##arg)
-#define info(format, arg...) volume_id_log_fn(LOG_INFO, __FILE__, __LINE__, format, ##arg)
-#ifdef DEBUG
-#define dbg(format, arg...) volume_id_log_fn(LOG_DEBUG, __FILE__, __LINE__, format, ##arg)
-#else
+#define info(format, arg...) log_null(format, ##arg)
#define dbg(format, arg...) log_null(format, ##arg)
-#endif
#if (__BYTE_ORDER == __LITTLE_ENDIAN)
#define le16_to_cpu(x) (x)
--- extras/volume_id/lib/md5.c 2008-09-10 02:18:59.000000000 +0200
+++ extras/volume_id/lib/md5.c 2008-09-18 12:03:09.000000000 +0200
@@ -21,7 +21,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-#include <stdint.h>
+/*#include <stdint.h>*/
#include <string.h>
#include <endian.h>
#include <byteswap.h>