]> git.sur5r.net Git - kconfig-frontends/commitdiff
Synchronise with v4.3 v4.3.0.0
authorYann E. MORIN <yann.morin.1998@free.fr>
Tue, 2 Aug 2016 20:30:16 +0000 (22:30 +0200)
committerYann E. MORIN <yann.morin.1998@free.fr>
Tue, 2 Aug 2016 20:58:49 +0000 (22:58 +0200)
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
.version
libs/parser/confdata.c
libs/parser/hconf.gperf
libs/parser/lconf.l
libs/parser/symbol.c
scripts/ksync.log
utils/merge

index 2bc9faacfd0af62ccdc55c141091fdacf4222594..068a9923f2b2e1b5b6fe87856167deb4589bcce2 100644 (file)
--- a/.version
+++ b/.version
@@ -1,2 +1,2 @@
-4.2.0 64291f7db5bd8150a74ad2036f1037e6a0428df2 Hurr durr I'ma sheep
+4.3.0 6a13feb9c82803e2b815eca72fa7a9f5561d7861 Blurry Fish Butt
 0
index c814f57672fc03fb8720127d1527d17264454438..0b7dc2fd7bac0e2985a0b16c023b98cca23325e7 100644 (file)
@@ -268,8 +268,7 @@ int conf_read_simple(const char *name, int def)
                        goto load;
                sym_add_change_count(1);
                if (!sym_defconfig_list) {
-                       if (modules_sym)
-                               sym_calc_value(modules_sym);
+                       sym_calc_value(modules_sym);
                        return 1;
                }
 
@@ -404,9 +403,7 @@ setsym:
        }
        free(line);
        fclose(in);
-
-       if (modules_sym)
-               sym_calc_value(modules_sym);
+       sym_calc_value(modules_sym);
        return 0;
 }
 
index b6ac02d604f1fbcca8ecc04cf09ac038bcb81fa8..ac498f01b449f43476bd9a97586c359d94eaa9bb 100644 (file)
@@ -22,6 +22,7 @@ comment,      T_COMMENT,      TF_COMMAND
 config,                T_CONFIG,       TF_COMMAND
 menuconfig,    T_MENUCONFIG,   TF_COMMAND
 help,          T_HELP,         TF_COMMAND
+---help---,    T_HELP,         TF_COMMAND
 if,            T_IF,           TF_COMMAND|TF_PARAM
 endif,         T_ENDIF,        TF_COMMAND
 depends,       T_DEPENDS,      TF_COMMAND
index 200a3fe3009153bba22742e862f6114f9e7f5fc8..c410d257da0602dc9b4de92dac457e237c097399 100644 (file)
@@ -66,9 +66,16 @@ static void alloc_string(const char *str, int size)
        memcpy(text, str, size);
        text[size] = 0;
 }
+
+static void warn_ignored_character(char chr)
+{
+       fprintf(stderr,
+               "%s:%d:warning: ignoring unsupported character '%c'\n",
+               zconf_curname(), zconf_lineno(), chr);
+}
 %}
 
-n      [A-Za-z0-9_]
+n      [A-Za-z0-9_-]
 
 %%
        int str = 0;
@@ -106,7 +113,7 @@ n   [A-Za-z0-9_]
                zconflval.string = text;
                return T_WORD;
        }
-       .
+       .       warn_ignored_character(*yytext);
        \n      {
                BEGIN(INITIAL);
                current_file->lineno++;
@@ -132,8 +139,7 @@ n   [A-Za-z0-9_]
                BEGIN(STRING);
        }
        \n      BEGIN(INITIAL); current_file->lineno++; return T_EOL;
-       ---     /* ignore */
-       ({n}|[-/.])+    {
+       ({n}|[/.])+     {
                const struct kconf_id *id = kconf_id_lookup(yytext, yyleng);
                if (id && id->flags & TF_PARAM) {
                        zconflval.id = id;
@@ -146,11 +152,7 @@ n  [A-Za-z0-9_]
        #.*     /* comment */
        \\\n    current_file->lineno++;
        [[:blank:]]+
-       .       {
-               fprintf(stderr,
-                       "%s:%d:warning: ignoring unsupported character '%c'\n",
-                       zconf_curname(), zconf_lineno(), *yytext);
-       }
+       .       warn_ignored_character(*yytext);
        <<EOF>> {
                BEGIN(INITIAL);
        }
index 70c5ee189dce7c7d573c044117d3f63e4450cbcb..50878dc025a5746d51316c6f1bd4c1e1b8a41707 100644 (file)
@@ -467,8 +467,7 @@ void sym_clear_all_valid(void)
        for_all_symbols(i, sym)
                sym->flags &= ~SYMBOL_VALID;
        sym_add_change_count(1);
-       if (modules_sym)
-               sym_calc_value(modules_sym);
+       sym_calc_value(modules_sym);
 }
 
 bool sym_tristate_within_range(struct symbol *sym, tristate val)
index 6bcdb8b9a6f3aa426e6c883491785de14ad370ff..5e0b1cf8b34b2329ff8768e9f181161b4e1b2fbd 100644 (file)
@@ -112,3 +112,6 @@ bc8f8f5 merge_config.sh: rename MAKE to RUNMAKE
 e911503 Kconfig: Remove bad inference rules expr_eliminate_dups2()
 2e0d737 kconfig: don't silently ignore unhandled characters
 31847b6 kconfig: allow use of relations other than (in)equality
+35ffd08 kconfig: Delete unnecessary checks before the function call "sym_calc_value"
+c226456 kconfig: warn of unhandled characters in Kconfig commands
+78a6854 merge_config.sh: exit on missing input files
index ec8e20350a648ca0f47f152f9650f6fa6e421a0b..0d883b37882a145b588a45f53f3be373849e7410 100755 (executable)
@@ -100,6 +100,10 @@ cat $INITFILE > $TMP_FILE
 # Merge files, printing warnings on overridden values
 for MERGE_FILE in $MERGE_LIST ; do
        echo "Merging $MERGE_FILE"
+       if [ ! -r "$MERGE_FILE" ]; then
+               echo "The merge file '$MERGE_FILE' does not exist.  Exit." >&2
+               exit 1
+       fi
        CFG_LIST=$(sed -n "$SED_CONFIG_EXP" $MERGE_FILE)
 
        for CFG in $CFG_LIST ; do