Skip to contentSkip to conversation

kernelconf-0.1.2

ANNOUNCE Anuradha Ratnaweera 4 participants 7 messages Jan 24, 2002 – Feb 6, 2002

lore
Share & tools
lore
#0 lore raw

Here we go again...

Version 0.1.2 is an RFC. Don't use it unless you are really adventurous. The size of the tarball has grown by a factor of 6, mostly due to the symbol files.

URLs:
http://www.bee.lk/people/anuradha/kernelconf/
http://www.lklug.pdn.ac.lk/~anuradha/kernelconf/

Getting menuconfig to work correctly is my first priority at this stage. Then I will get to oldconfig. The menu style in this version is fixed. Pretty soon the user will be able to set the look and feel. Yes. Including the good old thing ;)

Derived values (such as turning on RTC when SMP is set) are working well, but this is just a quick hack to test it. The `real' program will prompt the user whether such changes are to be done or not.

CML1 config.in files were convereted to kernelconf format with a simple awk script. There may be errors.

ChangeLog for 0.1.2:
- Moved lxdialog from scripts/ to conf/
- Values defined with "value:" are frozen
- Almost all the symbols for i386 in .conf files
- Reading config files
- Vi compatible up and down movements (j and k) in lxdialog (menuconfig)
- Integer, hex and character input/read/write
- Symbols and menu handling done with a single tree
- Made every tristate symbol's module value depend on CONFIG_MODULES
- Made expression evaluation more sane
- Better error handling
- Lots of code cleanups

Known issues:
- ttyconfig is broken in this version.
- Menuconfig has some problems when handling the last item. Can do a quick and dirty fix, but I thought of addressing this issue when working on style selection.
- Many symbols have duplicates. The reading routine handles most of them properly, but eventually, these entries would unify.
- Some symbols (notably in framebuffer section) were not convereted at all.
- Many quick hacks here and there to get the program "working". Most of this code will disapper during the next week.

Anuradha

Signature · 4 lines
Debian GNU/Linux (kernel 2.4.16-xfs)

You are absolute plate-glass. I see to the very back of your mind.
		-- Sherlock Holmes
#1 lore raw
Quoted 6 lines · Anuradha Ratnaweera

Here we go again...

Version 0.1.2 is an RFC. Don't use it unless you are really adventurous. The size of the tarball has grown by a factor of 6, mostly due to the symbol files.

Hi Anuradha.
I have not looked into the SRC, but IIRC you mentioned an interest in LEX/YACC for CML2. Take a look at:
http://www.alphalink.com.au/~gnb/cml2

This is an incomplete implementation of a CML2 parser + semantic analysis in C utilising a bison parser.

Sam

#2 lore raw
In reply to Anuradha Ratnaweera
Quoted 11 lines · Sam Ravnborg
Quoted 2 lines · Anuradha Ratnaweera

Here we go again...

I have not looked into the SRC, but IIRC you mentioned an interest in LEX/YACC for CML2. Take a look at:

http://www.alphalink.com.au/~gnb/cml2

This is an incomplete implementation of a CML2 parser + semantic analysis in C utilising a bison parser.

My program is not related to neither CML2 nor yacc nor bison.

Anuradha

Signature · 4 lines
Debian GNU/Linux (kernel 2.4.16-xfs)

Truly great madness can not be achieved without significant intelligence.
		-- Henrik Tikkanen
#3 lore raw
In reply to Anuradha Ratnaweera
Quoted 5 lines · Anuradha Ratnaweera
Quoted 3 lines

This is an incomplete implementation of a CML2 parser + semantic analysis in C utilising a bison parser.

My program is not related to neither CML2 nor yacc nor bison.

It was not obvious from the context but I was referring to a mail you sent some time ago when you announced this project:
http://marc.theaimsgroup.com/?l=linux-kernel&m=101168996304715&w=2

"I'd love to write a CML2 compiler in
C, but it doesn't look like a viable alternative."

Following the discussion on LKML and the KBUILD list people dislike the choice of Phython version 2.x for the actual implementation of the CML2 "compiler" and frontends. In general few people has argued against the language itself.

Therefore my intention was to point you in the direction of an although incomplete implementation of a CML2 compiler written in C.
This could give you the possibility to use the well documented and by several people already accepted CML2 language, but at the same time you had the flexibility to create your own front-end.

Sam

#4 lore raw
Quoted 7 lines

Therefore my intention was to point you in the direction of an although incomplete implementation of a CML2 compiler written in C.
This could give you the possibility to use the well documented and by several people already accepted CML2 language, but at the same time you had the flexibility to create your own front-end.

Sorry, but I cannot understand, if a new text parser is going to be written. I tried to compare a parser, written by my self in C and in lex+yacc. The second was 4 times quicker and 4 times easier to write, so can I repeat the question:

how syntax is parsed ?

#5 lore raw
In reply to Anuradha Ratnaweera

Hi,

The atachmend is a little beta/patch to your kernelconf. It adds xconfig capability to kernelconf, by using Tcl/Tk scripts. It's still a little bit beta, but the main parts like config file loading/storing, menu-deps ... are implemented.

The main disatvantage for the moment: it doesn't looks like the original xconfig, but i'm working on it.

MfG,Christian Koenig (and sorry for my poor english)

conf/deps.d +16 -0
diff -uNrb kernelconf-0.1.2/conf/deps.d kernelconf-0.1.2.new/conf/deps.d
@@ -0,0 +1,16 @@
+deps.o: deps.c /usr/include/ctype.h /usr/include/features.h \
+ /usr/include/sys/cdefs.h /usr/include/gnu/stubs.h \
+ /usr/include/bits/types.h \
+ /usr/lib/gcc-lib/i386-linux/2.95.4/include/stddef.h \
+ /usr/include/bits/pthreadtypes.h /usr/include/bits/sched.h \
+ /usr/include/endian.h /usr/include/bits/endian.h \
+ /usr/include/malloc.h /usr/include/stdio.h /usr/include/libio.h \
+ /usr/include/_G_config.h /usr/include/wchar.h \
+ /usr/include/bits/wchar.h /usr/include/gconv.h \
+ /usr/lib/gcc-lib/i386-linux/2.95.4/include/stdarg.h \
+ /usr/include/bits/stdio_lim.h /usr/include/string.h \
+ /usr/include/stdlib.h /usr/include/sys/types.h /usr/include/time.h \
+ /usr/include/sys/select.h /usr/include/bits/select.h \
+ /usr/include/bits/sigset.h /usr/include/bits/time.h \
+ /usr/include/sys/sysmacros.h /usr/include/alloca.h kernelconf.h \
+ expressions.h utils.h tree.h

Binary files kernelconf-0.1.2/conf/deps.o and kernelconf-0.1.2.new/conf/deps.o differ

conf/expressions.c +116 -0

122 lines not on this page · raw message

conf/expressions.d +16 -0
diff -uNrb kernelconf-0.1.2/conf/expressions.d kernelconf-0.1.2.new/conf/expressions.d
@@ -0,0 +1,16 @@
+expressions.o: expressions.c /usr/include/ctype.h \
+ /usr/include/features.h /usr/include/sys/cdefs.h \
+ /usr/include/gnu/stubs.h /usr/include/bits/types.h \
+ /usr/lib/gcc-lib/i386-linux/2.95.4/include/stddef.h \
+ /usr/include/bits/pthreadtypes.h /usr/include/bits/sched.h \
+ /usr/include/endian.h /usr/include/bits/endian.h \
+ /usr/include/malloc.h /usr/include/stdio.h /usr/include/libio.h \
+ /usr/include/_G_config.h /usr/include/wchar.h \
+ /usr/include/bits/wchar.h /usr/include/gconv.h \
+ /usr/lib/gcc-lib/i386-linux/2.95.4/include/stdarg.h \
+ /usr/include/bits/stdio_lim.h /usr/include/string.h \
+ /usr/include/stdlib.h /usr/include/sys/types.h /usr/include/time.h \
+ /usr/include/sys/select.h /usr/include/bits/select.h \
+ /usr/include/bits/sigset.h /usr/include/bits/time.h \
+ /usr/include/sys/sysmacros.h /usr/include/alloca.h kernelconf.h \
+ expressions.h utils.h tree.h
conf/expressions.h +2 -0
diff -uNrb kernelconf-0.1.2/conf/expressions.h kernelconf-0.1.2.new/conf/expressions.h
@@ -16,5 +16,7 @@
 Type get_generic_type(Type);
 void free_token(TokenPtr);
 char get_boolean_value(TokenPtr);
+void fprintf_value2tk(FILE *tclf, Type type, Value value);
+void evaluate_expressions2tk(FILE *tclf, ExpressionPtr exp);
 
 #endif /* _KCONF_EXPRESSIONS_H */

Binary files kernelconf-0.1.2/conf/expressions.o and kernelconf-0.1.2.new/conf/expressions.o differ

conf/header.tk +384 -0

384 lines not on this page · raw message

conf/help.d +10 -0
diff -uNrb kernelconf-0.1.2/conf/help.d kernelconf-0.1.2.new/conf/help.d
@@ -0,0 +1,10 @@
+help.o: help.c /usr/include/stdio.h /usr/include/features.h \
+ /usr/include/sys/cdefs.h /usr/include/gnu/stubs.h \
+ /usr/lib/gcc-lib/i386-linux/2.95.4/include/stddef.h \
+ /usr/include/bits/types.h /usr/include/bits/pthreadtypes.h \
+ /usr/include/bits/sched.h /usr/include/libio.h \
+ /usr/include/_G_config.h /usr/include/wchar.h \
+ /usr/include/bits/wchar.h /usr/include/gconv.h \
+ /usr/lib/gcc-lib/i386-linux/2.95.4/include/stdarg.h \
+ /usr/include/bits/stdio_lim.h /usr/include/malloc.h \
+ /usr/include/string.h help.h kernelconf.h

Binary files kernelconf-0.1.2/conf/help.o and kernelconf-0.1.2.new/conf/help.o differ Binary files kernelconf-0.1.2/conf/kernelconf and kernelconf-0.1.2.new/conf/kernelconf differ

conf/kernelconf.d +5 -0
diff -uNrb kernelconf-0.1.2/conf/kernelconf.d kernelconf-0.1.2.new/conf/kernelconf.d
@@ -0,0 +1,5 @@
+kernelconf.o: kernelconf.c /usr/include/string.h \
+ /usr/include/features.h /usr/include/sys/cdefs.h \
+ /usr/include/gnu/stubs.h \
+ /usr/lib/gcc-lib/i386-linux/2.95.4/include/stddef.h menuconfig.h \
+ oldconfig.h readconfig.h readsymbols.h xconfig.h

Binary files kernelconf-0.1.2/conf/kernelconf.o and kernelconf-0.1.2.new/conf/kernelconf.o differ

conf/menuconfig.d +18 -0
diff -uNrb kernelconf-0.1.2/conf/menuconfig.d kernelconf-0.1.2.new/conf/menuconfig.d
@@ -0,0 +1,18 @@
+menuconfig.o: menuconfig.c /usr/include/ctype.h \
+ /usr/include/features.h /usr/include/sys/cdefs.h \
+ /usr/include/gnu/stubs.h /usr/include/bits/types.h \
+ /usr/lib/gcc-lib/i386-linux/2.95.4/include/stddef.h \
+ /usr/include/bits/pthreadtypes.h /usr/include/bits/sched.h \
+ /usr/include/endian.h /usr/include/bits/endian.h /usr/include/stdio.h \
+ /usr/include/libio.h /usr/include/_G_config.h /usr/include/wchar.h \
+ /usr/include/bits/wchar.h /usr/include/gconv.h \
+ /usr/lib/gcc-lib/i386-linux/2.95.4/include/stdarg.h \
+ /usr/include/bits/stdio_lim.h /usr/include/string.h \
+ /usr/include/stdlib.h /usr/include/sys/types.h /usr/include/time.h \
+ /usr/include/sys/select.h /usr/include/bits/select.h \
+ /usr/include/bits/sigset.h /usr/include/bits/time.h \
+ /usr/include/sys/sysmacros.h /usr/include/alloca.h \
+ /usr/include/unistd.h /usr/include/bits/posix_opt.h \
+ /usr/include/bits/confname.h /usr/include/getopt.h \
+ ../include/linux/version.h tree.h kernelconf.h deps.h expressions.h \
+ help.h writeconfig.h

Binary files kernelconf-0.1.2/conf/menuconfig.o and kernelconf-0.1.2.new/conf/menuconfig.o differ

conf/oldconfig.d +1 -0
diff -uNrb kernelconf-0.1.2/conf/oldconfig.d kernelconf-0.1.2.new/conf/oldconfig.d
@@ -0,0 +1 @@
+oldconfig.o: oldconfig.c

Binary files kernelconf-0.1.2/conf/oldconfig.o and kernelconf-0.1.2.new/conf/oldconfig.o differ

conf/readconfig.d +17 -0
diff -uNrb kernelconf-0.1.2/conf/readconfig.d kernelconf-0.1.2.new/conf/readconfig.d
@@ -0,0 +1,17 @@
+readconfig.o: readconfig.c /usr/include/ctype.h \
+ /usr/include/features.h /usr/include/sys/cdefs.h \
+ /usr/include/gnu/stubs.h /usr/include/bits/types.h \
+ /usr/lib/gcc-lib/i386-linux/2.95.4/include/stddef.h \
+ /usr/include/bits/pthreadtypes.h /usr/include/bits/sched.h \
+ /usr/include/endian.h /usr/include/bits/endian.h \
+ /usr/include/malloc.h /usr/include/stdio.h /usr/include/libio.h \
+ /usr/include/_G_config.h /usr/include/wchar.h \
+ /usr/include/bits/wchar.h /usr/include/gconv.h \
+ /usr/lib/gcc-lib/i386-linux/2.95.4/include/stdarg.h \
+ /usr/include/bits/stdio_lim.h /usr/include/stdlib.h \
+ /usr/include/sys/types.h /usr/include/time.h \
+ /usr/include/sys/select.h /usr/include/bits/select.h \
+ /usr/include/bits/sigset.h /usr/include/bits/time.h \
+ /usr/include/sys/sysmacros.h /usr/include/alloca.h \
+ /usr/include/string.h ../include/linux/version.h kernelconf.h \
+ readsymbols.h help.h tree.h utils.h

Binary files kernelconf-0.1.2/conf/readconfig.o and kernelconf-0.1.2.new/conf/readconfig.o differ

conf/readsymbols.d +17 -0
diff -uNrb kernelconf-0.1.2/conf/readsymbols.d kernelconf-0.1.2.new/conf/readsymbols.d
@@ -0,0 +1,17 @@
+readsymbols.o: readsymbols.c /usr/include/ctype.h \
+ /usr/include/features.h /usr/include/sys/cdefs.h \
+ /usr/include/gnu/stubs.h /usr/include/bits/types.h \
+ /usr/lib/gcc-lib/i386-linux/2.95.4/include/stddef.h \
+ /usr/include/bits/pthreadtypes.h /usr/include/bits/sched.h \
+ /usr/include/endian.h /usr/include/bits/endian.h \
+ /usr/include/malloc.h /usr/include/stdio.h /usr/include/libio.h \
+ /usr/include/_G_config.h /usr/include/wchar.h \
+ /usr/include/bits/wchar.h /usr/include/gconv.h \
+ /usr/lib/gcc-lib/i386-linux/2.95.4/include/stdarg.h \
+ /usr/include/bits/stdio_lim.h /usr/include/stdlib.h \
+ /usr/include/sys/types.h /usr/include/time.h \
+ /usr/include/sys/select.h /usr/include/bits/select.h \
+ /usr/include/bits/sigset.h /usr/include/bits/time.h \
+ /usr/include/sys/sysmacros.h /usr/include/alloca.h \
+ /usr/include/string.h ../include/linux/version.h kernelconf.h deps.h \
+ expressions.h readsymbols.h help.h utils.h tree.h

Binary files kernelconf-0.1.2/conf/readsymbols.o and kernelconf-0.1.2.new/conf/readsymbols.o differ

conf/tree.d +4 -0
diff -uNrb kernelconf-0.1.2/conf/tree.d kernelconf-0.1.2.new/conf/tree.d
@@ -0,0 +1,4 @@
+tree.o: tree.c /usr/include/malloc.h /usr/include/features.h \
+ /usr/include/sys/cdefs.h /usr/include/gnu/stubs.h \
+ /usr/lib/gcc-lib/i386-linux/2.95.4/include/stddef.h tree.h \
+ kernelconf.h utils.h

Binary files kernelconf-0.1.2/conf/tree.o and kernelconf-0.1.2.new/conf/tree.o differ

conf/utils.d +7 -0
diff -uNrb kernelconf-0.1.2/conf/utils.d kernelconf-0.1.2.new/conf/utils.d
@@ -0,0 +1,7 @@
+utils.o: utils.c /usr/include/ctype.h /usr/include/features.h \
+ /usr/include/sys/cdefs.h /usr/include/gnu/stubs.h \
+ /usr/include/bits/types.h \
+ /usr/lib/gcc-lib/i386-linux/2.95.4/include/stddef.h \
+ /usr/include/bits/pthreadtypes.h /usr/include/bits/sched.h \
+ /usr/include/endian.h /usr/include/bits/endian.h \
+ /usr/include/malloc.h

Binary files kernelconf-0.1.2/conf/utils.o and kernelconf-0.1.2.new/conf/utils.o differ

conf/writeconfig.d +10 -0
diff -uNrb kernelconf-0.1.2/conf/writeconfig.d kernelconf-0.1.2.new/conf/writeconfig.d
@@ -0,0 +1,10 @@
+writeconfig.o: writeconfig.c /usr/include/stdio.h \
+ /usr/include/features.h /usr/include/sys/cdefs.h \
+ /usr/include/gnu/stubs.h \
+ /usr/lib/gcc-lib/i386-linux/2.95.4/include/stddef.h \
+ /usr/include/bits/types.h /usr/include/bits/pthreadtypes.h \
+ /usr/include/bits/sched.h /usr/include/libio.h \
+ /usr/include/_G_config.h /usr/include/wchar.h \
+ /usr/include/bits/wchar.h /usr/include/gconv.h \
+ /usr/lib/gcc-lib/i386-linux/2.95.4/include/stdarg.h \
+ /usr/include/bits/stdio_lim.h kernelconf.h writeconfig.h

Binary files kernelconf-0.1.2/conf/writeconfig.o and kernelconf-0.1.2.new/conf/writeconfig.o differ

conf/xconfig.c +314 -1

323 lines not on this page · raw message

conf/xconfig.d +17 -0
diff -uNrb kernelconf-0.1.2/conf/xconfig.d kernelconf-0.1.2.new/conf/xconfig.d
@@ -0,0 +1,17 @@
+xconfig.o: xconfig.c /usr/include/ctype.h /usr/include/features.h \
+ /usr/include/sys/cdefs.h /usr/include/gnu/stubs.h \
+ /usr/include/bits/types.h \
+ /usr/lib/gcc-lib/i386-linux/2.95.4/include/stddef.h \
+ /usr/include/bits/pthreadtypes.h /usr/include/bits/sched.h \
+ /usr/include/endian.h /usr/include/bits/endian.h /usr/include/stdio.h \
+ /usr/include/libio.h /usr/include/_G_config.h /usr/include/wchar.h \
+ /usr/include/bits/wchar.h /usr/include/gconv.h \
+ /usr/lib/gcc-lib/i386-linux/2.95.4/include/stdarg.h \
+ /usr/include/bits/stdio_lim.h /usr/include/string.h \
+ /usr/include/stdlib.h /usr/include/sys/types.h /usr/include/time.h \
+ /usr/include/sys/select.h /usr/include/bits/select.h \
+ /usr/include/bits/sigset.h /usr/include/bits/time.h \
+ /usr/include/sys/sysmacros.h /usr/include/alloca.h \
+ /usr/include/unistd.h /usr/include/bits/posix_opt.h \
+ /usr/include/bits/confname.h /usr/include/getopt.h kernelconf.h \
+ expressions.h

Binary files kernelconf-0.1.2/conf/xconfig.o and kernelconf-0.1.2.new/conf/xconfig.o differ

#6 lore raw
In reply to Anuradha Ratnaweera
Quoted 5 lines · Christian Koenig

The atachmend is a little beta/patch to your kernelconf. It adds xconfig capability to kernelconf, by using Tcl/Tk scripts. It's still a little bit beta, but the main parts like config file loading/storing, menu-deps ... are implemented.

Thanks.

I will include it _after_ the next release (0.1.3) which will come out within a couple of days. Structure of kernelconf has changed a bit, so we will have to do some sync. Also, binaries for each type of config are seperate.

BTW, seems as if you have forgotton to `make clean' before making the patch ;)

Anuradha

Signature · 3 lines
Debian GNU/Linux (kernel 2.4.17)

If you can't get your work done in the first 24 hours, work nights.