diff options
author | Alexey Neyman <stilor@att.net> | 2017-12-02 23:30:38 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-12-02 23:30:38 (GMT) |
commit | d917a29865876b913fe2939ee2a0728145e8543a (patch) | |
tree | 4e048ed57988306696efa3c5b81a80d48030e913 /packages/uClibc/0.9.33.2/0007-make-olddefconfig.patch | |
parent | e832b9b220f90b11b893e2815ceb37ec2b708683 (diff) | |
parent | 98bc4decdeab1361bdc585c86591718fb08c8ffb (diff) |
Merge pull request #874 from stilor/renumber-update-patches
Renumber & update patches
Diffstat (limited to 'packages/uClibc/0.9.33.2/0007-make-olddefconfig.patch')
-rw-r--r-- | packages/uClibc/0.9.33.2/0007-make-olddefconfig.patch | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/packages/uClibc/0.9.33.2/0007-make-olddefconfig.patch b/packages/uClibc/0.9.33.2/0007-make-olddefconfig.patch new file mode 100644 index 0000000..9c8a535 --- /dev/null +++ b/packages/uClibc/0.9.33.2/0007-make-olddefconfig.patch @@ -0,0 +1,44 @@ +--- + Makefile.in | 3 +++ + extra/config/conf.c | 4 +++- + 2 files changed, 6 insertions(+), 1 deletion(-) + +--- a/extra/config/conf.c ++++ b/extra/config/conf.c +@@ -435,6 +435,7 @@ + const char *name; + const char *configname = conf_get_configname(); + struct stat tmpstat; ++ int olddefconfig = 0; + + setlocale(LC_ALL, ""); + bindtextdomain(PACKAGE, LOCALEDIR); +@@ -451,6 +452,7 @@ + break; + case 'd': + input_mode = set_default; ++ olddefconfig = 1; + break; + case 'D': + input_mode = set_default; +@@ -514,7 +516,7 @@ + switch (input_mode) { + case set_default: + if (!defconfig_file) +- defconfig_file = conf_get_default_confname(); ++ defconfig_file = olddefconfig ? NULL : conf_get_default_confname(); + if (conf_read(defconfig_file)) { + printf(_("***\n" + "*** Can't find default configuration \"%s\"!\n" +--- a/Makefile.in ++++ b/Makefile.in +@@ -460,6 +460,9 @@ + allnoconfig: $(conf) + $(Q)$< -n extra/Configs/Config.in + ++olddefconfig: $(conf) ++ $(Q)$< -d extra/Configs/Config.in ++ + defconfig: $(conf) + $(Q)$< -D extra/Configs/defconfigs/$(ARCH)/$@ extra/Configs/Config.in + |