]> git.ipfire.org Git - people/ms/u-boot.git/blobdiff - scripts/kconfig/nconf.c
Merge git://www.denx.de/git/u-boot-imx
[people/ms/u-boot.git] / scripts / kconfig / nconf.c
index 984489ef2b46e12549eedd74a2d8691ba0589489..a9bc5334a478d6774d1409a837665b4f143d8597 100644 (file)
@@ -5,7 +5,9 @@
  * Derived from menuconfig.
  *
  */
+#ifndef _GNU_SOURCE
 #define _GNU_SOURCE
+#endif
 #include <string.h>
 #include <stdlib.h>
 
@@ -1482,6 +1484,11 @@ int main(int ac, char **av)
        bindtextdomain(PACKAGE, LOCALEDIR);
        textdomain(PACKAGE);
 
+       if (ac > 1 && strcmp(av[1], "-s") == 0) {
+               /* Silence conf_read() until the real callback is set up */
+               conf_set_message_callback(NULL);
+               av++;
+       }
        conf_parse(av[1]);
        conf_read(NULL);