Lines Matching full:config
4 # diffconfig - a tool to compare .config files.
16 Diffconfig is a simple utility for comparing two .config files.
17 Using standard diff to compare .config files often includes extraneous and
25 changed and new values in kernel config option format.
27 If no config files are specified, .config and .config.old are used.
30 $ diffconfig .config config-with-some-changes
39 # returns a dictionary of name/value pairs for config items in the file
51 def print_config(op, config, value, new_value): argument
57 print("# CONFIG_%s is not set" % config)
59 print("CONFIG_%s=%s" % (config, new_value))
62 print("-%s %s" % (config, value))
64 print("+%s %s" % (config, new_value))
66 print(" %s %s -> %s" % (config, value, new_value))
86 # if no filenames given, assume .config and .config.old
90 configa_filename = build_dir + ".config.old"
91 configb_filename = build_dir + ".config"
106 for config in a:
107 if config not in b:
108 old.append(config)
110 for config in old:
111 print_config("-", config, a[config], None)
112 del a[config]
116 for config in a:
117 if a[config] != b[config]:
118 changed.append(config)
120 del b[config]
122 for config in changed:
123 print_config("->", config, a[config], b[config])
124 del b[config]
129 for config in new:
130 print_config("+", config, None, b[config])