mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
Modified buid_examples.sh to handle new locations of examples
This commit is contained in:
parent
382999b378
commit
f7a9a2f50b
@ -15,7 +15,10 @@ FAILED_EXAMPLES=""
|
|||||||
|
|
||||||
RESULT_WARNINGS=22 # magic number result code for "warnings found"
|
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
|
[ -f ${example}/Makefile ] || continue
|
||||||
echo "Building ${example} as ${EXAMPLE_NUM}..."
|
echo "Building ${example} as ${EXAMPLE_NUM}..."
|
||||||
mkdir -p example_builds/${EXAMPLE_NUM}
|
mkdir -p example_builds/${EXAMPLE_NUM}
|
||||||
@ -43,6 +46,7 @@ for example in ${IDF_PATH}/examples/*; do
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
rm -f $BUILDLOG
|
rm -f $BUILDLOG
|
||||||
|
done
|
||||||
done
|
done
|
||||||
|
|
||||||
if [ $RESULT -eq $RESULT_WARNINGS ]; then
|
if [ $RESULT -eq $RESULT_WARNINGS ]; then
|
||||||
|
Loading…
x
Reference in New Issue
Block a user