File tree Expand file tree Collapse file tree 3 files changed +13
-7
lines changed Expand file tree Collapse file tree 3 files changed +13
-7
lines changed Original file line number Diff line number Diff line change @@ -236,11 +236,15 @@ for target_json in `jq -c '.targets[]' configs/builds.json`; do
236236 # Build Memory Variants
237237 for mem_conf in ` echo " $target_json " | jq -c ' .mem_variants[]' ` ; do
238238 mem_configs=" $main_configs "
239+
240+ # Extract frequency from mem_variant (element [1])
241+ export MEM_VARIANT_FREQ=$( echo " $mem_conf " | jq -r ' .[1]' )
242+
239243 for defconf in ` echo " $mem_conf " | jq -c ' .[]' | tr -d ' "' ` ; do
240244 mem_configs=" $mem_configs ;configs/defconfig.$defconf " ;
241245 done
242246
243- echo " * Build Memory Variant: $mem_configs "
247+ echo " * Build Memory Variant: $mem_configs (freq: $MEM_VARIANT_FREQ ) "
244248 rm -rf build sdkconfig
245249 idf.py -DIDF_TARGET=" $target " -DSDKCONFIG_DEFAULTS=" $mem_configs " mem-variant
246250 if [ $? -ne 0 ]; then exit 1; fi
Original file line number Diff line number Diff line change 44IDF_TARGET=$1
55IS_XTENSA=$4
66OCT_FLASH=" $2 "
7- MEM_FREQ=" $5 "
87OCT_PSRAM=
98
109if [ " $3 " = " y" ]; then
1312 OCT_PSRAM=" qspi"
1413fi
1514MEMCONF=$OCT_FLASH " _$OCT_PSRAM "
16- if [ " $IDF_TARGET " = " esp32s3" ] && [ -n " $MEM_FREQ " ]; then
17- MEMCONF=$MEMCONF " _$MEM_FREQ "
15+
16+ # For esp32s3, add frequency from environment variable set by build.sh
17+ if [ " $IDF_TARGET " = " esp32s3" ] && [ -n " $MEM_VARIANT_FREQ " ]; then
18+ MEMCONF=$MEMCONF " _$MEM_VARIANT_FREQ "
1819fi
1920
2021source ./tools/config.sh
Original file line number Diff line number Diff line change 11#! /bin/bash
22IDF_TARGET=$1
33OCT_FLASH=" $2 "
4- MEM_FREQ=" $4 "
54OCT_PSRAM=
65
76if [ " $3 " = " y" ]; then
1110fi
1211
1312MEMCONF=$OCT_FLASH " _$OCT_PSRAM "
14- if [ " $IDF_TARGET " = " esp32s3" ] && [ -n " $MEM_FREQ " ]; then
15- MEMCONF=$MEMCONF " _$MEM_FREQ "
13+
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 "
1617fi
1718
1819source ./tools/config.sh
You can’t perform that action at this time.
0 commit comments