RE: [uClinux-dev] [PATCH] elf2flt: convert to C

2009-07-05 Thread Gavin Lambert
Quoth Erwin Authried:
 you are right, if you call ld directly, -elf2flt can't be used. I don't
 think that this is really a problem, because you'll hardly link a BFLT
 application with ld directly. I haven't ever seen that since I got one
 of the first uCsimms. If you still want to do that, you can use
 gcc -nostdlib -Wl,-elf2flt .. as well.

I've seen some Makefiles that call ld directly.  I've also probably written one 
or two of them :)

And yes, it wouldn't be hard to change.  But I'm not convinced the benefits 
outweigh the price.


___
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] all Kconfig files in vendors/ subdir

2009-07-05 Thread David McCullough

Jivin Mike Frysinger lays it down ...
 this patch allows for per-arch/board/vendor Kconfig files (and thus
 options) by generating vendors/Kconfig based on `find` in the vendors
 dir.  this way we can keep Blackfin options (like file format and dynamic
 device nodes) in our own directories.
 
 Signed-off-by: Mike Frysinger vap...@gentoo.org

Fair idea,  only the patch provided added all vendors Kconfig's to the main
config.  I have respun this to only use the following Kconfig files:

vendors/VENDOR/Kconfig
vendors/VENDOR/PRODUCT/Kconfig

Which prevents cross vendor/platform pollution.  It should work out of the
box for you guys I would think. Patch as committed against our current
version attached.

