From 97d63c5553203bc8cfb45b8b01169178a694d581 Mon Sep 17 00:00:00 2001 From: jacqueline Date: Thu, 26 Oct 2023 12:50:02 +1100 Subject: Add a target that yells at you if your sdkconfig is out of date --- tools/cmake/check-for-sdkconfig-changes.sh | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100755 tools/cmake/check-for-sdkconfig-changes.sh (limited to 'tools/cmake') diff --git a/tools/cmake/check-for-sdkconfig-changes.sh b/tools/cmake/check-for-sdkconfig-changes.sh new file mode 100755 index 00000000..e6246c1a --- /dev/null +++ b/tools/cmake/check-for-sdkconfig-changes.sh @@ -0,0 +1,17 @@ +#!/bin/bash +SDKCONFIG=$PROJ_PATH/sdkconfig +SDKCONFIG_COMMON=$PROJ_PATH/sdkconfig.common +if [ ! -f "$SDKCONFIG" ]; then + exit 0 +fi +if [ "$SDKCONFIG" -nt "$SDKCONFIG_COMMON" ]; then + exit 0 +fi +RED='\033[0;31m' +NOCOLOUR='\033[0m' +echo -e "$RED########################################################################$NOCOLOUR" +echo "'sdkconfig.common' is newer than 'sdkconfig'! You may be building with" +echo "an out of date configuration. Delete your 'sdkconfig' to refresh your" +echo "build configuration, or 'touch sdkconfig' to silence this warning." +echo -e "$RED########################################################################$NOCOLOUR" +exit 1 \ No newline at end of file -- cgit v1.2.3