mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-11 00:24:34 +02:00
Modified buid_examples.sh to handle new locations of examples
This commit is contained in:
@@ -15,7 +15,10 @@ FAILED_EXAMPLES=""
|
||||
|
||||
RESULT_WARNINGS=22 # magic number result code for "warnings found"
|
||||
|
||||
for example in ${IDF_PATH}/examples/*; do
|
||||
# traverse categories
|
||||
for category in ${IDF_PATH}/examples/*; do
|
||||
# traverse examples within each category
|
||||
for example in ${category}/*; do
|
||||
[ -f ${example}/Makefile ] || continue
|
||||
echo "Building ${example} as ${EXAMPLE_NUM}..."
|
||||
mkdir -p example_builds/${EXAMPLE_NUM}
|
||||
@@ -44,6 +47,7 @@ for example in ${IDF_PATH}/examples/*; do
|
||||
|
||||
rm -f $BUILDLOG
|
||||
done
|
||||
done
|
||||
|
||||
if [ $RESULT -eq $RESULT_WARNINGS ]; then
|
||||
echo "Build would have passed, except for warnings."
|
||||
|
Reference in New Issue
Block a user