Skip to content

Commit

Permalink
Rename LUA_MODULE_* to NODEMCU_CMODULE_* (#38)
Browse files Browse the repository at this point in the history
  • Loading branch information
nwf authored and marcelstoer committed Sep 15, 2020
1 parent e4c5c33 commit a90e806
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ESP32/before-script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@ echo "Running 'before_script' for ESP32"
# select modules
# ---------------------------------------------------------------------------
# disable all modules
sed -ri 's/(CONFIG_LUA_MODULE_.*=).{0,1}/\1/' sdkconfig
sed -ri 's/(CONFIG_NODEMCU_CMODULE_.*=).{0,1}/\1/' sdkconfig
# enable the selected ones
echo "Enabling modules $X_MODULES"
mapfile -t modules < <(echo "$X_MODULES" | tr , '\n' | tr '[:lower:]' '[:upper:]')
for m in "${modules[@]}"; do
sed -ri "s/(CONFIG_LUA_MODULE_$m=)/\1y/" sdkconfig
sed -ri "s/(CONFIG_NODEMCU_CMODULE_$m=)/\1y/" sdkconfig
done

# ---------------------------------------------------------------------------
Expand All @@ -36,7 +36,7 @@ echo "Running 'before_script' for ESP32"
# ---------------------------------------------------------------------------
if [ "${X_FATFS_ENABLED}" == "true" ]; then
echo "Enabling FatFS/SDMMC"
sed -ri "s/(CONFIG_LUA_MODULE_SDMMC=).{0,1}/\1y/" sdkconfig
sed -ri "s/(CONFIG_NODEMCU_CMODULE_SDMMC=).{0,1}/\1y/" sdkconfig
fi

# ---------------------------------------------------------------------------
Expand Down

0 comments on commit a90e806

Please sign in to comment.