[script] fix multiple LOG_OUTPUT definitions (#7833)

This commit updates `check-simulation-build-autotools` to use the
`LOG_OUTPUT` switch directly. This addresses an issue where
we could end up with multiple `OPENTHREAD_CONFIG_LOG_OUTPUT`
definitions in the `CPPFLAGS`.
This commit is contained in:
Abtin Keshavarzian
2022-06-23 21:22:41 -07:00
committed by GitHub
parent 0bf370c22a
commit 747e20cc54
+4 -4
View File
@@ -101,9 +101,9 @@ build_all_features()
)
# Build Thread 1.1 with full features and no log
export CPPFLAGS="${options[*]} -DOPENTHREAD_CONFIG_LOG_OUTPUT=OT_LOG_OUTPUT_NONE"
export CPPFLAGS="${options[*]}"
reset_source
make -f examples/Makefile-simulation THREAD_VERSION=1.1
make -f examples/Makefile-simulation THREAD_VERSION=1.1 LOG_OUTPUT=NONE
# Build Thread 1.1 with full features and full logs
export CPPFLAGS="${options[*]}"
@@ -111,9 +111,9 @@ build_all_features()
make -f examples/Makefile-simulation THREAD_VERSION=1.1 FULL_LOGS=1
# Build Thread 1.3 with full features and logs
export CPPFLAGS="${options[*]} ${options_1_3[*]} -DOPENTHREAD_CONFIG_LOG_OUTPUT=OT_LOG_OUTPUT_NONE"
export CPPFLAGS="${options[*]} ${options_1_3[*]}"
reset_source
make -f examples/Makefile-simulation THREAD_VERSION=1.3
make -f examples/Makefile-simulation THREAD_VERSION=1.3 LOG_OUTPUT=NONE
# Build Thread 1.3 with full features and full logs
export CPPFLAGS="${options[*]} ${options_1_3[*]}"