Skip to content

Commit 46f3d15

Browse files
authored
Enhance copy-mem-variant.sh for esp32s3 frequency
Add frequency configuration for esp32s3 variant.
1 parent 4dd3974 commit 46f3d15

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tools/copy-mem-variant.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,11 @@ fi
1111

1212
MEMCONF=$OCT_FLASH"_$OCT_PSRAM"
1313

14+
# For esp32s3, add frequency from environment variable set by build.sh
15+
if [ "$IDF_TARGET" = "esp32s3" ] && [ -n "$MEM_VARIANT_FREQ" ]; then
16+
MEMCONF=$MEMCONF"_$MEM_VARIANT_FREQ"
17+
fi
18+
1419
source ./tools/config.sh
1520

1621
echo "IDF_TARGET: $IDF_TARGET, MEMCONF: $MEMCONF"

0 commit comments

Comments
 (0)