LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 07-22-2008, 12:11 PM   #1
raypen
Member
 
Registered: Jun 2002
Location: Midwest
Distribution: Slackware
Posts: 365

Rep: Reputation: 30
Using menuconfig as an intro to ncurses


Since menuconfig is the ncurses based menu system for compiling
a kernel, I thought it might be a good place to start looking
at how ncurses programming functions.

Several menu configurations are available when compiling a kernel:

Code:
make config
make menuconfig
make xconfig
make gconfig
These all seem to be targets or option parameters for make. However,
there are no separate instruction files corresponding to these names
and having looked into make with a HEX editor, there seems to be no
reference to the options internally.

Not being a programmer, I am at somewhat of a loss. Can anyone
provide a concise explanation of the inner workings here?
 
Old 07-22-2008, 02:24 PM   #2
jomen
Senior Member
 
Registered: May 2004
Location: Leipzig/Germany
Distribution: Arch
Posts: 1,687

Rep: Reputation: 55
If you start configuring a fresh kernel with any of those commands you will see a few lines of output in the terminal you run this from.
This points to the place where the scripts (rather the source for these) are located - on the last line is then the name of the script which is first built and then used:
Code:
make menuconfig
  HOSTCC  scripts/basic/fixdep
  HOSTCC  scripts/basic/docproc
  HOSTCC  scripts/kconfig/conf.o
  HOSTCC  scripts/kconfig/kxgettext.o
  HOSTCC  scripts/kconfig/lxdialog/checklist.o
  HOSTCC  scripts/kconfig/lxdialog/inputbox.o
  HOSTCC  scripts/kconfig/lxdialog/menubox.o
  HOSTCC  scripts/kconfig/lxdialog/textbox.o
  HOSTCC  scripts/kconfig/lxdialog/util.o
  HOSTCC  scripts/kconfig/lxdialog/yesno.o
  HOSTCC  scripts/kconfig/mconf.o
  SHIPPED scripts/kconfig/zconf.tab.c
  SHIPPED scripts/kconfig/lex.zconf.c
  SHIPPED scripts/kconfig/zconf.hash.c
  HOSTCC  scripts/kconfig/zconf.tab.o
scripts/kconfig/lex.zconf.c:1628: Warnung: »input« definiert, aber nicht verwendet
  HOSTLD  scripts/kconfig/mconf
scripts/kconfig/mconf arch/x86/Kconfig
This seems rather complicated than a good starting point - but actually: I have no idea ... I'm fairly certain that this has nothing to do with "make" itself.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
make menuconfig + ncurses 5.6 issue halturata Linux - Software 4 06-05-2012 04:42 PM
error in make menuconfig: ncurses libraries ashlesha Linux - General 3 07-09-2006 06:59 PM
menuconfig can't find ncurses alaios Slackware 8 06-02-2004 08:02 AM
Installing Linux-2.4.20: Make menuconfig, connot find ncurses SparceMatrix Linux From Scratch 3 06-12-2003 07:42 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 08:27 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration