[uClinux-dev] [PATCH] fix bugreport target for LIBC=none

2009-03-03 Thread Mike Frysinger
If the LIBC is set to none, then LIBCDIR expands to nothing and we get
an error.  So tweak how we optionally install the libc config.

Also drop a duplicate install of the kernel config.
---
 Makefile |8 +---
 1 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/Makefile b/Makefile
index 2f7369f..71488d6 100644
--- a/Makefile
+++ b/Makefile
@@ -318,11 +318,13 @@ bugreport:
cp .config bugreport/
mkdir bugreport/$(LINUXDIR)
cp $(LINUXDIR)/.config bugreport/$(LINUXDIR)/
-   mkdir bugreport/$(LIBCDIR)
-   [ ! -f $(LIBCDIR)/.config ] || cp $(LIBCDIR)/.config 
bugreport/$(LIBCDIR)/
+   if [ -f $(LIBCDIR)/.config ] ; then \
+   set -e ; \
+   mkdir bugreport/$(LIBCDIR) ; \
+   cp $(LIBCDIR)/.config bugreport/$(LIBCDIR)/ ; \
+   fi
mkdir bugreport/config
cp config/.config bugreport/config/
-   cp $(LINUXDIR)/.config bugreport/$(LINUXDIR)/
tar czf bugreport.tar.gz bugreport
rm -rf ./bugreport
 
-- 
1.6.1.3

___
uClinux-dev mailing list
uClinux-dev@uclinux.org
http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
This message was resent by uclinux-dev@uclinux.org
To unsubscribe see:
http://mailman.uclinux.org/mailman/options/uclinux-dev


Re: [uClinux-dev] [PATCH] fix bugreport target for LIBC=none

2009-03-03 Thread David McCullough

Jivin Mike Frysinger lays it down ...
 If the LIBC is set to none, then LIBCDIR expands to nothing and we get
 an error.  So tweak how we optionally install the libc config.
 
 Also drop a duplicate install of the kernel config.

Applied,

Thanks,
Davidm

 ---
  Makefile |8 +---
  1 files changed, 5 insertions(+), 3 deletions(-)
 
 diff --git a/Makefile b/Makefile
 index 2f7369f..71488d6 100644
 --- a/Makefile
 +++ b/Makefile
 @@ -318,11 +318,13 @@ bugreport:
   cp .config bugreport/
   mkdir bugreport/$(LINUXDIR)
   cp $(LINUXDIR)/.config bugreport/$(LINUXDIR)/
 - mkdir bugreport/$(LIBCDIR)
 - [ ! -f $(LIBCDIR)/.config ] || cp $(LIBCDIR)/.config 
 bugreport/$(LIBCDIR)/
 + if [ -f $(LIBCDIR)/.config ] ; then \
 + set -e ; \
 + mkdir bugreport/$(LIBCDIR) ; \
 + cp $(LIBCDIR)/.config bugreport/$(LIBCDIR)/ ; \
 + fi
   mkdir bugreport/config
   cp config/.config bugreport/config/
 - cp $(LINUXDIR)/.config bugreport/$(LINUXDIR)/
   tar czf bugreport.tar.gz bugreport
   rm -rf ./bugreport
  
 -- 
 1.6.1.3
 
 ___
 uClinux-dev mailing list
 uClinux-dev@uclinux.org
 http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
 This message was resent by uclinux-dev@uclinux.org
 To unsubscribe see:
 http://mailman.uclinux.org/mailman/options/uclinux-dev
 

-- 
David McCullough,  david_mccullo...@securecomputing.com,  Ph:+61 734352815
McAfee - SnapGear  http://www.snapgear.comhttp://www.uCdot.org
___
uClinux-dev mailing list
uClinux-dev@uclinux.org
http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
This message was resent by uclinux-dev@uclinux.org
To unsubscribe see:
http://mailman.uclinux.org/mailman/options/uclinux-dev