[uClinux-dev] [patch] silence harmless but confusing error messages
Mike Frysinger
vapier at gentoo.org
Tue Jun 12 20:56:45 EDT 2007
every now and then i field reports from users where they think their
distribution is erroring when in reality the errors are safe to ignore.
that's why i'm submitting these few changes that silence many of the
common ignored errors.
Signed-off-by: Mike Frysinger <vapier at gentoo.org>
---
Index: Makefile
===================================================================
RCS file: /usr/local/src/uClinux/local-cvs/,v/Makefile,v
retrieving revision 1.1.1.1
diff -u -p -r1.1.1.1 Makefile
--- Makefile 11 Jun 2007 06:52:54 -0000 1.1.1.1
+++ Makefile 13 Jun 2007 00:53:27 -0000
@@ -290,10 +290,10 @@ clean: modules_clean
rm -rf $(LINUXDIR)/net/ipsec/alg/libaes $(LINUXDIR)/net/ipsec/alg/perlasm
real_clean mrproper: clean
- -$(MAKEARCH_KERNEL) -C $(LINUXDIR) mrproper
+ [ -d "$(LINUXDIR)" ] && $(MAKEARCH_KERNEL) -C $(LINUXDIR) mrproper || :
-$(MAKEARCH) -C config clean
- -$(MAKEARCH) -C uClibc distclean
- -$(MAKEARCH) -C $(RELDIR) clean
+ [ -d uClibc ] && $(MAKEARCH) -C uClibc distclean || :
+ [ -d "$(RELDIR)" ] && $(MAKEARCH) -C $(RELDIR) clean || :
-$(MAKEARCH) -C config clean
rm -rf romfs Kconfig config.arch images
rm -rf .config .config.old .oldconfig autoconf.h auto.conf
Index: lib/Makefile
===================================================================
RCS file: /usr/local/src/uClinux/local-cvs/,v/lib/Makefile,v
retrieving revision 1.1.1.1
diff -u -p -r1.1.1.1 Makefile
--- lib/Makefile 11 Jun 2007 06:57:34 -0000 1.1.1.1
+++ lib/Makefile 13 Jun 2007 00:54:41 -0000
@@ -15,9 +15,9 @@ ROOTDIR=$(PWD)/..
endif
UCLINUX_BUILD_LIB=1
-include $(LINUX_CONFIG)
-include $(CONFIG_CONFIG)
-include $(ARCH_CONFIG)
+-include $(LINUX_CONFIG)
+-include $(CONFIG_CONFIG)
+-include $(ARCH_CONFIG)
##############################################################################
#
More information about the uClinux-dev
mailing list