diff options
author | Alexey Neyman <stilor@att.net> | 2019-02-19 23:45:44 -0800 |
---|---|---|
committer | Alexey Neyman <stilor@att.net> | 2019-02-19 23:45:44 -0800 |
commit | 16efa9d3e7d2fcbfd0971062d7b17bd5709d41fd (patch) | |
tree | c9e7b22743a68a76e508e007ea0967accbf3071d /scripts/functions | |
parent | 865171abc7bc468a577987725303ac9b8c580e52 (diff) | |
download | crosstool-ng-16efa9d3e7d2fcbfd0971062d7b17bd5709d41fd.tar.gz crosstool-ng-16efa9d3e7d2fcbfd0971062d7b17bd5709d41fd.tar.bz2 crosstool-ng-16efa9d3e7d2fcbfd0971062d7b17bd5709d41fd.zip |
Add debug output to Kconfig manipulation functions
Signed-off-by: Alexey Neyman <stilor@att.net>
Diffstat (limited to 'scripts/functions')
-rw-r--r-- | scripts/functions | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/scripts/functions b/scripts/functions index e577b9d9..fecdad2e 100644 --- a/scripts/functions +++ b/scripts/functions @@ -1419,6 +1419,7 @@ CT_KconfigSetOption() { local value="$2" local file="$3" + CT_DoLog DEBUG "${file}: set ${option}=${value}" ${grep} -E -q "^${option}=.*" "${file}" && \ ${sed} -i -r -e "s;^${option}=.*$;${option}=${value};" "${file}" || \ ${grep} -E -q "^# ${option} is not set$" "${file}" && \ @@ -1441,6 +1442,7 @@ CT_KconfigDisableOption() { local option="${1}" local file="${2}" + CT_DoLog DEBUG "${file}: disable ${option}" ${grep} -E -q "^# ${option} is not set$" "${file}" || \ ${grep} -E -q "^${option}=.*$" "${file}" && \ ${sed} -i -r -e "s;^${option}=.*$;# ${option} is not set;" "${file}" || \ @@ -1454,6 +1456,7 @@ CT_KconfigDeleteOption() { local option="${1}" local file="${2}" + CT_DoLog DEBUG "${file}: delete ${option}" ${grep} -E -q "^# ${option} is not set$" "${file}" && \ ${sed} -i -r -e "/^# ${option} is not set$/d" "${file}" || \ ${grep} -E -q "^${option}=.*$" "${file}" && \ |