Fork of Tangara with customizations
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
tangara-fw/tools/cmake/check-for-sdkconfig-changes.sh

17 lines
656 B

#!/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