Thanks,
Davidm

 ---
 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 -  1.1.1.1
 +++ Makefile  13 Jun 2007 02:55:16 -
 @@ -102,8 +102,12 @@ tools/cksum: tools/sg-cksum/*.c
  # running the kernel and other config scripts
  #
  
 +.PHONY: vendors/Kconfig
 +vendors/Kconfig:
 + find vendors -mindepth 2 -name Kconfig | sed 's:^:source ../:'  
 vendors/Kconfig
 +
  .PHONY: Kconfig
 -Kconfig:
 +Kconfig: vendors/Kconfig
   @chmod u+x config/mkconfig
   config/mkconfig  Kconfig
  
 Index: config/Kconfig
 ===
 RCS file: /usr/local/src/uClinux/local-cvs/,v/config/Kconfig,v
 retrieving revision 1.1.1.1
 diff -u -p -r1.1.1.1 Kconfig
 --- config/Kconfig11 Jun 2007 06:57:34 -  1.1.1.1
 +++ config/Kconfig13 Jun 2007 02:54:25 -
 @@ -12,4 +12,6 @@ source ../lib/Kconfig
  
  source ../user/Kconfig
  
 +source ../vendors/Kconfig
 +
  #
 ___
 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
Index: Makefile
===
RCS file: /cvs/sw/new-wave/Makefile,v
retrieving revision 1.182
diff -u -r1.182 Makefile
--- Makefile	28 May 2009 00:23:49 -	1.182
+++ Makefile	6 Jul 2009 01:52:26 -
@@ -154,11 +154,12 @@
 .PHONY: oldconfig
 oldconfig: Kconfig conf
 	KCONFIG_NOTIMESTAMP=1 $(SCRIPTSDIR)/conf -o Kconfig
+	@chmod u+x config/setconfig
+	@config/setconfig defaults
 	@$(MAKE) oldconfig_linux
 	@$(MAKE) oldconfig_modules
 	@$(MAKE) oldconfig_config
 	@$(MAKE) oldconfig_uClibc
-	@chmod u+x config/setconfig
 	@config/setconfig final
 
 .PHONY: modules
Index: config/Kconfig
===
RCS file: /cvs/sw/new-wave/config/Kconfig,v
retrieving revision 1.4
diff -u -r1.4 Kconfig
--- config/Kconfig	27 May 2009 23:55:13 -	1.4
+++ config/Kconfig	6 Jul 2009 01:52:26 -
@@ -12,6 +12,8 @@
 	string
 	default 4.0
 
+source ../vendors/Kconfig
+
 source ../lib/Kconfig
 menu Automake Libraries
 source ../lib/Kconfig.auto
Index: config/Makefile
===
RCS file: /cvs/sw/new-wave/config/Makefile,v
retrieving revision 1.11
diff -u -r1.11 Makefile
--- config/Makefile	6 Jul 2009 01:51:56 -	1.11
+++ config/Makefile	6 Jul 2009 01:52:26 -
@@ -21,14 +21,24 @@
 xconfig: gconfig autoconf
 
 .PHONY: automake force autoclean
-autoconf: autoclean ../lib/Kconfig.auto ../user/Kconfig.auto automake
+autoconf: ../vendors/Kconfig ../lib/Kconfig.auto ../user/Kconfig.auto automake
 automake: ../lib/Makefile.auto ../user/Makefile.auto
 force:
 
 #
 # build the auto config Kconfig.auto files and their Makefile.auto components
+# also include any vendor Kconfig files if they exist.
 #
-../lib/Kconfig.auto ../user/Kconfig.auto: force
+../vendors/Kconfig ../lib/Kconfig.auto ../user/Kconfig.auto: force
+
+../vendors/Kconfig: Makefile
+	@echo # autogenerated, do not EDIT  $@; \
+	. ../.config; \
+	for i in $$CONFIG_VENDOR/$$CONFIG_PRODUCT/. $$CONFIG_VENDOR/.; do \
+		[ -f ../vendors/$$i/Kconfig ] || continue; \
+		echo source ../vendors/$$i/Kconfig  $@; \
+		echo autoconf: vendors/$$i/Kconfig; \
+	done
 
 ../lib/Kconfig.auto ../user/Kconfig.auto ../lib/Makefile.auto ../user/Makefile.auto: Makefile
 	@cd `dirname $...@`; \
@@ -59,6 +69,7 @@
 autoclean:
 	rm -f ../lib/Kconfig.auto ../user/Kconfig.auto
 	rm -f ../lib/Makefile.auto ../user/Makefile.auto
+	rm -f ../vendors/Kconfig
 
 clean: confclean autoclean
 	rm -f autoconf.h auto.conf .config .config.old
Index: config/setconfig

Re: [uClinux-dev] [patch] detect ledman support in dhcpcd-new via kernel .config

2009-07-05 Thread David McCullough

Jivin Mike Frysinger lays it down ...
 here's another stab at the problem.  this one should work ok for everyone
 concerned (i'm assuming of course as i have no way of actually testing
 ledman).
 
 Signed-off-by: Mike Frysinger vap...@gentoo.org

Applied,

Thanks,
Davidm

 Index: user/dhcpcd-new/Makefile
 ===
 RCS file: /usr/local/src/uClinux/local-cvs/,v/user/dhcpcd-new/Makefile,v
 retrieving revision 1.1.1.1
 diff -u -p -r1.1.1.1 Makefile
 --- user/dhcpcd-new/Makefile  11 Jun 2007 06:55:04 -  1.1.1.1
 +++ user/dhcpcd-new/Makefile  13 Jun 2007 00:40:14 -
 @@ -5,6 +5,9 @@ OBJS = arp.o buildmsg.o client.o dhcpcd.
  ifeq ($(findstring 2.0,$(LINUXDIR)),2.0)
  CFLAGS += -DOLD_LINUX_VERSION=1
  endif
 +ifneq ($(CONFIG_LEDMAN),)
 +CFLAGS += -DCONFIG_LEDMAN
 +endif
  
  CFLAGS += -D_BSD_SOURCE=1
  
 Index: user/dhcpcd-new/client.c
 ===
 RCS file: /usr/local/src/uClinux/local-cvs/,v/user/dhcpcd-new/client.c,v
 retrieving revision 1.1.1.1
 diff -u -p -r1.1.1.1 client.c
 --- user/dhcpcd-new/client.c  11 Jun 2007 06:55:04 -  1.1.1.1
 +++ user/dhcpcd-new/client.c  13 Jun 2007 00:40:16 -
 @@ -48,7 +48,6 @@
  #include pathnames.h
  #include confdefs.h
  
 -#include linux/autoconf.h
  #ifdef CONFIG_LEDMAN
  #include linux/ledman.h
  #endif
 Index: user/dhcpcd-new/dhcpcd.c
 ===
 RCS file: /usr/local/src/uClinux/local-cvs/,v/user/dhcpcd-new/dhcpcd.c,v
 retrieving revision 1.1.1.1
 diff -u -p -r1.1.1.1 dhcpcd.c
 --- user/dhcpcd-new/dhcpcd.c  11 Jun 2007 06:55:04 -  1.1.1.1
 +++ user/dhcpcd-new/dhcpcd.c  13 Jun 2007 00:39:57 -
 @@ -33,7 +33,6 @@
  #include client.h
  #include signals.h
  
 -#include linux/autoconf.h
  #ifdef CONFIG_LEDMAN
  #include linux/ledman.h
  #endif
 ___
 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


Re: [uClinux-dev] [patch] all Kconfig files in vendors/ subdir

2009-07-05 Thread Mike Frysinger
On Sunday 05 July 2009 22:01:02 David McCullough wrote:
 Jivin Mike Frysinger lays it down ...
  this patch allows for per-arch/board/vendor Kconfig files (and thus
  options) by generating vendors/Kconfig based on `find` in the vendors
  dir.  this way we can keep Blackfin options (like file format and dynamic
  device nodes) in our own directories.

 Fair idea,  only the patch provided added all vendors Kconfig's to the main
 config.  I have respun this to only use the following Kconfig files:

   vendors/VENDOR/Kconfig
   vendors/VENDOR/PRODUCT/Kconfig

 Which prevents cross vendor/platform pollution.  It should work out of the
 box for you guys I would think. Patch as committed against our current
 version attached.

that works for me, but i would also want the relevant 
vendor/config/$arch/Kconfig too ... this is where we keep Blackfin-specific 
vendor independent options.
-mike


signature.asc
Description: This is a digitally signed message part.
___
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