[kbuild-devel] fwd: [BusyBox] CONFIG_ name clashing with kernel

2005-08-08 Thread Robert Schwebel
Hi, 

This might be more interesting on this list than on the Busybox one. 

Robert

- Forwarded message from Robert Schwebel [EMAIL PROTECTED] -

Date: Mon, 1 Aug 2005 12:31:31 +0200
From: Robert Schwebel [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Re: [BusyBox] CONFIG_ name clashing with kernel
Message-ID: [EMAIL PROTECTED]
User-Agent: Mutt/1.5.5.1+cvs20040105i

On Sun, Jul 31, 2005 at 06:59:42PM -0400, Mike Frysinger wrote:
 all the CONFIG_ defines we're using in busybox have lead to name space 
 clashing with the kernel ...
 
 http://bugs.busybox.net/view.php?id=316
 
 we can rename these three defines (SYSCTL/TR/WATCHDOG) or we could take care 
 of this now (and forever) by replacing all of the macros with a different 
 namespace:
 BB_CONFIG_*

I'd also heavily prefer such a change. I currently import the Busybox
Kconfig into the PTXdist Kconfig files when configuring BB under
PTXdist; the regexp magic needed to get a unique name space is really,
really uggly; it is done by


https://iocaste.penguin.de/viewsvn/ptxdist/trunks/ptxdist-0.7-trunk/config/busybox-1.0.0/Extract?rev=1923view=auto

in combination with 


https://iocaste.penguin.de/viewsvn/ptxdist/trunks/ptxdist-0.7-trunk/scripts/mkprefix?rev=1931view=auto

(user: guest; pass: guest)

Unfortunately, Kconfig itself does not know about configurable
namespaces. I've patched the version used in PTXdist to prefix our
config variables with PTXCONF_ instead of CONFIG_, the patch to do this
is here, it is not very generic because of some hard coded string length
calculations: 


https://iocaste.penguin.de/viewsvn/ptxdist/trunks/ptxdist-0.7-trunk/scripts/ptx-modifications/

Kconfig is now being used by quite some other projects than only the
Linux kernel (Busybox, buildroot, uCLinux Distro, PTXdist, ...), so it
would be a cool feature to have kconfig command which lets you configure
a default prefix, maybe menu dependend, so it would be possible to do
something like 

--8--8--8--8--8--
prefix PTXCONF_ - somewhere outside the menus,
   defaults to CONFIG_
menu Bla

config FOO
prompt The Foo Feture - results in PTXCONF_FOO   

endmenu

...

menu Busybox

prefix PTXCONF_BB_  - in Busybox menu

config FOO  - results in PTXCONF_BB_FOO
prompt The Foo feature of BB

endmenu

menu Blub

config BAR  - results in PTXCONF_BAR
prompt The Bar Feature

endmenu
--8--8--8--8--8--

This would make it possible to simply include the whole Busybox
configuration into PTXdist without a single change. 

Robert
- End forwarded message -

-- 
 Dipl.-Ing. Robert Schwebel | http://www.pengutronix.de
 Pengutronix - Linux Solutions for Science and Industry
   Handelsregister:  Amtsgericht Hildesheim, HRA 2686
 Hannoversche Str. 2, 31134 Hildesheim, Germany
   Phone: +49-5121-206917-0 |  Fax: +49-5121-206917-9



---
SF.Net email is Sponsored by the Better Software Conference  EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile  Plan-Driven Development * Managing Projects  Teams * Testing  QA
Security * Process Improvement  Measurement * http://www.sqe.com/bsce5sf
___
kbuild-devel mailing list
kbuild-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/kbuild-devel


[kbuild-devel] Converter cml1-kconfig?

2003-01-12 Thread Robert Schwebel
Hi, 

is a standalone converter script from cml1 to kconfig still available
somewhere? I remember having read that there was one during the 2.5
inclusion. 

I'm currently writing a kconfig based distro build tool (you can use it
to configure your user space for embedded devices) and I'm including the
configuration of busybox (works just fine) and the kernel (here's the
problem). So I'll have to convert the 2.4 kernel configuration to
kconfig if possible, and using the script would be really helpful. 

Robert
-- 
 Dipl.-Ing. Robert Schwebel | http://www.pengutronix.de
 Pengutronix - Linux Solutions for Science and Industry
   Braunschweiger Str. 79,  31134 Hildesheim, Germany
   Handelsregister:  Amtsgericht Hildesheim, HRA 2686
Phone: +49-5121-28619-0 |  Fax: +49-5121-28619-4


---
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
___
kbuild-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/kbuild-devel



Re: [kbuild-devel] Converter cml1-kconfig?

2003-01-12 Thread Robert Schwebel
On Sun, Jan 12, 2003 at 10:31:05AM -0800, John van V. wrote:
 Hello, could you please give me an over view of what this all does...
 
 I was installing it on my Redhat box.. but the disk went sour.
 
 I need this information soon to see if it will be useful with my organization,
 the linux society.

Uhm... was this an answer to my posting? If yes, you have to explain
what you mean. If no please don't use the Reply function of your mail
reader if you want to start a new thread. 

Robert
-- 
 Dipl.-Ing. Robert Schwebel | http://www.pengutronix.de
 Pengutronix - Linux Solutions for Science and Industry
   Braunschweiger Str. 79,  31134 Hildesheim, Germany
   Handelsregister:  Amtsgericht Hildesheim, HRA 2686
Phone: +49-5121-28619-0 |  Fax: +49-5121-28619-4


---
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
___
kbuild-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/kbuild-devel



[kbuild-devel] string and if

2002-11-06 Thread Robert Schwebel
Hi, 

I'm currently trying to port a program which used CML1 to lkc/kconfig.
Now I need a string variable which is dependend on a bool. Shouldn't
this: 

config GNU_TARGET
string i386-linux if OPT_I386
string i486-linux if OPT_I486
string i686-linux if OPT_I686
string arm-linux  if OPT_ARM4
default -not configured-

for example give 

  GNU_TARGET=arm-linux 

in case OPT_ARM4=y? It doesn't work, I get -not configured-, no matter
which option is defined. 

This is basically lkc-1.2, taken from Roman's web site. 

Robert
-- 
 Dipl.-Ing. Robert Schwebel | http://www.pengutronix.de
 Pengutronix - Linux Solutions for Science and Industry
   Braunschweiger Str. 79,  31134 Hildesheim, Germany
   Handelsregister:  Amtsgericht Hildesheim, HRA 2686
Phone: +49-5121-28619-0 |  Fax: +49-5121-28619-4

Visit us at the SPS/IPC/Drives 2002 in Nuernberg!
   Hall 5, Booth 154 +++ Please contact us for details.


---
This sf.net email is sponsored by: See the NEW Palm 
Tungsten T handheld. Power  Color in a compact size!
http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0001en
___
kbuild-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/kbuild-devel