mirror of
https://github.com/crosstool-ng/crosstool-ng.git
synced 2024-12-23 14:42:26 +00:00
Add debug output to Kconfig manipulation functions
Signed-off-by: Alexey Neyman <stilor@att.net>
This commit is contained in:
parent
865171abc7
commit
16efa9d3e7
@ -1419,6 +1419,7 @@ CT_KconfigSetOption() {
|
|||||||
local value="$2"
|
local value="$2"
|
||||||
local file="$3"
|
local file="$3"
|
||||||
|
|
||||||
|
CT_DoLog DEBUG "${file}: set ${option}=${value}"
|
||||||
${grep} -E -q "^${option}=.*" "${file}" && \
|
${grep} -E -q "^${option}=.*" "${file}" && \
|
||||||
${sed} -i -r -e "s;^${option}=.*$;${option}=${value};" "${file}" || \
|
${sed} -i -r -e "s;^${option}=.*$;${option}=${value};" "${file}" || \
|
||||||
${grep} -E -q "^# ${option} is not set$" "${file}" && \
|
${grep} -E -q "^# ${option} is not set$" "${file}" && \
|
||||||
@ -1441,6 +1442,7 @@ CT_KconfigDisableOption() {
|
|||||||
local option="${1}"
|
local option="${1}"
|
||||||
local file="${2}"
|
local file="${2}"
|
||||||
|
|
||||||
|
CT_DoLog DEBUG "${file}: disable ${option}"
|
||||||
${grep} -E -q "^# ${option} is not set$" "${file}" || \
|
${grep} -E -q "^# ${option} is not set$" "${file}" || \
|
||||||
${grep} -E -q "^${option}=.*$" "${file}" && \
|
${grep} -E -q "^${option}=.*$" "${file}" && \
|
||||||
${sed} -i -r -e "s;^${option}=.*$;# ${option} is not set;" "${file}" || \
|
${sed} -i -r -e "s;^${option}=.*$;# ${option} is not set;" "${file}" || \
|
||||||
@ -1454,6 +1456,7 @@ CT_KconfigDeleteOption() {
|
|||||||
local option="${1}"
|
local option="${1}"
|
||||||
local file="${2}"
|
local file="${2}"
|
||||||
|
|
||||||
|
CT_DoLog DEBUG "${file}: delete ${option}"
|
||||||
${grep} -E -q "^# ${option} is not set$" "${file}" && \
|
${grep} -E -q "^# ${option} is not set$" "${file}" && \
|
||||||
${sed} -i -r -e "/^# ${option} is not set$/d" "${file}" || \
|
${sed} -i -r -e "/^# ${option} is not set$/d" "${file}" || \
|
||||||
${grep} -E -q "^${option}=.*$" "${file}" && \
|
${grep} -E -q "^${option}=.*$" "${file}" && \
|
||||||
|
Loading…
Reference in New Issue
Block a user