kconfig: various fixes and documentation updates
Subsystems (3)
cover kconfig: various fixes and documentation updates
Patches 1-3: documentation updates, typo fixes
Patch 4: .gitignore
Patches 5-8: qconf fixes (compiler warnings/errors)
Patches 9-10: environment variable fixes (KCONFIG_CONFIG + KCONFIG_AUTOCONFIG)
Markus Heidelberg (10):
kconfig: fix typo "mconfig" to "menuconfig" in a comment
kconfig: add a note about the deps to the 'silentoldconfig' help
kconfig: resort the documentation of the environment variables
gitignore: ignore Kconfig i18n files
kconfig qconf: fix -Wall compiler warnings
kconfig qconf: fix namespace for Horizontal and Vertical enum values kconfig qconf: add namespace for use of Key_ enum values kconfig qconf: fix the type of the desktop widget
kconfig: do not hardcode ".config" filename
kconfig: do not hardcode "include/config/auto.conf" filename
Documentation/kbuild/kconfig.txt | 116 +++++++++++++++++++------------------ README | 1 + scripts/kconfig/.gitignore | 2 + scripts/kconfig/Makefile | 4 +- scripts/kconfig/conf.c | 7 +- scripts/kconfig/confdata.c | 20 ++++--- scripts/kconfig/lkc.h | 1 + scripts/kconfig/qconf.cc | 48 +++++++++------- scripts/kconfig/util.c | 6 +- 9 files changed, 112 insertions(+), 93 deletions(-)
PATCH 1/10 kconfig: fix typo "mconfig" to "menuconfig" in a comment
--- scripts/kconfig/Makefile | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
scripts/kconfig/Makefile +1 -1
@@ -104,7 +104,7 @@ HOST_EXTRACFLAGS += -DLOCALE # =========================================================================== # Shared Makefile for the various kconfig executables: # conf: Used for defconfig, oldconfig and related targets -# mconf: Used for the mconfig target. +# mconf: Used for the menuconfig target # Utilizes the lxdialog package # qconf: Used for the xconfig target # Based on QT which needs to be installed to compile it
Signature · 1 line
1.6.3.rc1.24.g467d50
PATCH 2/10 kconfig: add a note about the deps to the 'silentoldconfig' help
In reply to Markus Heidelberg--- README | 1 + scripts/kconfig/Makefile | 2 +- 2 files changed, 2 insertions(+), 1 deletions(-)
README +1 -0
@@ -174,6 +174,7 @@ CONFIGURING the kernel: "make silentoldconfig" Like above, but avoids cluttering the screen with questions already answered. + Additionally updates the dependencies. "make defconfig" Create a ./.config file by using the default symbol values from arch/$ARCH/defconfig. "make allyesconfig"
scripts/kconfig/Makefile +1 -1
@@ -83,7 +83,7 @@ help: @echo ' xconfig - Update current config utilising a QT based front-end' @echo ' gconfig - Update current config utilising a GTK based front-end' @echo ' oldconfig - Update current config utilising a provided .config as base' - @echo ' silentoldconfig - Same as oldconfig, but quietly' + @echo ' silentoldconfig - Same as oldconfig, but quietly, additionally update deps' @echo ' randconfig - New config with random answer to all options' @echo ' defconfig - New config with default answer to all options' @echo ' allmodconfig - New config selecting modules when possible'
Signature · 1 line
1.6.3.rc1.24.g467d50
PATCH 3/10 kconfig: resort the documentation of the environment variables
In reply to Markus HeidelbergAll the KCONFIG_ environment variables were previously located in a section "Environment variables in 'menuconfig'", but neither are they restricted to 'menuconfig' nor are they all used by 'menuconfig'.
Introduce the following three sections for these variables:
* Environment variables for '*config'
* Environment variables for '{allyes/allmod/allno/rand}config'
* Environment variables for 'silentoldconfig'
Furthermore this puts MENUCONFIG_MODE next to MENUCONFIG_COLOR into a common section "User interface options for 'menuconfig'".
--- Documentation/kbuild/kconfig.txt | 116 +++++++++++++++++++------------------ 1 files changed, 60 insertions(+), 56 deletions(-)
Documentation/kbuild/kconfig.txt +60 -56
@@ -35,48 +35,26 @@ new .config files to see the differences: (Yes, we need something better here.) - -====================================================================== -menuconfig --------------------------------------------------- - -SEARCHING for CONFIG symbols - -Searching in menuconfig: - - The Search function searches for kernel configuration symbol - names, so you have to know something close to what you are - looking for. - - Example: - /hotplug - This lists all config symbols that contain "hotplug", - e.g., HOTPLUG, HOTPLUG_CPU, MEMORY_HOTPLUG. - - For search help, enter / followed TAB-TAB-TAB (to highlight - <Help>) and Enter. This will tell you that you can also use - regular expressions (regexes) in the search string, so if you - are not interested in MEMORY_HOTPLUG, you could try - - /^hotplug - - ______________________________________________________________________ -Color Themes for 'menuconfig' +Environment variables for '*config' -It is possible to select different color themes using the variable -MENUCONFIG_COLOR. To select a theme use: +KCONFIG_CONFIG +-------------------------------------------------- +This environment variable can be used to specify a default kernel config +file name to override the default name of ".config". - make MENUCONFIG_COLOR=<theme> menuconfig +KCONFIG_OVERWRITECONFIG +-------------------------------------------------- +If you set KCONFIG_OVERWRITECONFIG in the environment, Kconfig will not +break symlinks when .config is a symlink to somewhere else. -Available themes are: - mono => selects colors suitable for monochrome displays - blackbg => selects a color scheme with black background - classic => theme with blue background. The classic look - bluetitle => a LCD friendly version of classic. (default) +KCONFIG_NOTIMESTAMP +-------------------------------------------------- +If this environment variable exists and is non-null, the timestamp line +in generated .config files is omitted. ______________________________________________________________________ -Environment variables in 'menuconfig' +Environment variables for '{allyes/allmod/allno/rand}config' KCONFIG_ALLCONFIG --------------------------------------------------
@@ -95,8 +73,7 @@ values. This enables you to create "miniature" config (miniconfig) or custom config files containing just the config symbols that you are interested in. Then the kernel config system generates the full .config file, -including dependencies of your miniconfig file, based on the miniconfig -file. +including symbols of your miniconfig file. This 'KCONFIG_ALLCONFIG' file is a config file which contains (usually a subset of all) preset config symbols. These variable
@@ -113,26 +90,14 @@ These examples will disable most options (allnoconfig) but enable or disable the options that are explicitly listed in the specified mini-config files. +______________________________________________________________________ +Environment variables for 'silentoldconfig' + KCONFIG_NOSILENTUPDATE -------------------------------------------------- If this variable has a non-blank value, it prevents silent kernel config udpates (requires explicit updates). -KCONFIG_CONFIG --------------------------------------------------- -This environment variable can be used to specify a default kernel config -file name to override the default name of ".config". - -KCONFIG_OVERWRITECONFIG --------------------------------------------------- -If you set KCONFIG_OVERWRITECONFIG in the environment, Kconfig will not -break symlinks when .config is a symlink to somewhere else. - -KCONFIG_NOTIMESTAMP --------------------------------------------------- -If this environment variable exists and is non-null, the timestamp line -in generated .config files is omitted. - KCONFIG_AUTOCONFIG -------------------------------------------------- This environment variable can be set to specify the path & name of the
@@ -143,15 +108,54 @@ KCONFIG_AUTOHEADER This environment variable can be set to specify the path & name of the "autoconf.h" (header) file. Its default value is "include/linux/autoconf.h". + +====================================================================== +menuconfig +-------------------------------------------------- + +SEARCHING for CONFIG symbols + +Searching in menuconfig: + + The Search function searches for kernel configuration symbol + names, so you have to know something close to what you are + looking for. + + Example: + /hotplug + This lists all config symbols that contain "hotplug", + e.g., HOTPLUG, HOTPLUG_CPU, MEMORY_HOTPLUG. + + For search help, enter / followed TAB-TAB-TAB (to highlight + <Help>) and Enter. This will tell you that you can also use + regular expressions (regexes) in the search string, so if you + are not interested in MEMORY_HOTPLUG, you could try + + /^hotplug + ______________________________________________________________________ -menuconfig User Interface Options ----------------------------------------------------------------------- +User interface options for 'menuconfig' + +MENUCONFIG_COLOR +-------------------------------------------------- +It is possible to select different color themes using the variable +MENUCONFIG_COLOR. To select a theme use: + + make MENUCONFIG_COLOR=<theme> menuconfig + +Available themes are: + mono => selects colors suitable for monochrome displays + blackbg => selects a color scheme with black background + classic => theme with blue background. The classic look + bluetitle => a LCD friendly version of classic. (default) + MENUCONFIG_MODE -------------------------------------------------- This mode shows all sub-menus in one large tree. Example: - MENUCONFIG_MODE=single_menu make menuconfig + make MENUCONFIG_MODE=single_menu menuconfig + ====================================================================== xconfig
Signature · 1 line
1.6.3.rc1.24.g467d50
PATCH 4/10 gitignore: ignore Kconfig i18n files
In reply to Markus Heidelberg--- scripts/kconfig/.gitignore | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-)
scripts/kconfig/.gitignore +2 -0
@@ -8,6 +8,8 @@ lex.*.c zconf.hash.c *.moc lkc_defs.h +gconf.glade.h +*.pot # # configuration programs
Signature · 1 line
1.6.3.rc1.24.g467d50
PATCH 5/10 kconfig qconf: fix -Wall compiler warnings
In reply to Markus HeidelbergThese compiler warnings occure when adding -Wall to HOSTCXXFLAGS in /Makefile
scripts/kconfig/qconf.h: In constructor ‘ConfigInfoView::ConfigInfoView(QWidget*, const char*)’:scripts/kconfig/qconf.h:274: warning: ‘ConfigInfoView::menu’ will be initialized afterscripts/kconfig/qconf.h:273: warning: ‘symbol* ConfigInfoView::sym’scripts/kconfig/qconf.cc:922: warning: when initialized here
scripts/kconfig/qconf.cc: In member function ‘void ConfigMainWindow::setMenuLink(menu*)’:scripts/kconfig/qconf.cc:1498: warning: enumeration value ‘menuMode’ not handled in switch scripts/kconfig/qconf.cc:1498: warning: enumeration value ‘listMode’ not handled in switch
scripts/kconfig/qconf.cc: In member function ‘void ConfigMainWindow::saveSettings()’:scripts/kconfig/qconf.cc:1664: warning: enumeration value ‘menuMode’ not handled in switch scripts/kconfig/qconf.cc:1664: warning: enumeration value ‘listMode’ not handled in switch
--- scripts/kconfig/qconf.cc | 7 ++++++- 1 files changed, 6 insertions(+), 1 deletions(-)
scripts/kconfig/qconf.cc +6 -1
@@ -920,7 +920,7 @@ void ConfigView::updateListAll(void) } ConfigInfoView::ConfigInfoView(QWidget* parent, const char *name) - : Parent(parent, name), menu(0), sym(0) + : Parent(parent, name), sym(0), menu(0) { if (name) { configSettings->beginGroup(name);
@@ -1524,6 +1524,8 @@ void ConfigMainWindow::setMenuLink(struct menu *menu) case fullMode: list = configList; break; + default: + break; } if (list) {
@@ -1673,6 +1675,9 @@ void ConfigMainWindow::saveSettings(void) case fullMode : entry = "full"; break; + + default: + break; } configSettings->writeEntry("/listMode", entry);
Signature · 1 line
1.6.3.rc1.24.g467d50
PATCH 6/10 kconfig qconf: fix namespace for Horizontal and Vertical enum values
In reply to Markus HeidelbergThey were used as QSplitter::Horizontal resp. QSplitter::Vertical, but are defined in the 'Qt' namespace.
Fixes the following compiler errors after a quick conversion with 'qt3to4', which occured with g++ 3.4.6 and 4.1.2, but not anymore with 4.3.2.
scripts/kconfig/qconf.cc: In constructor 'ConfigSearchWindow::ConfigSearchWindow(ConfigMainWindow*, const char*)':scripts/kconfig/qconf.cc:1213: error: 'Vertical' is not a member of 'QSplitter'
scripts/kconfig/qconf.cc: In constructor 'ConfigMainWindow::ConfigMainWindow()':scripts/kconfig/qconf.cc:1304: error: 'Horizontal' is not a member of 'QSplitter' scripts/kconfig/qconf.cc:1311: error: 'Vertical' is not a member of 'QSplitter'
--- scripts/kconfig/qconf.cc | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-)
scripts/kconfig/qconf.cc +3 -3
@@ -1199,7 +1199,7 @@ ConfigSearchWindow::ConfigSearchWindow(ConfigMainWindow* parent, const char *nam layout1->addLayout(layout2); split = new QSplitter(this); - split->setOrientation(QSplitter::Vertical); + split->setOrientation(Qt::Vertical); list = new ConfigView(split, name); list->list->mode = listMode; info = new ConfigInfoView(split, name);
@@ -1290,14 +1290,14 @@ ConfigMainWindow::ConfigMainWindow(void) move(x, y); split1 = new QSplitter(this); - split1->setOrientation(QSplitter::Horizontal); + split1->setOrientation(Qt::Horizontal); setCentralWidget(split1); menuView = new ConfigView(split1, "menu"); menuList = menuView->list; split2 = new QSplitter(split1); - split2->setOrientation(QSplitter::Vertical); + split2->setOrientation(Qt::Vertical); // create config tree configView = new ConfigView(split2, "config");
Signature · 1 line
1.6.3.rc1.24.g467d50
PATCH 7/10 kconfig qconf: add namespace for use of Key_ enum values
In reply to Markus HeidelbergThey are defined in the 'Qt' namespace.
Fixes the following compiler errors after a quick conversion with 'qt3to4', which occured with g++ 3.4.6 and 4.1.2, but not anymore with 4.3.2.
scripts/kconfig/qconf.cc: In member function 'virtual void ConfigLineEdit::keyPressEvent(QKeyEvent*)':scripts/kconfig/qconf.cc:311: error: 'Key_Escape' was not declared in this scope scripts/kconfig/qconf.cc:313: error: 'Key_Return' was not declared in this scope scripts/kconfig/qconf.cc:314: error: 'Key_Enter' was not declared in this scope
scripts/kconfig/qconf.cc: In member function 'virtual void ConfigList::keyPressEvent(QKeyEvent*)':scripts/kconfig/qconf.cc:653: error: 'Key_Escape' was not declared in this scope scripts/kconfig/qconf.cc:666: error: 'Key_Return' was not declared in this scope scripts/kconfig/qconf.cc:667: error: 'Key_Enter' was not declared in this scope scripts/kconfig/qconf.cc:681: error: 'Key_Space' was not declared in this scope scripts/kconfig/qconf.cc:684: error: 'Key_N' was not declared in this scope scripts/kconfig/qconf.cc:687: error: 'Key_M' was not declared in this scope scripts/kconfig/qconf.cc:690: error: 'Key_Y' was not declared in this scope
scripts/kconfig/qconf.cc: In constructor 'ConfigMainWindow::ConfigMainWindow()':scripts/kconfig/qconf.cc:1329: error: 'CTRL' was not declared in this scope scripts/kconfig/qconf.cc:1329: error: 'Key_Q' was not declared in this scope scripts/kconfig/qconf.cc:1331: error: 'Key_L' was not declared in this scope scripts/kconfig/qconf.cc:1333: error: 'Key_S' was not declared in this scope scripts/kconfig/qconf.cc:1340: error: 'Key_F' was not declared in this scope
--- scripts/kconfig/qconf.cc | 28 ++++++++++++++-------------- 1 files changed, 14 insertions(+), 14 deletions(-)
scripts/kconfig/qconf.cc +14 -14
@@ -297,10 +297,10 @@ void ConfigLineEdit::show(ConfigItem* i) void ConfigLineEdit::keyPressEvent(QKeyEvent* e) { switch (e->key()) { - case Key_Escape: + case Qt::Key_Escape: break; - case Key_Return: - case Key_Enter: + case Qt::Key_Return: + case Qt::Key_Enter: sym_set_string_value(item->menu->sym, text().latin1()); parent()->updateList(item); break;
@@ -639,7 +639,7 @@ void ConfigList::keyPressEvent(QKeyEvent* ev) struct menu *menu; enum prop_type type; - if (ev->key() == Key_Escape && mode != fullMode && mode != listMode) { + if (ev->key() == Qt::Key_Escape && mode != fullMode && mode != listMode) { emit parentSelected(); ev->accept(); return;
@@ -652,8 +652,8 @@ void ConfigList::keyPressEvent(QKeyEvent* ev) item = (ConfigItem*)i; switch (ev->key()) { - case Key_Return: - case Key_Enter: + case Qt::Key_Return: + case Qt::Key_Enter: if (item->goParent) { emit parentSelected(); break;
@@ -667,16 +667,16 @@ void ConfigList::keyPressEvent(QKeyEvent* ev) emit menuSelected(menu); break; } - case Key_Space: + case Qt::Key_Space: changeValue(item); break; - case Key_N: + case Qt::Key_N: setValue(item, no); break; - case Key_M: + case Qt::Key_M: setValue(item, mod); break; - case Key_Y: + case Qt::Key_Y: setValue(item, yes); break; default:
@@ -1315,18 +1315,18 @@ ConfigMainWindow::ConfigMainWindow(void) backAction = new QAction("Back", QPixmap(xpm_back), _("Back"), 0, this); connect(backAction, SIGNAL(activated()), SLOT(goBack())); backAction->setEnabled(FALSE); - QAction *quitAction = new QAction("Quit", _("&Quit"), CTRL+Key_Q, this); + QAction *quitAction = new QAction("Quit", _("&Quit"), Qt::CTRL + Qt::Key_Q, this); connect(quitAction, SIGNAL(activated()), SLOT(close())); - QAction *loadAction = new QAction("Load", QPixmap(xpm_load), _("&Load"), CTRL+Key_L, this); + QAction *loadAction = new QAction("Load", QPixmap(xpm_load), _("&Load"), Qt::CTRL + Qt::Key_L, this); connect(loadAction, SIGNAL(activated()), SLOT(loadConfig())); - saveAction = new QAction("Save", QPixmap(xpm_save), _("&Save"), CTRL+Key_S, this); + saveAction = new QAction("Save", QPixmap(xpm_save), _("&Save"), Qt::CTRL + Qt::Key_S, this); connect(saveAction, SIGNAL(activated()), SLOT(saveConfig())); conf_set_changed_callback(conf_changed); // Set saveAction's initial state conf_changed(); QAction *saveAsAction = new QAction("Save As...", _("Save &As..."), 0, this); connect(saveAsAction, SIGNAL(activated()), SLOT(saveConfigAs())); - QAction *searchAction = new QAction("Find", _("&Find"), CTRL+Key_F, this); + QAction *searchAction = new QAction("Find", _("&Find"), Qt::CTRL + Qt::Key_F, this); connect(searchAction, SIGNAL(activated()), SLOT(searchConfig())); QAction *singleViewAction = new QAction("Single View", QPixmap(xpm_single_view), _("Single View"), 0, this); connect(singleViewAction, SIGNAL(activated()), SLOT(showSingleView()));
Signature · 1 line
1.6.3.rc1.24.g467d50
PATCH 8/10 kconfig qconf: fix the type of the desktop widget
In reply to Markus HeidelbergQApplication::desktop() returns a pointer to QDesktopWidget, not to QWidget.
Fixes the following compiler error after a quick conversion with 'qt3to4', which occured with g++ 3.4.6 and 4.1.2, but not anymore with 4.3.2.
scripts/kconfig/qconf.cc: In constructor 'ConfigMainWindow::ConfigMainWindow()':scripts/kconfig/qconf.cc:1289: error: cannot convert 'QDesktopWidget*' to 'QWidget*' in initialization
--- scripts/kconfig/qconf.cc | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-)
scripts/kconfig/qconf.cc +2 -1
@@ -5,6 +5,7 @@ #include <qapplication.h> #include <qmainwindow.h> +#include <qdesktopwidget.h> #include <qtoolbar.h> #include <qlayout.h> #include <qvbox.h>
@@ -1275,7 +1276,7 @@ ConfigMainWindow::ConfigMainWindow(void) int x, y, width, height; char title[256]; - QWidget *d = configApp->desktop(); + QDesktopWidget *d = configApp->desktop(); snprintf(title, sizeof(title), _("Linux Kernel v%s Configuration"), getenv("KERNELVERSION")); setCaption(title);
Signature · 1 line
1.6.3.rc1.24.g467d50
PATCH 9/10 kconfig: do not hardcode ".config" filename
In reply to Markus HeidelbergRather than hardcoding ".config" use conf_get_configname(), which also respects the environment variable KCONFIG_CONFIG.
This fixes "make silentoldconfig" when KCONFIG_CONFIG is used and also suggests the given filename for "Load" and "Save as" in qconf.
--- scripts/kconfig/conf.c | 7 ++++--- scripts/kconfig/qconf.cc | 4 ++-- 2 files changed, 6 insertions(+), 5 deletions(-)
scripts/kconfig/conf.c +4 -3
@@ -498,14 +498,15 @@ int main(int ac, char **av)conf_parse (name);//zconfdump(stdout); if (sync_kconfig) { -if (stat (".config" , &tmpstat)) { + name =conf_get_configname (); +if (stat (name, &tmpstat)) {fprintf (stderr,_ ("***\n" "*** You have not yet configured your kernel!\n" -"*** (missing kernel .config file)\n" +"*** (missing kernel config file \"%s\")\n" "***\n" "*** Please run some configurator (e.g. \"make oldconfig\" or\n" "*** \"make menuconfig\" or \"make xconfig\").\n" -"***\n" )); +"***\n" ), name);exit (1 ); } }
scripts/kconfig/qconf.cc +2 -2
@@ -1448,7 +1448,7 @@ ConfigMainWindow::ConfigMainWindow(void) void ConfigMainWindow::loadConfig(void) { - QString s = QFileDialog::getOpenFileName(".config", NULL, this); + QString s = QFileDialog::getOpenFileName(conf_get_configname(), NULL, this); if (s.isNull()) return; if (conf_read(QFile::encodeName(s)))
@@ -1464,7 +1464,7 @@ void ConfigMainWindow::saveConfig(void) void ConfigMainWindow::saveConfigAs(void) { - QString s = QFileDialog::getSaveFileName(".config", NULL, this); + QString s = QFileDialog::getSaveFileName(conf_get_configname(), NULL, this); if (s.isNull()) return; if (conf_write(QFile::encodeName(s)))
Signature · 1 line
1.6.3.rc1.24.g467d50
PATCH 10/10 kconfig: do not hardcode "include/config/auto.conf" filename
In reply to Markus HeidelbergRegardless of KCONFIG_AUTOCONFIG, the filename written as a Make target into "include/config/auto.conf.cmd" was always the default one.
Of course this doesn't make it work for the Kernel kbuild system, since there the filename is hardcoded at several places in the Makefiles.
--- scripts/kconfig/confdata.c | 20 ++++++++++++-------- scripts/kconfig/lkc.h | 1 + scripts/kconfig/util.c | 6 +++--- 3 files changed, 16 insertions(+), 11 deletions(-)
scripts/kconfig/confdata.c +12 -8
@@ -41,6 +41,13 @@ const char *conf_get_configname(void)return name ? name :".config" ; } +const char *conf_get_autoconfig_name (void ) +{ +char *name =getenv ("KCONFIG_AUTOCONFIG" ); + +return name ? name :"include/config/auto.conf" ; +} +static char *conf_expand_value (const char *in) {struct symbol *sym;
@@ -555,15 +562,14 @@ int conf_write(const char *name)int conf_split_config (void ) { -char *name, path[128 ]; +const char *name; +char path[128 ];char *s, *d, c;struct symbol *sym;struct stat sb;int res, i, fd; - name =getenv ("KCONFIG_AUTOCONFIG" ); -if (!name) - name ="include/config/auto.conf" ; + name =conf_get_autoconfig_name ();conf_read_simple (name,S_DEF_AUTO );if (chdir ("include/config" ))
@@ -670,7 +676,7 @@ int conf_write_autoconf(void) {struct symbol *sym;const char *str; -char *name; +const char *name;FILE *out, *out_h;time_t now;int i, l;
@@ -773,9 +779,7 @@ int conf_write_autoconf(void) name ="include/linux/autoconf.h" ;if (rename (".tmpconfig.h" , name))return 1 ; - name =getenv ("KCONFIG_AUTOCONFIG" ); -if (!name) - name ="include/config/auto.conf" ; + name =conf_get_autoconfig_name ();/* * This must be the last step, kbuild has a dependency on auto.conf * and this marks the successful completion of the previous steps.
scripts/kconfig/lkc.h +1 -0
@@ -74,6 +74,7 @@ char *zconf_curname(void);/* confdata.c */ const char *conf_get_configname (void ); +const char *conf_get_autoconfig_name (void );char *conf_get_default_confname (void );void sym_set_change_count (int count);void sym_add_change_count (int count);
scripts/kconfig/util.c +3 -3
@@ -46,8 +46,8 @@ int file_write_dep(const char *name)else fprintf (out,"\t%s\n" , file->name); } -fprintf (out,"\ninclude/config/auto.conf: \\\n" -"\t$(deps_config)\n\n" ); +fprintf (out,"\n%s: \\\n" +"\t$(deps_config)\n\n" ,conf_get_autoconfig_name ());expr_list_for_each_sym (sym_env_list, e, sym) {struct property *prop;
@@ -61,7 +61,7 @@ int file_write_dep(const char *name)if (!value) value ="" ;fprintf (out,"ifneq \"$(%s)\" \"%s\"\n" , env_sym->name, value); -fprintf (out,"include/config/auto.conf: FORCE\n" ); +fprintf (out,"%s: FORCE\n" ,conf_get_autoconfig_name ());fprintf (out,"endif\n" ); }
Signature · 1 line
1.6.3.rc1.24.g467d50